home

Topics Topics Edit Profile Profile Help/Instructions Help Register Register  
Search Last 1 | 3 | 7 Days Search Search Tree View Tree View  

Out-of-memory during Array Stitching ???

The Panorama Factory Forum » The Panorama Factory FAQ » Out-of-memory during Array Stitching ??? « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

igurevich38
New member
Username: Igurevich38

Post Number: 1
Registered: 12-2004
Posted on Tuesday, December 07, 2004 - 1:40 pm:   Edit PostDelete Post

I am having a memory issue even though I know for a fact that my PC has enough memory to do this.

I have 5 images, each is 17000 x 4000 pixels. I am trying to stitch them together into a single 17000 x 20000. After I import them and try to do a vertical array I get an "out of memory" error and PF crashes. However these same images when imported into Paint Shop Pro open up and stitch just fine. (But I can't get alignment exact so that's why I need PF here).

The images are 256 colors so they are not too huge. My PC has Win XP, 2 GB of RAM and max 4 GB of virtual memory allocated, with plenty of hard drive space left. Why isn't this working?

My images are all made up of 1000 x 1000 tiles, from which I didn't have any problems making 17000 x 4000 sections using PF. So where do I hit the limit?

Another questions is if what I am doing cannot be done in the end, is there a way to restitch my 1000x1000 tiles into some kinds of other size quadrants so in the end I can come up with a single 17000 x 20000 image?

Thanks.
Top of pagePrevious messageNext messageBottom of page Link to this message

John Strait
Moderator
Username: Jstrait

Post Number: 149
Registered: 5-2001
Posted on Tuesday, December 07, 2004 - 2:13 pm:   Edit PostDelete Post

I am sorry, but you are stretching the abilities of The Panorama Factory running on 32-bit Windows. The final image, 17,000 by 20,000 pixels, is almost certainly too large for The Panorama Factory given your computer's configuration.

You wrote "The images are 256 colors so they are not too huge" and "these same images when imported into Paint Shop Pro open up and stitch just fine."

The Panorama Factory expands all images to full color format before stitching. Each pixel occupies 4 bytes, one byte each for red, green, blue plus one more byte for housekeeping information. Perhaps Paint Shop Pro stitches without expanding the images...I don't know for sure.

But in The Panorama Factory, your 17,000 by 20,000 image will require 17,000 x 20,000 x 4 = 1,360,000,000 bytes. In other words, 1.36 GB. This by itself is too large for Windows XP.

Although you have 2 GB of RAM and 4 GB of swap space, The Panorama Factory needs a single, unbroken memory block to hold the image and Windows XP cannot allocate a single block that is 1.36 GB.

In addition, during stitching The Panorama Factory needs enough memory to hold the final image plus 3 of the row images which are each 17,000 x 4,000 x 4 = 272,000,000 bytes or 0.272 GB. So it needs 1.36 GB + 3 x 0.272 GB = 2.176 GB.

Under normal Windows XP, a single application cannot address more than 2 GB of virtual memory in any combination of memory blocks, regardless of the size of the swap file.

These are basic limitations in Windows XP.

Your only hopes are

1. To try the /3GB boot option in Windows XP. This increases the amount of available virtual memory from 2 GB to 3 GB.

--or--

2. Run it under the 64-bit version of The Panorama Factory. This increases the amount of virtual memory to 1 terabyte (1000 GB). Please note that this version runs only on AMD64 processors with 64-bit Windows.

For more information, I recommend you read these FAQ and Trouble reports:


Top of pagePrevious messageNext messageBottom of page Link to this message

igurevich38
New member
Username: Igurevich38

Post Number: 2
Registered: 12-2004
Posted on Tuesday, December 07, 2004 - 2:31 pm:   Edit PostDelete Post

Thanks John. At least I know what the limits are. I don't have an option to get 64 bit anything. Also paranoid to increase to the 3 GB swaping limit, because don't want to hose the machine.

So what is the largest possible image you can recommend with the given configuration that I listed? Do you think a maximum of a 10000x10000 image will work or 8000x8000. I would have to recalculate my tile stitching patterns, but I need to know what's my largest combined image can be before I start running into problems.

Thanks for your help.

Top of pagePrevious messageNext messageBottom of page Link to this message

John Strait
Moderator
Username: Jstrait

Post Number: 152
Registered: 5-2001
Posted on Monday, December 13, 2004 - 5:44 pm:   Edit PostDelete Post

I have been running the 3 GB version of Windows XP for a long time and have not had problems with it. I am running Service Pack 2 and it seems fine with the the 3 GB option. But I can appreciate your reluctance to try it.

On ordinary Windows XP, the limit on the final image is around 240 megapixels. So 10000 x 10000 should be OK. But there may be slight variations from one Windows XP installation to the next, so the only way to be absolutely certain is to try it!

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Administration Administration Log Out Log Out   Previous Page Previous Page Next Page Next Page