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

STYLE: better readability

parent 6f043c32
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,9 @@ public:
itkTypeMacro(DimensionalityReductionModelFactory, itk::Object);
/** 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;
/** Mode in which the files is intended to be used */
......
......@@ -52,7 +52,7 @@ using SOM5DModelFactory = SOMModelFactory<TInputValue, TTargetValue, 5> ;
template <class TInputValue, class TOutputValue>
typename MachineLearningModel<itk::VariableLengthVector< TInputValue>, itk::VariableLengthVector< TOutputValue> >::Pointer
typename DimensionalityReductionModelFactory<TInputValue,TOutputValue>::DimensionalityReductionModelTypePointer
DimensionalityReductionModelFactory<TInputValue,TOutputValue>
::CreateDimensionalityReductionModel(const std::string& path, FileModeType mode)
{
......@@ -65,7 +65,8 @@ DimensionalityReductionModelFactory<TInputValue,TOutputValue>
for(std::list<LightObject::Pointer>::iterator i = allobjects.begin();
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)
{
possibleDimensionalityReductionModel.push_back(io);
......
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