Ask Your Question
0

C++ Implementation from C

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

Luek gravatar image

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

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

patch=I(NSMakeRange(i,i+blockSide+1),NSMakeRange(j,j+blockSide+1));

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
1

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

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

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

Stats

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

Seen: 212 times

Last updated: Mar 02 '14