Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to change color of all non transparent pixels to black?

I use OpenCV (Java) and I want to change color of all the non transparent pixels in my Mat to black (colors defined in ARGB_8888 but could be another format)

How can I do that ?

Mat mat = new Mat();
  bmp32 = bitmap.copy(Bitmap.Config.ARGB_8888, true);
  Utils.bitmapToMat(bm

Thanks !

How to change color of all non transparent pixels to black?

I use OpenCV (Java) and I want to change color of all the non transparent pixels in my Mat to black (colors defined in ARGB_8888 but could be another format)

How can I do that ?

 Mat mat = new Mat();
   bmp32 = bitmap.copy(Bitmap.Config.ARGB_8888, true);
  Utils.bitmapToMat(bm
  Utils.bitmapToMat(bmp32, mat);
    // and then ????

Thanks !