Tool NameK-Nearest Neighbours Classification
Tool ID6
Library IDimagery_opencv
Version1.0
Author(s)O.Conrad (c) 2016

Description

Integration of the OpenCV Machine Learning library for K-Nearest Neighbours classification of gridded features.

References

OpenCV - Open Source Computer Vision

OpenCV - Machine Learning Overview


Parameters

NameTypeIdentifierDescriptionConstraints
Input
Featuresgrid list, inputFEATURES
Training Samplestable, inputTRAIN_SAMPLESProvide a class identifier in the first field followed by sample data corresponding to the input feature grids.
Training Areasshapes, inputTRAIN_AREAS
Output
Classificationgrid, outputCLASSES
Look-up Tabletable, output, optionalCLASSES_LUTA reference list of the grid values that have been assigned to the training classes.
Options
NormalizebooleanNORMALIZEDefault: 0
TrainingchoiceMODEL_TRAINAvailable Choices:
[0] training areas
[1] training samples
[2] load from file
Default: 0
Class Identifiertable fieldTRAIN_CLASS
Buffer Sizefloating point numberTRAIN_BUFFERFor non-polygon type training areas, creates a buffer with a diameter of specified size.Minimum: 0.000000
Default: 1.000000
Load Modelfile pathMODEL_LOADUse a model previously stored to file.
Save Modelfile pathMODEL_SAVEStores model to file to be used for subsequent classifications instead of training areas.
Default Number of Neighboursinteger numberNEIGHBOURSMinimum: 1
Default: 3
Training MethodchoiceTRAININGAvailable Choices:
[0] classification
[1] regression model
Default: 0
Algorithm TypechoiceALGORITHMAvailable Choices:
[0] brute force
[1] KD Tree
Default: 0
Parameter for KD Tree implementationinteger numberEMAXMinimum: 1
Default: 1000