14 Dec 2008 12:17 AM |
|
Hi, everybody.
I try to complete a project of Post Classification with CLASS_MAJORITY_DOIT, whose UI looks like Envi.
By reading the help, I can't find the tips or keywords how to pass the value of Center Pixel Weight.
Who can offer a solution ? I need your help!
|
|
|
|
MariM Veteran Member
Posts:2396  
22 Dec 2008 12:26 PM |
|
Try using the keyword 'center_weight'. For example:
center_weight=3
It appears this keyword is missing from the online help.
|
|
|
|
Deleted User New Member
Posts:  
24 Dec 2008 08:59 AM |
|
Thank you for your help.
Maybe the keyword in this method has been lost by mistake, and it seems that the word 'center_weight' is just not the keyword.
I try it in a simple test .pro, it does not work and takes no effects. Besides, using this word directly or indirectly has different resluts, one occurs an error and the idl workbench collapses.
Who konws the exact keyword?
|
|
|
|
MariM Veteran Member
Posts:2396  
29 Dec 2008 08:24 AM |
|
That is the correct keyword. For some reason the routine is not using it in the calculations. I will see if I can find out more.
|
|
|
|
MariM Veteran Member
Posts:2396  
29 Dec 2008 09:46 AM |
|
The problem is in the example code when setting up the CLASS_PTR. It is setting the same class number for each class because the code uses LONARR. Instead use LINDGEN:
class_ptr = lindgen(num_classes) + 1
|
|
|
|
Deleted User New Member
Posts:  
24 Feb 2009 09:18 PM |
|
Thanks for your help, I check it yesterday, and what you said is right. I am sorry for so late answer.
|
|
|
|