Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

have another look at the docs

what you recieve there is a []double (or the equivalent of a cv::Scalar)

in case of a grayscale (single channel) image, what you want is:

double[] ft = changedImg.get(1560, 2080)
double pixelvalue =  ft[0];

have another look at the docs

what you recieve there is a []double (or the equivalent of a cv::Scalar)

in case of a grayscale (single channel) image, what you want is:

double[] ft = changedImg.get(1560, 2080)
double pixelvalue =  ft[0];

just to make it more obvious, in case of a bgr(3 channel) image it would be:

double[] ft = changedImg.get(1560, 2080)
double b =  ft[0];
double g =  ft[1];
double r =  ft[2];

have another look at the docs

what you recieve receive there is a []double (or the equivalent of a cv::Scalar)

in case of a grayscale (single channel) image, what you want is:

double[] ft = changedImg.get(1560, 2080)
double pixelvalue =  ft[0];

just to make it more obvious, in case of a bgr(3 channel) image it would be:

double[] ft = changedImg.get(1560, 2080)
double b =  ft[0];
double g =  ft[1];
double r =  ft[2];