From 28271c71f740f6aa022758b9578dc078c2e36b1b Mon Sep 17 00:00:00 2001 From: Jonathan Guinet <jonathan.guinet@c-s.fr> Date: Thu, 20 Oct 2011 09:55:15 +0200 Subject: [PATCH] ENH: Concatenate Image change to be coherent with 12297:0cb20b432ef4 Changeset. --- Applications/Util/otbConcatenateImages.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Applications/Util/otbConcatenateImages.cxx b/Applications/Util/otbConcatenateImages.cxx index 161cc756da..a2630fa6c5 100644 --- a/Applications/Util/otbConcatenateImages.cxx +++ b/Applications/Util/otbConcatenateImages.cxx @@ -22,6 +22,7 @@ #include "otbMultiToMonoChannelExtractROI.h" #include "otbObjectList.h" #include "otbWrapperTypes.h" +#include "otbImageList.h" namespace otb { @@ -44,7 +45,8 @@ public: itkTypeMacro(ConcatenateImages, otb::Application); /** Filters typedef */ - typedef ImageListToVectorImageFilter<FloatImageListType, + typedef otb::ImageList<FloatImageType> ImageListType; + typedef ImageListToVectorImageFilter<ImageListType, FloatVectorImageType > ListConcatenerFilterType; typedef MultiToMonoChannelExtractROI<FloatVectorImageType::InternalPixelType, FloatImageType::PixelType> ExtractROIFilterType; @@ -54,10 +56,10 @@ private: ConcatenateImages() { SetName("ConcatenateImages"); - SetDescription("Concatenate a list of image into a single mulit channel one."); + SetDescription("Concatenate a list of images into a single multi channel one."); m_Concatener = ListConcatenerFilterType::New(); m_ExtractorList = ExtractROIFilterListType::New(); - m_ImageList = FloatImageListType::New(); + m_ImageList = ImageListType::New(); } virtual ~ConcatenateImages() @@ -70,7 +72,7 @@ private: SetParameterDescription("il", "Image list to concatenate"); AddParameter(ParameterType_OutputImage, "out", "Output Image"); - SetParameterDescription("out", "Outmput multiband image"); + SetParameterDescription("out", "Output multiband image"); } void DoUpdateParameters() @@ -79,7 +81,7 @@ private: // Reinitialize the object m_Concatener = ListConcatenerFilterType::New(); - m_ImageList = FloatImageListType::New(); + m_ImageList = ImageListType::New(); m_ExtractorList = ExtractROIFilterListType::New(); } @@ -128,7 +130,7 @@ private: ListConcatenerFilterType::Pointer m_Concatener; ExtractROIFilterListType::Pointer m_ExtractorList; - FloatImageListType::Pointer m_ImageList; + ImageListType::Pointer m_ImageList; }; } -- GitLab