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

Home » Public Forums » archive » Re: Get min and max values from a multiband image according to pixel locations of classification image
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: Get min and max values from a multiband image according to pixel locations of classification image [message #82056 is a reply to message #82055] Sat, 17 November 2012 07:40 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dry in water writes:

>
> Hello all,
>
> I have a question to solve following issue.
> I have two images. One is a multiband image with 7bands. Another is an classifiction image with 3 classes. The classes named by class1 to class3. I'd like to obtain a single max/min values from a multiband image according to pixel locations of each classes (class1, class2, class3) of classification image. Could you help me for this?
>
> Thank you very much

Get the MIN and MAX values of the band interleaved image:

minImage = Min(image, DIMENSION=3, Max=MaxImage)

Locate class pixels:

class1Pixels = Where(classifiedImage EQ class1, count)
IF count GT 0 THEN BEGIN
class1Min = minImage[class1Pixels]
class1Max = maxImage[class1Pixels]
ENDIF

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: Get min and max values from a multiband image according to pixel locations of classification image
Next Topic: Rare View of Aurora Australis

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

Current Time: Fri Oct 10 10:10:22 PDT 2025

Total time taken to generate the page: 0.32070 seconds