What cv :: normalize does (_src, dst, 0, 255, NORM_MINMAX, CV_8UC1);

What cv::normalize(_src, dst, 0, 255, NORM_MINMAX, CV_8UC1); does cv::normalize(_src, dst, 0, 255, NORM_MINMAX, CV_8UC1); in opencv?

I looked through the documentation and could not understand what alpha , beta , NORM_MINMAX and CV_8UC1 . I know that alpha sets the lower and beta upper bound. CV_8UC1 denotes an 8-bit unsigned single channel. But the fact that it is precisely these arguments that lead to the picture is something that I cannot understand.

+45
opencv
Aug 19 '12 at 3:19
source share
2 answers

If normType NORM_MINMAX , cv::normalize normalizes _src so that the minimum value of dst is alpha and the maximum value of dst is beta . cv::normalize uses magic using only scales and shifts (i.e. adding constants and multiplying by constants).

CV_8UC1 indicates how many dst channels have.

The documentation here is pretty clear: http://docs.opencv.org/modules/core/doc/operations_on_arrays.html#normalize

+36
Aug 19 '12 at 3:40
source share

Instead of increasing the channel numbers to change the interval [0.255], you can increase the bit depth Mat, for example, use CV_16UC1 for type, interval changes by [0, 65535].

+2
Jan 21 '15 at 11:24
source share



All Articles