Skip to content
Snippets Groups Projects
Commit cbaa9829 authored by Julien Michel's avatar Julien Michel
Browse files

REFAC: Replace use of TernaryFunctorImageFilter by use of FunctorImageFilter

parent 664de77c
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ otb_module(OTBComplexImage ...@@ -27,6 +27,7 @@ otb_module(OTBComplexImage
TEST_DEPENDS TEST_DEPENDS
OTBITK OTBITK
OTBFunctor
OTBImageBase OTBImageBase
OTBImageIO OTBImageIO
OTBTestKernel OTBTestKernel
......
...@@ -24,9 +24,8 @@ ...@@ -24,9 +24,8 @@
#include "otbImage.h" #include "otbImage.h"
#include "otbImageFileReader.h" #include "otbImageFileReader.h"
#include "otbImageFileWriter.h" #include "otbImageFileWriter.h"
#include "itkUnaryFunctorImageFilter.h"
#include "itkTernaryFunctorImageFilter.h"
#include "otbAmplitudePhaseToRGBFunctor.h" #include "otbAmplitudePhaseToRGBFunctor.h"
#include "otbFunctorImageFilter.h"
#include "itkComplexToModulusImageFilter.h" #include "itkComplexToModulusImageFilter.h"
#include "itkComplexToPhaseImageFilter.h" #include "itkComplexToPhaseImageFilter.h"
#include "itkShiftScaleImageFilter.h" #include "itkShiftScaleImageFilter.h"
...@@ -65,11 +64,10 @@ int otbAmplitudePhaseToRGBFunctor(int itkNotUsed(argc), char * argv[]) ...@@ -65,11 +64,10 @@ int otbAmplitudePhaseToRGBFunctor(int itkNotUsed(argc), char * argv[])
typedef otb::Functor::AmplitudePhaseToRGBFunctor typedef otb::Functor::AmplitudePhaseToRGBFunctor
<PixelType, PixelType, PixelType, RGBPixelType> ColorMapFunctorType; <PixelType, PixelType, PixelType, RGBPixelType> ColorMapFunctorType;
typedef itk::TernaryFunctorImageFilter typedef otb::FunctorImageFilter<ColorMapFunctorType> ColorMapFilterType;
<ImageType, ImageType, ImageType, RGBImageType, ColorMapFunctorType> ColorMapFilterType;
ColorMapFilterType::Pointer colormapper = ColorMapFilterType::New(); ColorMapFilterType::Pointer colormapper = ColorMapFilterType::New();
colormapper->GetFunctor().SetMaximum(4000); colormapper->GetModifiableFunctor().SetMaximum(4000);
colormapper->GetFunctor().SetMinimum(0); colormapper->GetModifiableFunctor().SetMinimum(0);
colormapper->SetInput1(modulusFilter->GetOutput()); colormapper->SetInput1(modulusFilter->GetOutput());
colormapper->SetInput2(constFilter->GetOutput()); colormapper->SetInput2(constFilter->GetOutput());
......
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