Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
5a10a36a
Commit
5a10a36a
authored
7 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
DOC: CookBook improvements on unsupervised classification
parent
8ac6bf6d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Documentation/Cookbook/rst/recipes/pbclassif.rst
+32
-6
32 additions, 6 deletions
Documentation/Cookbook/rst/recipes/pbclassif.rst
with
32 additions
and
6 deletions
Documentation/Cookbook/rst/recipes/pbclassif.rst
+
32
−
6
View file @
5a10a36a
...
...
@@ -553,16 +553,42 @@ provide a vector data file with a label field. This vector file will be
used to extract samples for the training. Each label value is can be considered
as a source area for samples, the same logic as in supervised learning is
applied for the computation of extracted samples per area. Hence, for
unsupervised classification :
unsupervised classification, the samples are selected based on classes that are
not actually used during the training. For the moment, only the KMeans
algorithm is proposed in this framework.
- if there is a unique label in the vector data, samples will be selected as if
they come from a single class or set
::
otbcli_TrainImageClassifier
-io.il image.tif
-io.vd training_areas.shp
-io.out model.txt
-sample.vfn Class
-classifier sharkkm
-classifier.sharkkm.k 4
- if multiple labels are present, samples will be selected so that every
samples in the smallest class are selected, and the same number of sample from
each class
If your training samples are in a vector data file, you can use the application
*TrainVectorClassifier*. In this case, you don't need a fake label field. You
just need to specify which fields shall be used to do the training.
::
otbcli_TrainVectorClassifier
-io.vd training_samples.shp
-io.out model.txt
-feat perimeter area width red nir
-classifier sharkkm
-classifier.sharkkm.k 4
Once you have the model file, the actual classification step is the same as
the supervised case. The model will predict labels on your input data.
::
otbcli_ImageClassifier
-in input_image.tif
-model model.txt
-out kmeans_labels.tif
Fusion of classification maps
-----------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment