rotating image with WarpAffine crashes sometimes

asked 2016-08-19 10:56:35 -0500


I am experiencing a random crash with WarpAffine when rotating images using OpenCV 3.1.

The image dimension is 4928 x 3264. Sometimes rotating works and other times rotating the same image by the same angle would crash the program

Does anyone have any idea what causes the crash?

edit retag flag offensive close merge delete


Can you reproduce problem in a small program?

LBerger gravatar imageLBerger ( 2016-08-19 12:00:26 -0500 )edit

I am guessing that your code is somewhere moving some pixels out of scope of your image borders due to the warpAffine, and then trying to access them again. Without code it is hard to say however where it goes wrong.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-08-23 08:45:13 -0500 )edit