Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

All of the basics work. Blurring, morphology, template matching.

About half of the more advanced stuff does too. But particularly in the feature detection and optical flow some don't. Sometimes it's a pretty easy fix, but calcPyrLK is not very easy.

Do NOT use the conversion code in sjhalayka's answer. While it does technically put it in an 8 bit image, even simple addition will not work properly. If you want to visualize the image, you can simple use

normalize(image16, image8, 0, 255, NORM_MINMAX, CV_8U)

or, for a better quality, use the CLAHE algorithm

All of the basics work. Blurring, morphology, template matching.

About half of the more advanced stuff does too. But particularly in the feature detection and optical flow some don't. Sometimes it's a pretty easy fix, but calcPyrLK is not very easy.

Do NOT use the conversion code in sjhalayka's answer. While it does technically put it in an 8 bit image, even simple addition will not work properly. If you want to visualize the image, you can simple use

normalize(image16, image8, 0, 255, NORM_MINMAX, CV_8U)

or, for a better quality, use the CLAHE algorithm