comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Loading Sorted Images into a 3D array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Loading Sorted Images into a 3D array [message #77058] Thu, 21 July 2011 08:06
M R is currently offline  M R
Messages: 19
Registered: July 2011
Junior Member
I have a stack of 55 png images (256 X 256, 24-bit each). I am
creating a 3D array and would like to load the images in an ascending
order. But this is not happening since IDL is loading them
1,10,101,.....2,20,201....and so on. How so I use the SORT command for
loading them in an order?

file=file_search('filepath*.bmp',COUNT=count)

arm=bytarr(256,256,count,/nozero)

for i=0,count-1 do begin

image=read_image(file[i])

arm[*,*,i] = image

end
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Some questions on cgsurf and cgsurface
Next Topic: Re: IDL runtime and X window

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:44:21 PDT 2025

Total time taken to generate the page: 0.00471 seconds