سؤال

To do normalization using opencv I am using this function:

cvNormalize(Src.data, Src.data, 255, 0, CV_MINMAX);

type of the input(Src) is Mat...to be able to use it as a pointer I have used .data but I get memory allocation error when I try this function...

Does anyone have any idea?

Thanks in advance

هل كانت مفيدة؟

المحلول

Use the cv::normalize function. cvNormalize is deprecated.

cv::normalize(Src, Src, 255, 0, CV_MINMAX);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top