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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
dded43e3
Commit
dded43e3
authored
13 years ago
by
Jonathan Guinet
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Train SVM Images Classifier Doc update.
parent
e5051e4f
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
Applications/Classification/otbTrainSVMImagesClassifier.cxx
+22
-7
22 additions, 7 deletions
Applications/Classification/otbTrainSVMImagesClassifier.cxx
with
22 additions
and
7 deletions
Applications/Classification/otbTrainSVMImagesClassifier.cxx
+
22
−
7
View file @
dded43e3
...
...
@@ -131,6 +131,21 @@ private:
{
SetName
(
"TrainSVMImagesClassifier"
);
SetDescription
(
"Perform SVM training from multiple input images and multiple vector data."
);
// Documentation
SetDocName
(
"Train SVM images Application"
);
SetDocLongDescription
(
"This application performs SVM training from multiple input images and multiple vector data."
);
SetDocLimitations
(
"None"
);
SetDocAuthors
(
"OTB-Team"
);
SetDocSeeAlso
(
" "
);
SetDocCLExample
(
"otbApplicationLauncherCommandLine TrainSVMImagesClassifier ${OTB-BIN}/bin"
"--il ${OTB-DATA}/Classification/QB_1_ortho.tif "
"--vd ${OTB-DATA}/Classification/ectorData_QB1.shp"
"--imstat ${OTB-Data}/Baseline/OTB-Applications/Files/clImageStatisticsQB1.xml"
"--b 2 --mv 100 --vtr 0.5 --opt true -out svmModelQB1_allOpt.svm"
);
AddDocTag
(
"Classification"
);
AddDocTag
(
"Training"
);
AddDocTag
(
"SVM"
);
}
virtual
~
TrainSVMImagesClassifier
()
...
...
@@ -143,7 +158,7 @@ private:
AddParameter
(
ParameterType_InputImageList
,
"il"
,
"Input Image List"
);
SetParameterDescription
(
"il"
,
"a list of input images."
);
AddParameter
(
ParameterType_InputVectorDataList
,
"vd"
,
"Vector Data List"
);
SetParameterDescription
(
"vd"
,
"
a
list of vector data sample used to train the estimator."
);
SetParameterDescription
(
"vd"
,
"
A
list of vector data sample used to train the estimator."
);
AddParameter
(
ParameterType_Filename
,
"dem"
,
"DEM repository"
);
MandatoryOff
(
"dem"
);
SetParameterDescription
(
"dem"
,
"path to SRTM repository"
);
...
...
@@ -154,9 +169,9 @@ private:
SetParameterDescription
(
"out"
,
"Output SVM model"
);
AddParameter
(
ParameterType_Float
,
"m"
,
"Margin for SVM learning"
);
MandatoryOff
(
"m"
);
SetParameterDescription
(
"m"
,
"Margin for SVM learning"
);
SetParameterDescription
(
"m"
,
"Margin for SVM learning
.
"
);
AddParameter
(
ParameterType_Int
,
"b"
,
"Balance and grow the training set"
);
SetParameterDescription
(
"b"
,
"Balance and grow the training set"
);
SetParameterDescription
(
"b"
,
"Balance and grow the training set
.
"
);
MandatoryOff
(
"b"
);
AddParameter
(
ParameterType_Choice
,
"k"
,
"SVM Kernel Type"
);
MandatoryOff
(
"k"
);
...
...
@@ -165,18 +180,18 @@ private:
AddChoice
(
"k.poly"
,
"Polynomial"
);
AddChoice
(
"k.sigmoid"
,
"Sigmoid"
);
SetParameterString
(
"k"
,
"linear"
);
SetParameterDescription
(
"k"
,
"SVM Kernel Type"
);
SetParameterDescription
(
"k"
,
"SVM Kernel Type
.
"
);
AddParameter
(
ParameterType_Int
,
"mt"
,
"Maximum training sample size"
);
MandatoryOff
(
"mt"
);
SetParameterInt
(
"mt"
,
-
1
);
SetParameterDescription
(
"mt"
,
"Maximum size of the training sample (default = -1)"
);
SetParameterDescription
(
"mt"
,
"Maximum size of the training sample (default = -1)
.
"
);
AddParameter
(
ParameterType_Int
,
"mv"
,
"Maximum validation sample size"
);
MandatoryOff
(
"mv"
);
SetParameterInt
(
"mv"
,
-
1
);
SetParameterDescription
(
"mv"
,
"Maximum size of the validation sample (default = -1)"
);
AddParameter
(
ParameterType_Float
,
"vtr"
,
"training and validation sample ratio"
);
SetParameterDescription
(
"vtr"
,
"Ratio between training and validation sample (0.0 = all training, 1.0 = all validation) default = 0.5"
);
"Ratio between training and validation sample (0.0 = all training, 1.0 = all validation) default = 0.5
.
"
);
MandatoryOff
(
"vtr"
);
SetParameterFloat
(
"vtr"
,
0.5
);
AddParameter
(
ParameterType_Empty
,
"opt"
,
"parameters optimization"
);
...
...
@@ -184,7 +199,7 @@ private:
SetParameterDescription
(
"opt"
,
"SVM parameters optimization"
);
AddParameter
(
ParameterType_Filename
,
"vfn"
,
"Name of the discrimination field"
);
MandatoryOff
(
"vfn"
);
SetParameterDescription
(
"vfn"
,
"Name of the field using to discriminate class in the vector data files"
);
SetParameterDescription
(
"vfn"
,
"Name of the field using to discriminate class in the vector data files
.
"
);
SetParameterString
(
"vfn"
,
"Class"
);
}
...
...
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