Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to handle large images in matlab without running out of memory?

I am creating mosaic of two images based on the region matches between them using sift descriptors. The problem is when the created mosaic's size gets too large matlab runs out of memory. Is there some way of stitching the images without actually loading the complete images in memory. If not how do other gigapixel image generation techniques work or the panorama apps.

like image 558
meraj Avatar asked Feb 27 '11 17:02

meraj


1 Answers

  1. Determine the size of the final mosaic prior to stitching (easy to compute with the size of your input images and the homography).
  2. Write a blank mosaic to file (not in any specific format but a sequence of bytes just as in memory)
  3. I'm assuming you're inverse mapping the pixels from the original images to the mosaic. So, just write to file when you're trying to store the intensity of the pixel in your mosaic.
like image 131
Jacob Avatar answered Sep 23 '22 05:09

Jacob