You have to alter the .pro code to match the number of classes you have. The default in the code right now is 7 classes. You would need to alter this to match your actual class numbers in your image and the output values you want the classes to have. Once the code matches your data, you can call it in band math like:
reclass(b1, 1, 2, 3, 4,5, 6, 7)
The above example would be for 7 classes that you wish to change to values of 11-17.
|