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 >
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;
253 ConstIterator() ITK_DELETE_FUNCTION;
288 Iterator(const ConstIterator & it) ITK_DELETE_FUNCTION;
289 ConstIterator & operator=(const ConstIterator & it) ITK_DELETE_FUNCTION;
318 ConstIterator iter(
this, 0);
326 ConstIterator iter(
this,
m_Image->GetPixelContainer()->Size() );
338 void operator=(const
Self &) ITK_DELETE_FUNCTION;
353 #ifndef ITK_MANUAL_INSTANTIATION
354 #include "itkJointDomainImageToListSampleAdaptor.hxx"
ImageType::Pointer ImagePointer
JointDomainImageToListSampleAdaptor Self
static const unsigned int RangeDomainDimension
ImageType::IndexType ImageIndexType
ConstIterator(const ConstIterator &iter)
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const override
ImageIndexType m_TempIndex
Point< CoordinateRepType, itkGetStaticConstMacro(ImageDimension) > PointType
TPixelType::ValueType ValueType
AbsoluteFrequencyType GetFrequency() const
ImageRegionConstIterator< ImageType > ImageConstIteratorType
JoinTraits< RangeDomainMeasurementType, CoordinateRepType > JoinTraitsType
ConstIterator End() const
static const unsigned int MeasurementVectorSize
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
ImageJointDomainTraitsType::MeasurementVectorType MeasurementVectorType
Iterator & operator=(const Iterator &iter)
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
std::vector< InstanceIdentifier > InstanceIdentifierVectorType
NormalizationFactorsType m_NormalizationFactors
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor)
InstanceIdentifier Size() const override
ConstIterator & operator++()
SmartPointer< const Self > ConstPointer
ImageJointDomainTraitsType::RangeDomainMeasurementType RangeDomainMeasurementType
InstanceIdentifier m_InstanceIdentifier
ImageJointDomainTraitsType::CoordinateRepType CoordinateRepType
ImageType::SizeType ImageSizeType
Superclass::InstanceIdentifier InstanceIdentifier
virtual ~JointDomainImageToListSampleAdaptor()
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
void SetImage(const TImage *image)
void SetNormalizationFactors(NormalizationFactorsType &factors)
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
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...
Superclass::InstanceIdentifier InstanceIdentifier
bool operator==(const ConstIterator &it)
PixelContainerConstPointer m_PixelContainer
bool operator!=(const ConstIterator &it)
ImageType::RegionType ImageRegionType
ConstIterator Begin() const
JoinTraitsType::ValueType MeasurementType
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
ImageType::PixelContainerConstPointer PixelContainerConstPointer
ListSample< typename ImageJointDomainTraits< TImage >::MeasurementVectorType > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
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.
const TImage * GetImage() const
ImageJointDomainTraitsType::PointType PointType
Control indentation during Print() invocation.
ConstIterator & operator=(const ConstIterator &iter)
MeasurementVectorType m_TempVector
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.
JointDomainImageToListSampleAdaptor()
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor, InstanceIdentifier iid)
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const override
TotalAbsoluteFrequencyType GetTotalFrequency() const override
ImageJointDomainTraits Self
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType