Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there any filter method keeping the 16-bit image?

Hello,

I am trying to filter the 16bit grayscale image with 16bit grayscale PSF. I tried cv::filter2D(inputImage, outputImage, -1, psf) where inputImage and psf are originally 16bit grayscale tiff files. But when I tried to convert outputImage using imwrite, it is unexpectedly compressed into 8bit image.

Did I do anything wrong? How can I filter the 16bit grayscale image with keeping 16bit grayscale?

My environment is OpenCV 3.4.1 and Visual Studio 2015.

Is there any filter method keeping the 16-bit image?

Hello,

I am trying to filter the 16bit grayscale image with 16bit grayscale PSF. I tried cv::filter2D(inputImage, outputImage, -1, psf) where inputImage and psf are originally 16bit grayscale tiff files. But when I tried to convert outputImage using imwrite, it is unexpectedly compressed into 8bit image.

Did I do anything wrong? How can I filter the 16bit grayscale image with keeping 16bit grayscale?

My environment is OpenCV 3.4.1 and Visual Studio 2015.

Is there any filter method keeping the 16-bit image?

Hello,

I am trying to filter the 16bit grayscale image with 16bit grayscale PSF. I tried cv::filter2D(inputImage, outputImage, -1, psf) where inputImage and psf are originally 16bit grayscale tiff files. But when I tried to convert outputImage using imwrite, it is unexpectedly compressed into 8bit image.

Did I do anything wrong? How can I filter the 16bit grayscale image with keeping 16bit grayscale?

My environment is OpenCV 3.4.1 and Visual Studio 2015.