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;
2 | No.2 Revision |
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;
3 | No.3 Revision |
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;