Ask Your Question

Revision history [back]

Maximum possible dimensions for a IplImage object

Hello,

I am working on a image annotation software package that needs to be able to handle large scale images, obtained using aerial imagery. Resolution of the images is 5000*5000 pixels.

The code is still written in the old C api

IplImage* image=cvLoadImage(path.c_str(),1);

Since displaying a full 5000 x 5000 pixel image on a standard laptop screen is not possible, I create subimages, using a region of interest of 500 x 500 pixels.

However, it seems that the last region of the image, being the bottom 500 pixels in height, are not stored in memory.

  • I was wondering if I am running to the size limit of an IplImage?
  • Have read on the internet the max size is around 4000 x 4000 pixels that it can store. Is this correct?
  • Would this problem dissappear if I change to the newer C++ interface and create a cv::Mat object by using imread?

Kind regards!