18 #ifndef itkJointDomainImageToListSampleAdaptor_h
19 #define itkJointDomainImageToListSampleAdaptor_h
39 template<
typename TImage >
87 template<
typename TImage >
89 public ListSample< typename ImageJointDomainTraits< TImage >::MeasurementVectorType >
143 void SetImage(
const TImage *image);
146 const TImage * GetImage()
const;
160 Self::RangeDomainDimension >;
173 itkSetMacro(UsePixelContainer,
bool);
174 itkGetConstMacro(UsePixelContainer,
bool);
175 itkBooleanMacro(UsePixelContainer);
192 *
this = adaptor->
Begin();
214 m_MeasurementVectorCache = m_Adaptor->GetMeasurementVector(m_InstanceIdentifier);
215 return this->m_MeasurementVectorCache;
220 return m_InstanceIdentifier;
225 ++m_InstanceIdentifier;
246 m_InstanceIdentifier = iid;
274 this->ConstIterator::operator=(iter);
305 Iterator iter(
this, m_Image->GetPixelContainer()->Size() );
321 ConstIterator iter(
this, m_Image->GetPixelContainer()->Size() );
329 void PrintSelf(std::ostream & os,
Indent indent)
const override;
345 #ifndef ITK_MANUAL_INSTANTIATION
346 #include "itkJointDomainImageToListSampleAdaptor.hxx"
std::vector< InstanceIdentifier > InstanceIdentifierVectorType
typename ImageType::PixelType PixelType
ConstIterator(const ConstIterator &iter)
ImageIndexType m_TempIndex
typename ImageJointDomainTraitsType::CoordinateRepType CoordinateRepType
typename Superclass::InstanceIdentifier InstanceIdentifier
AbsoluteFrequencyType GetFrequency() const
ConstIterator End() const
typename ImageType::SizeType ImageSizeType
typename ImageJointDomainTraitsType::PointType PointType
Iterator & operator=(const Iterator &iter)
MeasurementVectorType ValueType
typename ImageType::ConstPointer ImageConstPointer
NormalizationFactorsType m_NormalizationFactors
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor)
typename PixelTraitsType::ValueType RangeDomainMeasurementType
ConstIterator & operator++()
InstanceIdentifier m_InstanceIdentifier
static constexpr unsigned int ImageDimension
RangeDomainMeasurementVectorType m_TempRangeVector
constexpr unsigned int Dimension
Simulate a standard C array with copy semnatics.
Traits for a pixel that define the dimension and component type.
typename TPixelType::ValueType ValueType
typename Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
const MeasurementVectorType & GetMeasurementVector() const
typename ImageType::PixelContainerConstPointer PixelContainerConstPointer
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...
ImageBaseType::SizeType SizeType
bool operator==(const ConstIterator &it)
PixelContainerConstPointer m_PixelContainer
ImageBaseType::IndexType IndexType
bool operator!=(const ConstIterator &it)
typename ImageType::Pointer ImagePointer
typename ImageType::RegionType ImageRegionType
Represent a n-dimensional size (bounds) of a n-dimensional image.
static constexpr unsigned int Dimension
ConstIterator Begin() const
Iterator(const JointDomainImageToListSampleAdaptor *adaptor, InstanceIdentifier iid)
typename ImageJointDomainTraitsType::RangeDomainMeasurementType RangeDomainMeasurementType
This adaptor returns measurement vectors composed of an image pixel's range domain value (pixel value...
static constexpr unsigned int Dimension
ImageConstPointer m_Image
This class is the native implementation of the a Sample with an STL container.
Control indentation during Print() invocation.
typename ImageJointDomainTraitsType::MeasurementType MeasurementType
ImageBaseType::PointType PointType
ConstIterator & operator=(const ConstIterator &iter)
MeasurementVectorType m_TempVector
typename JoinTraitsType::ValueType MeasurementType
typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
Base class for most ITK classes.
typename Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
ImageBaseType::RegionType RegionType
InstanceIdentifier GetInstanceIdentifier() const
A templated class holding a geometric point in n-Dimensional space.
typename ImageJointDomainTraitsType::MeasurementVectorType MeasurementVectorType
typename ImageType::IndexType ImageIndexType
This class provides the type definition for the measurement vector in the joint domain (range domain ...
Base class for all data objects in ITK.
MeasurementVectorType m_MeasurementVectorCache
A multi-dimensional iterator templated over image type that walks a region of pixels.
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor, InstanceIdentifier iid)