Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

multiply image mat by value c++


double minVal; 
double maxVal; 
Point minLoc; 
Point maxLoc;

cv::minMaxLoc(image, &minVal, &maxVal, &minLoc, &maxLoc );

cv2::Mat imageResult = image * 255/maxVal;
 
PREVIOUS NEXT
Tagged: #multiply #image #mat
ADD COMMENT
Topic
Name
9+2 =