X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Feb 2009 05:53 AM by  anon
Change class value
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
18 Feb 2009 05:53 AM
    Dear all, I'd like to know how to change the class value of a classified image. I'd like to obtain a classified image or any raster. If my class "water" is 6 and "forest" 4 for exemple, i want to recode water as 4 and forest as 6. How to do? Thanks.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    18 Feb 2009 11:30 AM
    One way to remap your classes would be to use the Classification ->Post Classification->Combine classes tool.  It sounds like it can only combine classes but you can also 'switch' classes using this tool.  For example, I can select class 1 from the input column and set it to be output to class 3.  Then I can set class 3 from the input to class 1 on output.  This will switch the two classes.  What you can't do is assign it to a new class value that does not exist.  If you wanted to do something like this, you would have to use something like Band Math to manually change values to new values not already contained in the data.
    You are not authorized to post a reply.