Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

find max value in image c++

cv::Mat m;
//Initialize m
double minVal; 
double maxVal; 
Point minLoc; 
Point maxLoc;

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

std::cout << "min val: " << minVal << std::endl;
std::cout << "max val: " << maxVal << std::endl;
 
PREVIOUS NEXT
Tagged: #find #max #image
ADD COMMENT
Topic
Name
9+4 =