Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what about this:

rgbMat = inputFrame.rgba();
grayMat = inputFrame.gray();
double [] grayPixel = grayMat.get(0,0);
int grayVal = (int)grayPixel[0];    // now do your comparison

return rgbMat;

what about this:

rgbMat = inputFrame.rgba();
grayMat = inputFrame.gray();
double [] grayPixel = grayMat.get(0,0);
grayMat.get(1,1);
int grayVal = (int)grayPixel[0];    // now do your comparison

return rgbMat;

what how about this:

rgbMat = inputFrame.rgba();
grayMat = inputFrame.gray();
double [] grayPixel = grayMat.get(1,1);
int grayVal = (int)grayPixel[0];    // now do your comparison

return rgbMat;