Supervised - Classification 2
Supervised - Classification 2
Brennan Stout
https://fromgistors.blogspot.com
Once the plugin is installed, two new menus should be added to QGIS. (If an
error occurs at this point, it is likely from a missing python library. Addendum
1at the end of this document covers how to fix it.)
Data Setup
1. To load bands into the plugin, open the plugin window and the “band
set” tab.
2. Add .tif files via the button in the top right corner.
3. With the bands added, arrange them in the proper order for the
satellite type and check if a band quickset option is available.
2. Use the button to create a new signature file. This will be used to
store the information about the classes.
3. With the signature file created, you can begin to set values. First, set
the MC ID, MC Name, and C Name of the first class you want to
classify, the MC ID and MC Name are the main class, with the C name
being the child class. (C ID will advance automatically has you add new
signitures.)
4. With these set, you can use the button in the top bar to create a
polygon containing pixels of your selected class.
a. Left click to add points and right click to close the polygon.
b. The signature will be captured from the pixels underneath the
polygon, so try to make sure only pixels of the class you want are
in your select area.
c. The most useful signatures are those that capture the most of
the variation within your class so the larger the area captured
the better.
d. When you are happy with your polygon close it and click the
button in the bottom right of the ROI menu to add your polygon
to your signatures for the class you have specified.
e. Multiple signatures can be contained in one macroclass or class,
with 5 – 7 signatures per class you are classifying giving you a
sufficiently accurate result.
5. With your signatures saved, you can now classify your image. Use the
“Classify Tab” in the SCP window, select you bandset, the macro or
child class to use, and the algorithm.
6. Click “RUN” (If this gets an error, restart the software, start a new
project, and re-add both the signature file and the images.)
a. This will prompt you to save a TIF file, place this somewhere you
can find it as this is your output file.
7. Once the tool has finished running, a new raster layer will be added to
your view. This will be a raster containing your classes plus an
additional “unclassified” class.
Addendum 1:
The main installation error comes from not having the library
remotior_sensus installed. This can be done by installing miniforge and
running it. In the prompt window for miniforge run these codes for
Windows.
This will install the library, at this point try to install the plugin again.
In the case the errors persist due to the library being out of data.
Resources:
Installation guide
Update fix