Registration module crashes [closed]

asked 2015-03-25 03:26:41 -0600

ascentof gravatar image

updated 2015-03-25 03:58:43 -0600


I was trying to use the new registration module from opencv_contrib.

I used the example code.

cv::reg::MapperGradProj mapper;
cv::Ptr<cv::reg::Map> mapPtr;
cv::reg::MapperPyramid mappPyr(mapper);
mappPyr.calculate(oimage,oimage2, mapPtr);

The program already fails calling the calculate function.

Error in ... free(): invalid next size (normal): 0x0000000002a5a590

Edit: Got it. I had to convert the image to float first.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2015-03-25 05:06:24.428741