22 #ifndef otbSOMbasedImageFilter_h
23 #define otbSOMbasedImageFilter_h
26 #include "itkUnaryFunctorImageFilter.h"
43 template <
class TInput,
class TOutput,
class TDistanceMetric,
class TMap>
67 TOutput operator()(
const TInput& input);
74 void SetMap(
const MapType* theMap);
80 return this->m_Distance;
86 IndexType GetWinner(
const NeuronType& sample);
116 template <
class TInputImage,
class TOutputImage,
class TDistanceMetric,
class TMap>
118 :
public itk::UnaryFunctorImageFilter<
119 TInputImage, TOutputImage,
120 Functor::SOMbasedImageFilterFunctor<typename TInputImage::PixelType, typename TOutputImage::PixelType, TDistanceMetric, TMap>>
125 typedef typename itk::UnaryFunctorImageFilter<
150 void SetMap(
const MapType* theMap);
154 void BeforeThreadedGenerateData(
void)
override;
171 #ifndef OTB_MANUAL_INSTANTIATION
This class implements the functor that perform substitution between input image pixels and the corres...
virtual ~SOMbasedImageFilterFunctor()
DistanceType::Pointer DistancePointerType
TDistanceMetric DistanceType
DistancePointerType m_Distance
SOMbasedImageFilterFunctor(const Self &)
DistanceType * GetDistance()
MapType::PixelType NeuronType
SOMbasedImageFilterFunctor()
MapType::Pointer MapPointerType
void operator=(const Self &)
MapType::IndexType IndexType
SOMbasedImageFilterFunctor Self
This class perform the substitution between initial input image pixels and the winning neurons of a S...
~SOMbasedImageFilter() override
Functor::SOMbasedImageFilterFunctor< typename TInputImage::PixelType, typename TOutputImage::PixelType, TDistanceMetric, TMap > FunctorType
itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::SOMbasedImageFilterFunctor< typename TInputImage::PixelType, typename TOutputImage::PixelType, TDistanceMetric, TMap > > Superclass
void operator=(const Self &)=delete
MapType::Pointer MapPointerType
TDistanceMetric DistanceMetricType
itk::SmartPointer< const Self > ConstPointer
DistanceMetricType::Pointer DistanceMetricPointerType
TInputImage::PixelType MeasurementType
SOMbasedImageFilter(const Self &)
itk::SmartPointer< Self > Pointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.