Commit 1e251515 authored by Julien Malik's avatar Julien Malik

STYLE

parent aa97ab1b
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include "otbWrapperApplication.h" #include "otbWrapperApplication.h"
#include "otbWrapperApplicationFactory.h" #include "otbWrapperApplicationFactory.h"
//#include "otbWrapperTypes.h"
#include "itkVariableLengthVector.h" #include "itkVariableLengthVector.h"
#include "otbChangeLabelImageFilter.h" #include "otbChangeLabelImageFilter.h"
#include "otbStandardWriterWatcher.h" #include "otbStandardWriterWatcher.h"
...@@ -49,28 +47,19 @@ public: ...@@ -49,28 +47,19 @@ public:
itkTypeMacro(ImageSVMClassifier, otb::Application); itkTypeMacro(ImageSVMClassifier, otb::Application);
/** Filters typedef */ /** Filters typedef */
// Statistic XML file Reader
typedef itk::VariableLengthVector<FloatVectorImageType::InternalPixelType> MeasurementType; typedef itk::VariableLengthVector<FloatVectorImageType::InternalPixelType> MeasurementType;
typedef otb::StatisticsXMLFileReader<MeasurementType> StatisticsReader; typedef otb::StatisticsXMLFileReader<MeasurementType> StatisticsReader;
typedef otb::ShiftScaleVectorImageFilter<FloatVectorImageType, FloatVectorImageType> RescalerType; typedef otb::ShiftScaleVectorImageFilter<FloatVectorImageType, FloatVectorImageType> RescalerType;
typedef otb::SVMImageClassificationFilter<FloatVectorImageType, UInt8ImageType> ClassificationFilterType;
/// Classification typedefs typedef ClassificationFilterType::Pointer ClassificationFilterPointerType;
typedef otb::SVMImageClassificationFilter<FloatVectorImageType, UInt8ImageType> ClassificationFilterType; typedef ClassificationFilterType::ModelType ModelType;
typedef ClassificationFilterType::Pointer ClassificationFilterPointerType; typedef ModelType::Pointer ModelPointerType;
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;
private: private:
ImageSVMClassifier() ImageSVMClassifier()
{ {
SetName("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() virtual ~ImageSVMClassifier()
...@@ -87,7 +76,7 @@ private: ...@@ -87,7 +76,7 @@ private:
MandatoryOff("mask"); MandatoryOff("mask");
AddParameter(ParameterType_Filename, "imstat", "Image statistics file."); 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"); MandatoryOff("imstat");
AddParameter(ParameterType_Filename, "svm", "SVM Model."); AddParameter(ParameterType_Filename, "svm", "SVM Model.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment