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

Home » Public Forums » archive » Re: Store images into an array of images
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
Re: Store images into an array of images [message #52757] Thu, 01 March 2007 08:30 Go to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
aleks.franca@gmail.com wrote:
> Hy!
> I need to store Images into an array of images. How do I do that in
> IDL programming? Is it possible? Please someone help me.
>
If your images have different sizes or types, you would have to use an
array of pointers

arr_img = ptrarr(NbOfImages)

arr_img[0] = ptr_new(image0)
arr_img[1] = ptr_new(image1) etc

If there are all of the same size and type, then there is no problem at
all...

arr_image = intarr(Xsize, Ysize, nbOfImages) ;change intarr for the
proper type
arr_image[0] = image0
etc

Jean
Re: Store images into an array of images [message #52761 is a reply to message #52757] Thu, 01 March 2007 07:14 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
aleks.franca@gmail.com writes:

> I need to store Images into an array of images. How do I do that in
> IDL programming? Is it possible? Please someone help me.

Goodness! What in the world are you trying that doesn't work?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Store images into an array of images [message #52838 is a reply to message #52757] Thu, 01 March 2007 18:54 Go to previous message
aleks.franca@gmail.co is currently offline  aleks.franca@gmail.co
Messages: 33
Registered: March 2007
Member
On 1 mar, 13:30, "Jean H." <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> aleks.fra...@gmail.com wrote:
>> Hy!
>> I need to store Images into an array of images. How do I do that in
>> IDL programming? Is it possible? Please someone help me.
>
> If your images have different sizes or types, you would have to use an
> array of pointers
>
> arr_img = ptrarr(NbOfImages)
>
> arr_img[0] = ptr_new(image0)
> arr_img[1] = ptr_new(image1) etc
>
> If there are all of the same size and type, then there is no problem at
> all...
>
> arr_image = intarr(Xsize, Ysize, nbOfImages) ;change intarr for the
> proper type
> arr_image[0] = image0
> etc
>
> Jean


Thak you very much, Jean. It helped me a lot, but I have other
problem. I just started working with IDL, so my questions are a little
silly.
My problem know is that I can't visualize it using TV. I'm doing
something like...

; this is a test
;
nbOfImages = 2

filter = ['*.tif']
arr_img = ptrarr(NbOfImages)

for i = 0, NbOfImages-1 do begin
arr_img[i] = ptr_new(dialog_pickfile(path = 'C:\RSI\IDL63\examples
\data', filter = filter))
endfor

tv, *arr_img[0] ; this is only for testing. I wanted to visualize the
image in this point
;
;
Help me on that, please.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL support for international characters (unicode)
Next Topic: How can I multi-plot in IDL with the coordinates set by myself?

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

Current Time: Wed Oct 08 19:42:32 PDT 2025

Total time taken to generate the page: 0.00749 seconds