LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple 2d array overlap

I am trying to take a randomly generated 3d image and, using the idea that it is multiple 2d planes laid atop each other, overlap the 2d arrays until there is a one 2d array showing the overlapping values. The program I have now works well with small arrays, but the computer does not have the memory to deal with my needs. I need to have a final overlapping image of a 1024 x 768 array, and the 3d array is usually around (76-125)x1024x768. Is there a way to dump the memory in the shift register after it's been used once to free up space? or is there a simpler solution?
0 Kudos
Message 1 of 3
(2,462 Views)
Hi Goronwy,
see the attached file. I make little changes on your code, and add my version. Because of the random number vi brings a double between 0 and 1 you only need to use it once per loop. Hope it helps.
 
Mike
0 Kudos
Message 2 of 3
(2,444 Views)
You don't really need a shift register, simply index over each Z column and take the max value. Here's a quick draft.
 
 
The compiler knows exactly what to allocate for the final array, so a shift register gives no advantage here.


Message Edited by altenbach on 02-19-2008 02:47 PM
0 Kudos
Message 3 of 3
(2,437 Views)