18 #ifndef itkJointDomainImageToListSampleAdaptor_h
19 #define itkJointDomainImageToListSampleAdaptor_h
39 template<
typename TImage >
48 TImage::ImageDimension
90 template<
typename TImage >
92 public ListSample< typename ImageJointDomainTraits< TImage >::MeasurementVectorType >
120 itkStaticConstMacro(MeasurementVectorSize,
unsigned int,
146 void SetImage(
const TImage *image);
149 const TImage * GetImage()
const;
160 itkStaticConstMacro(RangeDomainDimension,
unsigned int,
170 void SetNormalizationFactors(NormalizationFactorsType & factors);
177 itkSetMacro(UsePixelContainer,
bool);
178 itkGetConstMacro(UsePixelContainer,
bool);
179 itkBooleanMacro(UsePixelContainer);
196 *
this = adaptor->
Begin();
218 m_MeasurementVectorCache = m_Adaptor->GetMeasurementVector(m_InstanceIdentifier);
219 return this->m_MeasurementVectorCache;
224 return m_InstanceIdentifier;
229 ++m_InstanceIdentifier;
250 m_InstanceIdentifier = iid;
254 ConstIterator() ITK_DELETED_FUNCTION;
278 this->ConstIterator::operator=(iter);
293 Iterator(const ConstIterator & it) ITK_DELETED_FUNCTION;
294 ConstIterator & operator=(const ConstIterator & it) ITK_DELETED_FUNCTION;
309 Iterator iter(
this, m_Image->GetPixelContainer()->Size() );
317 ConstIterator iter(
this, 0);
325 ConstIterator iter(
this, m_Image->GetPixelContainer()->Size() );
333 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
351 #ifndef ITK_MANUAL_INSTANTIATION
352 #include "itkJointDomainImageToListSampleAdaptor.hxx"
ImageType::Pointer ImagePointer
JointDomainImageToListSampleAdaptor Self
ImageType::IndexType ImageIndexType
ConstIterator(const ConstIterator &iter)
ImageIndexType m_TempIndex
Point< CoordinateRepType, itkGetStaticConstMacro(ImageDimension) > PointType
TPixelType::ValueType ValueType
AbsoluteFrequencyType GetFrequency() const
Represent the size (bounds) of a n-dimensional image.
ImageRegionConstIterator< ImageType > ImageConstIteratorType
JoinTraits< RangeDomainMeasurementType, CoordinateRepType > JoinTraitsType
ConstIterator End() const
ImageJointDomainTraitsType::MeasurementVectorType MeasurementVectorType
Iterator & operator=(const Iterator &iter)
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
std::vector< InstanceIdentifier > InstanceIdentifierVectorType
NormalizationFactorsType m_NormalizationFactors
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor)
ConstIterator & operator++()
SmartPointer< const Self > ConstPointer
ImageJointDomainTraitsType::RangeDomainMeasurementType RangeDomainMeasurementType
InstanceIdentifier m_InstanceIdentifier
ImageJointDomainTraitsType::CoordinateRepType CoordinateRepType
ImageType::SizeType ImageSizeType
Superclass::InstanceIdentifier InstanceIdentifier
RangeDomainMeasurementVectorType m_TempRangeVector
ImageJointDomainTraitsType::MeasurementType MeasurementType
Simulate a standard C array with copy semnatics.
Traits for a pixel that define the dimension and component type.
const MeasurementVectorType & GetMeasurementVector() const
ImageType::ConstPointer ImageConstPointer
PixelTraitsType::ValueType RangeDomainMeasurementType
ImageRegionIterator< ImageType > ImageIteratorType
FixedArray< MeasurementType, itkGetStaticConstMacro(Dimension) > MeasurementVectorType
Iterator(const Iterator &iter)
const JointDomainImageToListSampleAdaptor * m_Adaptor
Trait to determine what datatype is needed if the specified pixel types are "joined" into a single ve...
bool operator==(const ConstIterator &it)
PixelContainerConstPointer m_PixelContainer
bool operator!=(const ConstIterator &it)
ImageType::RegionType ImageRegionType
const unsigned int Dimension
ConstIterator Begin() const
JoinTraitsType::ValueType MeasurementType
Iterator(const JointDomainImageToListSampleAdaptor *adaptor, InstanceIdentifier iid)
ImageType::PixelContainerConstPointer PixelContainerConstPointer
ListSample< typename ImageJointDomainTraits< TImage >::MeasurementVectorType > Superclass
static const unsigned int Dimension
This adaptor returns measurement vectors composed of an image pixel's range domain value (pixel value...
MeasurementVectorType ValueType
ImageJointDomainTraits< TImage > ImageJointDomainTraitsType
ImageConstPointer m_Image
This class is the native implementation of the a Sample with an STL container.
virtual ~JointDomainImageToListSampleAdaptor() override
ImageJointDomainTraitsType::PointType PointType
Control indentation during Print() invocation.
ConstIterator & operator=(const ConstIterator &iter)
MeasurementVectorType m_TempVector
ImageBaseType::SizeType SizeType
static const unsigned int ImageDimension
PixelTraits< typename TImage::PixelType > PixelTraitsType
ImageType::PixelType PixelType
InstanceIdentifier GetInstanceIdentifier() const
A templated class holding a geometric point in n-Dimensional space.
static const unsigned int Dimension
This class provides the type definition for the measurement vector in the joint domain (range domain ...
SmartPointer< Self > Pointer
Base class for all data objects in ITK.
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
A multi-dimensional iterator templated over image type that walks a region of pixels.
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor, InstanceIdentifier iid)
ImageBaseType::IndexType IndexType
ImageJointDomainTraits Self
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType