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

BUG: Because of neighborhood, this filter should not derive from...

BUG: Because of neighborhood, this filter should not derive from InPlaceImageFilter. This introduces bugs for instance with the multi-threading support.
parent 429c1608
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ PURPOSE. See the above copyright notices for more information.
#ifndef _otbMeanShiftImageFilterBase_h
#define _otbMeanShiftImageFilterBase_h
#include "itkInPlaceImageFilter.h"
#include "itkImageToImageFilter.h"
#include "itkVariableLengthVector.h"
namespace otb
......@@ -59,17 +59,17 @@ namespace otb
template <class TInputImage, class TOutputImage, class TPrecision = double>
class ITK_EXPORT MeanShiftImageFilterBase
: public itk::InPlaceImageFilter<TInputImage,TOutputImage>
: public itk::ImageToImageFilter<TInputImage,TOutputImage>
{
public:
/** Standard class typedef */
typedef MeanShiftImageFilterBase Self;
typedef itk::InPlaceImageFilter<TInputImage,TOutputImage> Superclass;
typedef itk::ImageToImageFilter<TInputImage,TOutputImage> Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
/** Type macro */
itkTypeMacro(MeanShiftImageFilterBase,InPlaceImageFilter);
itkTypeMacro(MeanShiftImageFilterBase,ImageToImageFilter);
/** Template parameters typedefs */
typedef TInputImage InputImageType;
......
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