MCPcopy Create free account
hub / github.com/creatale/node-dv / cvMinMaxLoc

Function cvMinMaxLoc

deps/opencv/modules/core/src/stat.cpp:2683–2695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2681
2682
2683CV_IMPL void
2684cvMinMaxLoc( const void* imgarr, double* _minVal, double* _maxVal,
2685 CvPoint* _minLoc, CvPoint* _maxLoc, const void* maskarr )
2686{
2687 cv::Mat mask, img = cv::cvarrToMat(imgarr, false, true, 1);
2688 if( maskarr )
2689 mask = cv::cvarrToMat(maskarr);
2690 if( img.channels() > 1 )
2691 cv::extractImageCOI(imgarr, img);
2692
2693 cv::minMaxLoc( img, _minVal, _maxVal,
2694 (cv::Point*)_minLoc, (cv::Point*)_maxLoc, mask );
2695}
2696
2697
2698CV_IMPL double

Callers 1

cvGetMinMaxHistValueFunction · 0.85

Calls 3

cvarrToMatFunction · 0.85
minMaxLocFunction · 0.85
channelsMethod · 0.45

Tested by

no test coverage detected