How can I access the Elements of an IplImage (single channel and IPL_DEPTH_8U depth).
I want to change the pixel value at a particu
The fast way to get the pixel value is use macro.
CV_IMAGE_ELEM( image_header, elemtype, y, x_Nc )
And in your case, the Image is single channel.So you can get the i,j pixel value by
CV_IMAGE_ELEM(image, unsigned char, i, j)