![]() | 1 | initial version |
since Src seems to be a cv::Mat, try
cv::normalize(Src,Src,255,0,CV_MINMAX)
instead.
passing pixel-pointers is definitely wrong !
(also, try to avoid old c-api functions [cvBlah(), IplImages and such], stick with the c++ api !)