Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Registration module crashes

Hi,

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

Registration module crashes

Hi,

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.