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.