Aug 7, 2015

[Link] setOpenGlDrawCallback Example

OpenGL with OpenCV
http://blog.csdn.net/yang_xian521/article/details/8531058

[OpenCV] CV_16U to CV_8U

[0, 255] 범위를 넘어가는 value는 흰색, 검정색으로 나오기때문에
convertTo function에 범위를 재지정 해준다.

ex : A.convertTo(B,CV_8U,255.0/(Max-Min),-255.0/Min);

[Link]
Change type of Mat object from CV_32F to CV_8U
http://stackoverflow.com/questions/14539498/change-type-of-mat-object-from-cv-32f-to-cv-8u

Jul 28, 2015

#include gl.h -> not working

1) include windows.h
#include <windows.h>
OpenGL FAQ :
Also, note that you'll need to put an #include <windows.h> statement before the #include<GL/gl.h>. Microsoft requires system DLLs to use a specific calling convention that isn't the default calling convention for most Win32 C compilers, so they've annotated the OpenGL calls in gl.h with some macros that expand to nonstandard C syntax. This causes Microsoft's C compilers to use the system calling convention. One of the include files included by windows.h defines the macros.

May 3, 2015

Difference between ' const int* ' and ' int* const '

<const meaning of location>

const int* ptr; (value locked) - generally use
++*ptr; (X)  ------> cannot change value
++ptr;  (O)

---------------------------------------------------

int* const p; ------> int* p(address locked)

++*p; (O) ------> can change value
++p; (X)   ------> cannot move address

----------------------------------------------------

const int* const pp = ar; (value and address locked)

++*pp; (X) ------> cannot change value
++pp; (X)  ------> cannot move address

-----------------------------------------------------
(+)
http://stackoverflow.com/questions/1143262/what-is-the-difference-between-const-int-const-int-const-and-int-const

Apr 30, 2015

NULL vs '\0'

NULL : Pointer
'\0' : char value

sizeof(NULL) : 4 byte
sizeof('\0') : 1 byte

Mar 12, 2015

Book lists

<ETC>

Code: The Hidden Language of Computer Hardware and Software - by Charles Petzold


<Algorithms>

Introduction to Algorithms - by Thomas H. Cormen and Charles E. Leiserson

The Art of Computer Programming - by Donald E. Knuth
-> Volumes 1-4

뇌를 자극하는 알고리즘 - by 박상현
-> focused on Data Structures


<Computer Structures>

Computer Organization and Design - by David A. Patterson and John L. Hennessy

컴퓨터 아키텍쳐 - by 우종정


<OS>

Operating System Concepts - by Abraham Silberschatz and Peter B. Galvin

운영체제 : 그림으로 배우는 원리와 구조 - by 구현회


<API>

Programming Windows, 5th Edition - by Charles Petzold
-> An oldie but a goodie. enough explanations and examples

윈도우즈 API 정복 - by 김상형
-> Volumes 1-2. Volume 2: References