I need an image with 8 BPP(Bit per Pixel) to learn image segmentation using tensor flow.
Below is my brief code.
Mat Image;
Image = imread("Input.png",IMREAD_UNCHANGED);
** image synthesis process **
imwrite("C:\\Output.png", Image);
If you're curious about my full source code, you can look at what I asked earlier.
If I check the bpp of the image output in this state, it is 24.
What should I do?
For your information, I've tried making corrections like CV_8UC1, but it doesn't seem to work very well.