To change the color of your apps on a Samsung phone, tap and hold an empty area of the home screen and then tap Wallpaper and style. Tap Color Palette, and then choose the color you want. Tap Set as Color Palette. The color palette changes will affect stock apps and icons.
Apply a new color and adjust its hue and saturation Select the new color that you want to apply to the object and click OK. The object now appears to be filled with that solid color. With the Color fill layer still selected, open the Blending Modes menu in the Layers panel, and click the Color blending mode.
I believe that you made the error of moving the grayscale image to the coloured image.
Try:
Imgproc.cvtColor(mRgba, mIntermediateMat, Imgproc.COLOR_YUV2RGBA_NV21, 4);
Instead of:
Imgproc.cvtColor(mIntermediateMat, mRgba, Imgproc.COLOR_YUV2RGBA_NV21, 4);
A bit late to the party. I have not tried the code out, but I suspect:
mIntermediateMat = new Mat(height, width, CvType.CV_8UC4);
Even though mIntermediateMat is 8bit 4 channel mat here,
Imgproc.Canny(inputFrame.gray(), mIntermediateMat, 80, 100);
It was turned into a 8bit 1 channel mat here. ref: canny doc.
output edge map; it has the same size and type as image .
As a result,
Imgproc.GaussianBlur(mIntermediateMat, gaussian_output, new Size(5, 5), 5);
gaussian_output is an 8bit 1 channel mat, and...
return gaussian_output;
returns an 8 bit 1 channel (grayscale) image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With