Skip to content
Snippets Groups Projects
Commit 02702e79 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

REFAC: change all the different cast filters to the one and only...

REFAC: change all the different cast filters to the one and only ClampImageFilter for InputParameter
parent e0d16346
No related branches found
No related tags found
1 merge request!12Complex image integration
......@@ -26,6 +26,7 @@
#include "itkUnaryFunctorImageFilter.h"
#include "itkCastImageFilter.h"
#include "otbImageToVectorImageCastFilter.h"
#include "otbClampImageFilter.h"
namespace otb
{
......@@ -223,7 +224,7 @@ InputImageParameter::SimpleCastImage()
{
TInputImage* realInputImage = dynamic_cast<TInputImage*>(m_Image.GetPointer());
typedef itk::CastImageFilter<TInputImage, TOutputImage> CasterType;
typedef ClampImageFilter<TInputImage, TOutputImage> CasterType;
typename CasterType::Pointer caster = CasterType::New();
caster->SetInput(realInputImage);
......@@ -243,7 +244,7 @@ InputImageParameter::CastVectorImageFromImage()
{
TInputImage* realInputImage = dynamic_cast<TInputImage*>(m_Image.GetPointer());
typedef ImageToVectorImageCastFilter<TInputImage, TOutputImage> CasterType;
typedef ClampImageFilter<TInputImage, TOutputImage> CasterType;
typename CasterType::Pointer caster = CasterType::New();
caster->SetInput(realInputImage);
......
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