Commit fe1b7268 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

STYLE: better readability

No related merge requests found
Showing with 6 additions and 3 deletions
+6 -3
...@@ -46,7 +46,9 @@ public: ...@@ -46,7 +46,9 @@ public:
itkTypeMacro(DimensionalityReductionModelFactory, itk::Object); itkTypeMacro(DimensionalityReductionModelFactory, itk::Object);
/** Convenient typedefs. */ /** Convenient typedefs. */
typedef otb::MachineLearningModel<itk::VariableLengthVector< TInputValue> , itk::VariableLengthVector< TOutputValue>> DimensionalityReductionModelType; typedef otb::MachineLearningModel<
itk::VariableLengthVector< TInputValue >,
itk::VariableLengthVector< TOutputValue> > DimensionalityReductionModelType;
typedef typename DimensionalityReductionModelType::Pointer DimensionalityReductionModelTypePointer; typedef typename DimensionalityReductionModelType::Pointer DimensionalityReductionModelTypePointer;
/** Mode in which the files is intended to be used */ /** Mode in which the files is intended to be used */
......
...@@ -52,7 +52,7 @@ using SOM5DModelFactory = SOMModelFactory<TInputValue, TTargetValue, 5> ; ...@@ -52,7 +52,7 @@ using SOM5DModelFactory = SOMModelFactory<TInputValue, TTargetValue, 5> ;
template <class TInputValue, class TOutputValue> template <class TInputValue, class TOutputValue>
typename MachineLearningModel<itk::VariableLengthVector< TInputValue>, itk::VariableLengthVector< TOutputValue> >::Pointer typename DimensionalityReductionModelFactory<TInputValue,TOutputValue>::DimensionalityReductionModelTypePointer
DimensionalityReductionModelFactory<TInputValue,TOutputValue> DimensionalityReductionModelFactory<TInputValue,TOutputValue>
::CreateDimensionalityReductionModel(const std::string& path, FileModeType mode) ::CreateDimensionalityReductionModel(const std::string& path, FileModeType mode)
{ {
...@@ -65,7 +65,8 @@ DimensionalityReductionModelFactory<TInputValue,TOutputValue> ...@@ -65,7 +65,8 @@ DimensionalityReductionModelFactory<TInputValue,TOutputValue>
for(std::list<LightObject::Pointer>::iterator i = allobjects.begin(); for(std::list<LightObject::Pointer>::iterator i = allobjects.begin();
i != allobjects.end(); ++i) i != allobjects.end(); ++i)
{ {
MachineLearningModel<itk::VariableLengthVector< TInputValue> , itk::VariableLengthVector< TOutputValue>> * io = dynamic_cast<MachineLearningModel<itk::VariableLengthVector< TInputValue> , itk::VariableLengthVector< TOutputValue>>*>(i->GetPointer()); DimensionalityReductionModelType* io =
dynamic_cast<DimensionalityReductionModelType*>(i->GetPointer());
if(io) if(io)
{ {
possibleDimensionalityReductionModel.push_back(io); possibleDimensionalityReductionModel.push_back(io);
......
Supports Markdown
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