Ask Your Question

C++ Implementation from C

asked 2014-03-02 13:45:07 -0500

Luek gravatar image

updated 2014-03-02 13:46:02 -0500

I found some code online that I am interested in using but I believe it was written in C and I need the C++ implementation for iOS development. Here is the line of code


Getting the error of:

No matching function for call to object of type 'cv::Mat'

Here is how I am defining patch

cv::Mat patch;

Anyone know how I can fix this? Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-02 14:06:36 -0500

updated 2014-03-02 14:07:22 -0500

Here you are:

cv::Range rowRange = cv::Range(i,i+blockSide+1);
cv::Range colRange = cv::Range(j,j+blockSide+1);
patch=I(rowRange, colRange);
edit flag offensive delete link more

Question Tools


Asked: 2014-03-02 13:45:07 -0500

Seen: 135 times

Last updated: Mar 02 '14