Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Difficult L...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 8 Topic 5670 of 6022
Post > Topic >>

Re: Difficult Label_region question

by Gaurav <selfishgaurav@[EMAIL PROTECTED] > Apr 25, 2008 at 12:09 AM

>>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
 




 8 Posts in Topic:
Difficult Label_region question
moxament@[EMAIL PROTECTED  2008-04-23 19:21:08 
Re: Difficult Label_region question
Jonathan Dursi <ljdurs  2008-04-23 21:33:29 
Re: Difficult Label_region question
Gaurav <selfishgaurav@  2008-04-23 23:11:25 
Re: Difficult Label_region question
Gaurav <selfishgaurav@  2008-04-24 01:33:20 
Re: Difficult Label_region question
moxament@[EMAIL PROTECTED  2008-04-24 05:32:17 
Re: Difficult Label_region question
"mgalloy@[EMAIL PROT  2008-04-24 10:55:02 
Re: Difficult Label_region question
moxament@[EMAIL PROTECTED  2008-04-24 16:43:00 
Re: Difficult Label_region question
Gaurav <selfishgaurav@  2008-04-25 00:09:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:37:55 CDT 2008.