1 | initial version |
if you want to normalize between 2 values, use NORM_MINMAX. Your code should be:
cv::normalize(ucm, ucm, 0, 65535, cv::NORM_MINMAX, CV_16UC1);
Otherwise the L2 norm of your image will be alpha=0 (so all your image is 0).
See the docs for more info