cluster with images: memory increases up to more than 2 GB and crashes

I have a lot of PNG images (around 1200, 12 MB in size) and I load by programming in labview with a loop for I put all the image data in a table for all images.

I can't complete this operation, while the images are very small memory LV is increasing more than 2 GB and then I get a memory error output.

I put one "structure" above all table operations. What is going on? IM really a bad thing, I guess.

Hi, Faust,.

"On the qualities of the picture, they are 32-bit and x 850 360 pixels BUT about 99% is transparant (images has a constant size which is transparant, there is a small object that moves in this space)."

Transparency is not relevant in terms of memory occupation. When the image loads, it just needs 850 * 360 * 4 bytes (or ~1.2 MB)...

Suggestion:

-Do not store images in memory... Do the math in slices of (say) 100 photos.

-Do some manipulation of the image to get the position of the moving object. Then you store only a small portion of the image (with the object) and some information about the location in the picture. In this way, you always know the size of the (original) photo, but you only keep the "interesting" part in memory!

Tags: NI Software

Similar Questions

Maybe you are looking for