comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: another composite image question

Re: another composite image question
type: item
description: 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.
creator: hamill
date: 1996-06-08T07:00:00-00:00