I am having what is follow: img is an IplImage of HeightXWidth. having three channels I want to access the three values of the pixel in one image, using another solution rather that the following one that I did:
IplImage* img=cvCreateImage(...);
...
CvScalar scalar= cvGet2D(img, i, j); //where i and j are the coordinates of the considered pixel
double v0=scalar.val[0];
double v1=scalar.val[1];
double v2=scalar.val[2];
My idea is to get rid of the OpenCV dependency and change it in another way.
Any suggestions?