Re: another composite image question [message #6302] |
Sat, 08 June 1996 00:00 |
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.
|
|
|