Commit cbb52d21 authored by Ludovic Hussonnois's avatar Ludovic Hussonnois

REFAC: Remove unused class member.

parent 5b6a7299
......@@ -90,24 +90,6 @@ public:
{
UpdatePolygonClassStatisticsParameters();
}
// Change mandatory of input vector depending on supervised and unsupervised mode.
// if( HasValue( "classifier" ) )
// {
// UpdateInternalParameters( "training" );
// switch( trainVectorBase->GetClassifierCategory() )
// {
// case TrainVectorBase::Unsupervised:
// MandatoryOff( "io.vd" );
// break;
// default:
// case TrainVectorBase::Supervised:
// MandatoryOn( "io.vd" );
// break;
// }
// }
}
/**
......@@ -185,7 +167,7 @@ public:
unsigned long nbInputs = imageList->Size();
if( !HasInputVector ) // && trainVectorBase->GetClassifierCategory() == TrainVectorBase::Supervised )
if( !HasInputVector )
{
otbAppLogFATAL( "Missing input vector data files" );
}
......
......@@ -20,7 +20,6 @@
#ifndef otbTrainImagesBase_h
#define otbTrainImagesBase_h
#include "otbTrainVectorBase.h"
#include "otbVectorDataFileWriter.h"
#include "otbWrapperCompositeApplication.h"
#include "otbWrapperApplicationFactory.h"
......@@ -184,9 +183,6 @@ private:
protected:
/** Base use for training, this allow to know if the choosed classifier is supervised or unsupervised */
TrainVectorBase* trainVectorBase;
struct SamplingRates
{
long int fmt;
......
......@@ -123,7 +123,6 @@ void TrainImagesBase::ConnectSamplingParameters()
void TrainImagesBase::InitClassification()
{
AddApplication( "TrainVectorClassifier", "training", "Model training" );
trainVectorBase = dynamic_cast<TrainVectorBase*>(GetInternalApplication("training"));
AddParameter( ParameterType_InputVectorDataList, "io.valid", "Validation Vector Data List" );
SetParameterDescription( "io.valid", "A list of vector data to select the training samples." );
......
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