2010. 4. 2. 19:39
Computer Vision
IPLimage 이미지 행렬의 색상값 읽기
/* get reference to pixel at (col,row),
for multi-channel images (col) should be multiplied by number of channels */
#define CV_IMAGE_ELEM( image, elemtype, row, col ) \
(((elemtype*)((image)->imageData + (image)->widthStep*(row)))[(col)])
for multi-channel images (col) should be multiplied by number of channels */
#define CV_IMAGE_ELEM( image, elemtype, row, col ) \
(((elemtype*)((image)->imageData + (image)->widthStep*(row)))[(col)])
'Computer Vision' 카테고리의 다른 글
Image Filtering (0) | 2010.04.03 |
---|---|
OpenCV: cvSobel() 연습 코드 (3) | 2010.04.03 |
OpenCV: cvFindContours (0) | 2010.04.02 |
Harris corner detector (0) | 2010.03.31 |
OpenCV: cvCanny() 연습 코드 (0) | 2010.03.31 |