|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkJointDomainImageToListSampleAdaptor_h
19 #define itkJointDomainImageToListSampleAdaptor_h
39 template <
typename TImage>
87 template <
typename TImage>
89 :
public ListSample<typename ImageJointDomainTraits<TImage>::MeasurementVectorType>
119 using typename Superclass::MeasurementVectorSizeType;
123 using typename Superclass::AbsoluteFrequencyType;
124 using typename Superclass::TotalAbsoluteFrequencyType;
125 using typename Superclass::InstanceIdentifier;
143 SetImage(
const TImage * image);
151 Size()
const override;
159 GetTotalFrequency()
const override;
178 itkSetMacro(UsePixelContainer,
bool);
179 itkGetConstMacro(UsePixelContainer,
bool);
180 itkBooleanMacro(UsePixelContainer);
220 m_MeasurementVectorCache = m_Adaptor->GetMeasurementVector(m_InstanceIdentifier);
221 return this->m_MeasurementVectorCache;
227 return m_InstanceIdentifier;
233 ++m_InstanceIdentifier;
250 m_InstanceIdentifier = iid;
285 this->ConstIterator::operator=(iter);
308 Iterator iter(
this, m_Image->GetPixelContainer()->Size());
326 ConstIterator iter(
this, m_Image->GetPixelContainer()->Size());
335 PrintSelf(std::ostream & os,
Indent indent)
const override;
344 bool m_UsePixelContainer{};
351 #ifndef ITK_MANUAL_INSTANTIATION
352 # include "itkJointDomainImageToListSampleAdaptor.hxx"
SmartPointer< Self > Pointer
typename ImageJointDomainTraitsType::MeasurementVectorType MeasurementVectorType
SmartPointer< const Self > ConstPointer
MeasurementVectorType ValueType
ConstIterator Begin() const
typename ImageJointDomainTraitsType::CoordinateRepType CoordinateRepType
Represent a n-dimensional size (bounds) of a n-dimensional image.
bool operator==(const ConstIterator &it) const
ConstIterator(const ConstIterator &iter)
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor)
ImageBaseType::PointType PointType
This adaptor returns measurement vectors composed of an image pixel's range domain value (pixel value...
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
ImageBaseType::SizeType SizeType
This class is the native implementation of the a Sample with an STL container.
Iterator(const Iterator &iter)
InstanceIdentifier GetInstanceIdentifier() const
Control indentation during Print() invocation.
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
std::vector< InstanceIdentifier > InstanceIdentifierVectorType
static constexpr unsigned int Dimension
Traits for a pixel that define the dimension and component type.
typename ImageType::RegionType ImageRegionType
typename ImageType::SizeType ImageSizeType
static constexpr unsigned int ImageDimension
typename ImageJointDomainTraitsType::RangeDomainMeasurementType RangeDomainMeasurementType
Trait to determine what datatype is needed if the specified pixel types are "joined" into a single ve...
A multi-dimensional iterator templated over image type that walks a region of pixels.
ImageBaseType::IndexType IndexType
InstanceIdentifier m_InstanceIdentifier
const JointDomainImageToListSampleAdaptor * m_Adaptor
MeasurementVectorType m_MeasurementVectorCache
Iterator & operator=(const Iterator &iter)
typename ImageType::PixelContainerConstPointer PixelContainerConstPointer
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType
ImageBaseType::RegionType RegionType
Iterator(const JointDomainImageToListSampleAdaptor *adaptor, InstanceIdentifier iid)
typename ImageType::PixelType PixelType
AbsoluteFrequencyType GetFrequency() const
Simulate a standard C array with copy semantics.
ConstIterator & operator=(const ConstIterator &iter)
This class provides the type definition for the measurement vector in the joint domain (range domain ...
static constexpr unsigned int Dimension
typename TPixelType::ValueType ValueType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ConstIterator & operator++()
Base class for most ITK classes.
A templated class holding a geometric point in n-Dimensional space.
typename ImageJointDomainTraitsType::MeasurementType MeasurementType
typename PixelTraitsType::ValueType RangeDomainMeasurementType
typename ImageType::Pointer ImagePointer
const MeasurementVectorType & GetMeasurementVector() const
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor, InstanceIdentifier iid)
typename ImageJointDomainTraitsType::PointType PointType
typename ImageType::ConstPointer ImageConstPointer
constexpr unsigned int Dimension
typename JoinTraitsType::ValueType MeasurementType
ConstIterator End() const
typename ImageType::IndexType ImageIndexType
Base class for all data objects in ITK.