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

Home » Public Forums » archive » Re: Difficult Label_region question
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: Difficult Label_region question [message #60058 is a reply to message #59980] Fri, 25 April 2008 00:09 Go to previous messageGo to previous message
Gaurav is currently offline  Gaurav
Messages: 50
Registered: January 2007
Member
>> I want to use the label_region
>> in order the imnew to contain three segments. The first segment
>> contains pixels from the first channel, the second segment contain
>> pixels from the second channel, and the third segment contains pixels
>> from the third channel.

Even in that case, LABEL_REGION is not the function to use.
LABEL_REGION is used in a binary image when there are sompe pixels
clumped togetther. Suppose you had a binary satellite image in which
all the water bodies where colored with the value 255 while all rest
was 0. If there were 5 separate waterbodies, you could use
LABEL_REGION to identify the number of waterbodies, number them and to
find the pixels belonging to each waterbody. Ergo, WHERE would still
be the function that would come into use for you.

You should use WHERE function with the INDICES keyword to get the
locations that satisfy your value, something like
index_blue = WHERE(BLUE GT GREEN AND BLUE GT RED)
where BLUE GREEN and RED contain the three bands of your data.

Similarly you can get the elements for index_green and index_red.
These three variables will contain the "segments" you are looking for
and you can process them together.

Hope it helps...

Gaurav
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Difficult Label_region question
Next Topic: dlm file not found automatically

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

Current Time: Sat Oct 11 10:08:19 PDT 2025

Total time taken to generate the page: 1.44195 seconds