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
1e251515
Commit
1e251515
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
STYLE
parent
aa97ab1b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Applications/Classification/otbImageSVMClassifier.cxx
+6
-17
6 additions, 17 deletions
Applications/Classification/otbImageSVMClassifier.cxx
with
6 additions
and
17 deletions
Applications/Classification/otbImageSVMClassifier.cxx
+
6
−
17
View file @
1e251515
...
...
@@ -18,8 +18,6 @@
#include
"otbWrapperApplication.h"
#include
"otbWrapperApplicationFactory.h"
//#include "otbWrapperTypes.h"
#include
"itkVariableLengthVector.h"
#include
"otbChangeLabelImageFilter.h"
#include
"otbStandardWriterWatcher.h"
...
...
@@ -49,28 +47,19 @@ public:
itkTypeMacro
(
ImageSVMClassifier
,
otb
::
Application
);
/** Filters typedef */
// Statistic XML file Reader
typedef
itk
::
VariableLengthVector
<
FloatVectorImageType
::
InternalPixelType
>
MeasurementType
;
typedef
otb
::
StatisticsXMLFileReader
<
MeasurementType
>
StatisticsReader
;
typedef
otb
::
ShiftScaleVectorImageFilter
<
FloatVectorImageType
,
FloatVectorImageType
>
RescalerType
;
/// Classification typedefs
typedef
otb
::
SVMImageClassificationFilter
<
FloatVectorImageType
,
UInt8ImageType
>
ClassificationFilterType
;
typedef
ClassificationFilterType
::
Pointer
ClassificationFilterPointerType
;
typedef
ClassificationFilterType
::
ModelType
ModelType
;
typedef
ModelType
::
Pointer
ModelPointerType
;
// Cast filter
// TODO: supress that !!
//typedef MultiToMonoChannelExtractROI<FloatVectorImageType::InternalPixelType,
// UInt8ImageType::PixelType> ExtractImageFilterType;
//typedef ImageToVectorImageCastFilter<UInt8ImageType, FloatVectorImageType> CastImageFilterType;
typedef
otb
::
SVMImageClassificationFilter
<
FloatVectorImageType
,
UInt8ImageType
>
ClassificationFilterType
;
typedef
ClassificationFilterType
::
Pointer
ClassificationFilterPointerType
;
typedef
ClassificationFilterType
::
ModelType
ModelType
;
typedef
ModelType
::
Pointer
ModelPointerType
;
private:
ImageSVMClassifier
()
{
SetName
(
"ImageSVMClassifier"
);
SetDescription
(
"Perform SVM classification based a previous computed SVM model"
);
SetDescription
(
"Perform SVM classification based
on
a previous computed SVM model"
);
}
virtual
~
ImageSVMClassifier
()
...
...
@@ -87,7 +76,7 @@ private:
MandatoryOff
(
"mask"
);
AddParameter
(
ParameterType_Filename
,
"imstat"
,
"Image statistics file."
);
SetParameterDescription
(
"imstat"
,
"a XML file containing mean and standard deviation of input images used to train svm model
.
"
);
SetParameterDescription
(
"imstat"
,
"a XML file containing mean and standard deviation of input images used to train svm model"
);
MandatoryOff
(
"imstat"
);
AddParameter
(
ParameterType_Filename
,
"svm"
,
"SVM Model."
);
...
...
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