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

Home » Public Forums » archive » Re: MIP from BMP Images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: MIP from BMP Images [message #76898 is a reply to message #76811] Fri, 08 July 2011 08:13 Go to previous message
M R is currently offline  M R
Messages: 19
Registered: July 2011
Junior Member
I hope I am making some kind of progress here. I have the following
code and I (fortunately) do not get any errors and of course the
output is in the form of a blank black pop out screen (I am being too
optimistic) and think atleast the program works! Below is the code

fil = file_search('filepath*.bmp',COUNT = count)
imag=read_bmp(fil[0])
s=size(imag)

arm = bytarr (s[1],s[2],count,/nozero)

for i=0, count-1 do begin
image = read_bmp(fil[i])
arm[*,*,i]=image[*,*]
end

TV,MAX (arm, dimension = 3)

end

(i). imag, arm, image array sizes do not match. They are

IDL> help, arm
ARM BYTE = Array[3, 2216, 256]
IDL> help, imag
IMAG BYTE = Array[3, 2216, 1254]
IDL> help, image
IMAGE BYTE = Array[3, 2216, 1254]

Does anyone feel that this mismatch between the array sizes is
creating the blank black pop out screen instead of an image?

(ii).

> IDL print, fil shows that the images are being loaded in an alphabetical manner. Not in an ascending order. I have used sort command, but the system took more 12 hrs and hasn't yet reported an output yet. Is there something I am overlooking?

Thank you all again for your help!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Aw: Re: Aw: Re: TOTAL gives totally different result on identical array
Next Topic: Variable is undefined: Actually a function

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

Current Time: Thu Oct 09 22:36:39 PDT 2025

Total time taken to generate the page: 0.95899 seconds