Why does openCV image stitching work for images loaded in project but not dynamically loaded images

asked 2015-06-05 14:31:27 -0600

I have an application that stitches images using openCV and I save the images to my camera roll and to a location in the file system. When I pass those images in the file system as an array of UIImages in my file system, the stitching method does not work. However, when I take the images from my camera roll and download them to my computer and load them into my project through the copy bundle resources section, the stitching algorithm can easily stitch any of the images I put.

Is there a reason that this might happen and how can I fix it?

My Project

edit retag flag offensive close merge delete

Comments

It is the never ending story of absolute versus relative paths and the execution path settings in your code environment. If you want to avoid the problems, then use absolute locations and the problem is gone, if not make sure that the images are inside the folder where the execution of your software is happening, which is dependant on the coding environment.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-06-07 04:20:16 -0600 )edit