Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

16-bit image processing

Hello! I am processing a 16-bit 3D CT Scan image formatted as .mhd/.raw Opening the file using Fiji/ImageJ gives me a regular grayscale image, but when I import it into OpenCV (python), both imshow and imwrite do not give me a good image.

Is there a way so OpenCV can process the image correctly?

Also,I need to be able to convert the image to unsigned 8bit so I could use OpenCV functions on it, specifically adaptive threshold. I tried using scikit's conversion tools and OpenCV's convertScaleAbs but the results are not good.

Thanks for any help!

16-bit image processing

Hello! I am processing a 16-bit 3D CT Scan image formatted as .mhd/.raw Opening the file and taking a 2D slice using Fiji/ImageJ gives me a regular grayscale image, but when I import it into OpenCV (python), and also get a 2D slice, both imshow and imwrite do not give me a good image.

Is there a way so OpenCV can process the image correctly?

Also,I need to be able to convert the image to unsigned 8bit so I could use OpenCV functions on it, specifically adaptive threshold. I tried using scikit's conversion tools and OpenCV's convertScaleAbs but the results are not good.

Thanks for any help!