Moritz Lennert a écrit :
On 11/05/09 09:51, Quentin Page wrote:
hi

I try to create a mask for the pixels which have been misfiled. For this I made a mapcal with the pixels of the original image are equal 0, but when I have relaunched a classification, the result is 2 classes (pixel to zero and others).

I personally do not really understand the question (but maybe I'm just dense), so maybe you should reformulate it more clearly. Start by giving us your entire workflow with the commands you use and the (unexpected) result.

Moritz
hi Moritz
thank you for your answers

my workflow are

r.mapcalc 
"mask246clas6...@ventoux_sud_quentin=if((classif6groupin...@ventoux_sud_quentin==4||classif6groupin...@ventoux_sud_quentin==5),red246...@ventoux_sud_quentin,0)"
r.mapcalc "mask246clas6gr...@ventoux_sud_quentin=if((classif6groupin...@ventoux_sud_quentin==4||classif6groupin...@ventoux_sud_quentin==5),green246...@ventoux_sud_quentin,0)" r.mapcalc "mask246clas6b...@ventoux_sud_quentin=if((classif6groupin...@ventoux_sud_quentin==4||classif6groupin...@ventoux_sud_quentin==5),bleue246...@ventoux_sud_quentin,0)"

 after

i.group 
input=mask246clas6...@ventoux_sud_quentin,mask246autoclas6gr...@ventoux_sud_quentin,mask246autoclas6bl...@ventoux_sud_quentin
 group=246groupstep2 subgroup=246subgroupstep2

i.cluster group=246groupstep2 subgroup=246subgroupstep2 classes=4 
sigfile=sigClassifstep2classe3

i.maxlik group=246groupstep2 subgroup=246subgroupstep2 
sigfile=sigClassifstep2classe3 Classifgrou246etape2IN 
reject=Classifgroup246etape2REJECT

the resulte is 2 classes 1 class the pixel which was classes 4 or 5 in the last classification
2 the others

I found a method for classifed the pixels which were classified incorrectly in 
the last version.

thank a lot

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to