Change a Black and White image to color. [closed]
final Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(), options);
Mat tmp = new Mat(bitmap.getWidth(), bitmap.getHeight(),CvType.CV_8UC1);
What's your question?
I need to subtract the yellow pixels of a color image i think this CvType.CV_8UC1 is only black and withe right?
oh,so your source image is color image right. at first you must define your yellow pixels ,the range r,g,b.because those color combine yellow color. Then you can split your source image rgb ,finally subtract each color and combine the result. CV_8UC1 for gray image. and CV_8UC3 for color image
Please clarify your question and also sow anything you have done towards solving the issue.
@jowey Try to use the right and appropriate tags in question and give the good explanation of question as well
Please stick to one question if the general goal is the same. I will close this one down, focus all your questions about yellow pixels together here!