Ask Your Question

jarger's profile - activity

2014-01-07 10:42:15 -0600 commented answer How to generate/convertto 1 bit depth image

I am trying to do the same thing. I tried saving as .pbm but that still outputs a 8 bit image. The original image I open is a 1 bit image, monchrome, which I can save to any graphics format I want and I can increase the bit depth. Just can't save as is, which is a bit depth of 1. Mat sourceImage = imread(inputFile, CV_LOAD_IMAGE_UNCHANGED) does not leave it unchanged as it implies. Any way to do it?