opencv-node icon indicating copy to clipboard operation
opencv-node copied to clipboard

minMaxLoc() and minMaxIdx()

Open ayapi opened this issue 12 years ago • 2 comments

I felt something is a little off about cv.minMaxLoc().

http://docs.opencv.org/modules/core/doc/operations_on_arrays.html?highlight=minmaxloc#minmaxloc Python: cv2.minMaxLoc(src[, mask]) → minVal, maxVal, minLoc, maxLoc C: void cvMinMaxLoc(const CvArr* arr, double* min_val, double* max_val, CvPoint* min_loc=NULL, CvPoint* max_loc=NULL, const CvArr* mask=NULL )

So I thought about how I wish I could write (src, minVal, maxVal, minLoc, maxLoc, mask) style args like Python. And minMaxIdx() can be substituted for minMaxLoc(src, minVal, maxVal, minIdx, maxIdx).

Please consider it.

ayapi avatar Dec 30 '13 07:12 ayapi

Still on vacation now, will take a look when I get back to my dev machine. Thanks for contributing !

codeboost avatar Jan 03 '14 19:01 codeboost

Thank you! Have a nice vacation : )

ayapi avatar Jan 04 '14 00:01 ayapi