Doubt about how to access a pixel in cvMat structure
Hi,
How to access the value of pixel in structure cvMat ? I need access the pixels in a image with 3 channels. Can you help me ?
Thank you.
You could start by separating the 3 channels using the split( ) function, and then this statement accesses pixel values ->
img.at<uchar>(Point(x, y));
Hope this helps.You are right @matman. It would definitely be better to use OpenCV 3.0.0 functionality.
Thank you!