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

Home » Public Forums » archive » Re: Composition structure
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: Composition structure [message #41105 is a reply to message #41104] Fri, 01 October 2004 12:07 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Jeferson E. wrote:
> Hello there!
>
> Assuming I have 5 images and I want to get the maximum value
> composition. I can use something like that:
>
> Composite = Image1 > Image2 > Image3 > Image4 > Image5
>
> However, in the case I don't know the number of images, I can't use
> this structure. What could be done?
>

For any old situation you can loop through the values, for example...

x = 5 & for i = 0, 10 do begin & x >= i & print, i, x & endfor
0 5
1 5
2 5
3 5
4 5
5 5
6 6
7 7
8 8
9 9
10 10


In your case you would do something like the following...

composite = image1
for i = 0, nImages-1 do composite = composite > imagei (or composite >= imagei)

Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: array operators - vector processing relevant
Next Topic: WIDGET ID FINDING FUNCTION

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

Current Time: Sat Oct 11 13:41:04 PDT 2025

Total time taken to generate the page: 0.48909 seconds