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

前端 未结 1 964
北荒
北荒 2020-12-23 15:45

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

I went through the documentation and was unable to understand what

相关标签:
1条回答
  • 2020-12-23 16:30

    When the normType is NORM_MINMAX, cv::normalize normalizes _src in such a way that the min value of dst is alpha and max value of dst is beta. cv::normalize does its magic using only scales and shifts (i.e. adding constants and multiplying by constants).

    CV_8UC1 says how many channels dst has.

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

    0 讨论(0)
提交回复
热议问题