Skip to content
Snippets Groups Projects
Commit ea4a6656 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

COMP: issue with enum SampleStrategy on gcc 4.1

parent 44457e71
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ public:
// {
ComputePolygonStatistics( imageList, vectorFileList, fileNames.polyStatTrainOutputs );
ComputeSamplingRate( fileNames.polyStatTrainOutputs, fileNames.rateTrainOut, rates.fmt );
SelectAndExtractTrainSamples( fileNames, imageList, vectorFileList, SamplingStrategy::CLASS );
SelectAndExtractTrainSamples( fileNames, imageList, vectorFileList, Superclass::CLASS );
// }
// else // Select training samples base on geometric sampling if no input vector is provided
// {
......@@ -224,4 +224,4 @@ private :
} // end namespace Wrapper
} // end namespace otb
OTB_APPLICATION_EXPORT( otb::Wrapper::TrainImagesClassifier )
\ No newline at end of file
OTB_APPLICATION_EXPORT( otb::Wrapper::TrainImagesClassifier )
......@@ -62,10 +62,10 @@ public:
protected:
enum SamplingStrategy
typedef enum
{
CLASS, GEOMETRIC
};
} SamplingStrategy;
struct SamplingRates;
class TrainFileNamesHandler;
......
......@@ -335,7 +335,7 @@ void TrainImagesBase::SelectAndExtractValidationSamples(const TrainFileNamesHand
{
SelectAndExtractSamples( imageList->GetNthElement( i ), validationVectorFileList[i],
fileNames.sampleValidOutputs[i], fileNames.polyStatValidOutputs[i],
fileNames.ratesValidOutputs[i], SamplingStrategy::CLASS );
fileNames.ratesValidOutputs[i], Self::CLASS );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment