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

Home » Public Forums » archive » Re: another composite image question
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: another composite image question [message #6302] Sat, 08 June 1996 00:00
hamill is currently offline  hamill
Messages: 4
Registered: April 1996
Junior Member
In article <DsHrxq.LAq@news.hawaii.edu>, gennari@universe.Hawaii.edu
(Scott Gennari) wrote:

> Thanks for the responses to my first inquery. I have one more question
> along the same line.
>
> As an example, I have a series of gif images (2x2 for this example)
> with either 0 or 1 as the value and an additive composite is required
> for all pixels that had the value 1.
>
> four 2x2 images input composite output
>
> 01 01 11 00 -----> 13
> 00 00 10 00 -----> 20
>
> speed isn't a huge concern but how would this be done?
>
> thanks,
> Scott
>
> gennari@hawaii.edu
>

Try "result=total(a EQ 1,3)", where a is your input array dimensioned
2x2x4. The only thing is, in your example the "2" result should be a "1"
if I understand you correctly.

--
| Jim Hamill -- hamill@ais.net (home)
| or hamill@mailhub.nmg.sms.siemens.com (business)
|
| With interests in image processing, mathematics, physics,
| and especially nuclear medicine. And other stuff too.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Can I do this without using loops?
Next Topic: Need help:Plot the impulse response of filter.

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

Current Time: Fri Oct 10 14:03:19 PDT 2025

Total time taken to generate the page: 0.63866 seconds