kyamagu / mexopencv

Collection and a development kit of matlab mex functions for OpenCV library
http://kyamagu.github.io/mexopencv
Other
659 stars 318 forks source link

Latency in Mexopencv codes #440

Closed youthiya closed 5 years ago

youthiya commented 5 years ago

Hi, I have an important question whose answer is difficult to find.

Does MEXOPENCV's benchmark functions like cv.SIFT, cv.SURF, cv.descriptorMatcher etc. have same computation cost as the original OPENCV C++ Library codes cv.SIFT, cv.SURF, cv.descriptorMatcher etc.?

Or is some latency (delay) present in MEXOPENCV functions as compared to genuine OPENCV Library functions?

amroamroamro commented 5 years ago

mexopencv is a wrapper library, meaning we directly call OpenCV C++ functions.

The only overhead (small) is that of calling MEX-functions from MATLAB code, and converting between MATLAB and OpenCV data types (think from/to mxArray and cv::Mat)

youthiya commented 5 years ago

Thank you for answering.