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,
121 ImageJointDomainTraitsType::Dimension);
146 void SetImage(
const TImage *image);
149 const TImage * GetImage()
const;
152 InstanceIdentifier
Size() const ITK_OVERRIDE;
155 AbsoluteFrequencyType GetFrequency(InstanceIdentifier
id) const ITK_OVERRIDE;
158 TotalAbsoluteFrequencyType GetTotalFrequency() const ITK_OVERRIDE;
160 itkStaticConstMacro(RangeDomainDimension,
unsigned int,
163 typedef
FixedArray< RangeDomainMeasurementType,
170 void SetNormalizationFactors(NormalizationFactorsType & factors);
174 const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier
id) const ITK_OVERRIDE;
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;
247 InstanceIdentifier iid)
250 m_InstanceIdentifier = iid;
253 ConstIterator() ITK_DELETE_FUNCTION;
279 this->ConstIterator::operator=(iter);
287 Iterator(
const Self *adaptor) ITK_DELETE_FUNCTION;
310 Iterator iter(
this, m_Image->GetPixelContainer()->Size() );
326 ConstIterator iter(
this, m_Image->GetPixelContainer()->Size() );
334 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
338 void operator=(
const Self &) ITK_DELETE_FUNCTION;
353 #ifndef ITK_MANUAL_INSTANTIATION 354 #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)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
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
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
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.
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
MeasurementVectorType m_MeasurementVectorCache
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
A multi-dimensional iterator templated over image type that walks a region of pixels.
ConstIterator(const JointDomainImageToListSampleAdaptor *adaptor, InstanceIdentifier iid)
ImageJointDomainTraits Self
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType