0

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

1
  • What memory allocation error? How does this error manifest itself? Commented Jan 27, 2014 at 13:47

1 Answer 1

1

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

cv::normalize(Src, Src, 255, 0, CV_MINMAX);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.