Skip to content

Commit

Permalink
Merge pull request #3 from lennepkade/beta
Browse files Browse the repository at this point in the history
Merge from Beta
  • Loading branch information
nkarasiak authored Jun 22, 2016
2 parents fea7f6d + 875574f commit b83aa1c
Show file tree
Hide file tree
Showing 20 changed files with 1,313 additions and 324 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,29 @@ Then, as this plugin is very simple, you will just need two things for making a

The shapefile must have a column which contains your classification numbers *(1,3,4...)*. Otherwise if you use text or anything else it certainly won't work.

## Installation of scikit-learn
On Linux simply open terminal and type :
`pip install scikit-learn`

On Windows, you have few more steps to do. Open Windows menu, and search for OsGeo Shell, then type :<br/>
`curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py`

After get-pip.py has been downloaded write :<br/>
`python get-pip.py`

Now use pip in OsGeo Shell like on Linux. Just type :<br/>
`pip install scikit-learn`

You can now use **Random Forest**, **SVM**, or **KNN** !

## Tips

- If your raster is *spot6scene.tif*, you can create your mask under the name *spot6scene_mask.tif* and the script will detect it automatically.
- If you want to keep your spectral ROI model from an image, you can save your model to use it on another image.

## Todo

- Implement different classifiers
- Implement best progress bar for classifier like Random Forest / K-Nearest Neighbors.

### Thanks to...
I would like to thank the [Guiana Amazonian Park](http://www.parc-amazonien-guyane.fr/) for their confidence in my work, and the Master 2 Geomatics [Sigma](http://sigma.univ-toulouse.fr/en/welcome.html) for their excellent lessons in geomatics.
Expand Down
6 changes: 6 additions & 0 deletions config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Classification]
classifier = Gaussian Mixture Model
suffix = _class
prefix =
masksuffix = _mask

Loading

0 comments on commit b83aa1c

Please sign in to comment.