18 #ifndef __itkImageToListSampleAdaptor_h
19 #define __itkImageToListSampleAdaptor_h
52 template<
typename TImage >
54 public ListSample< typename MeasurementVectorPixelTraits< typename TImage::PixelType >::MeasurementVectorType >
125 return m_Image->GetNumberOfComponentsPerPixel();
147 *
this = adaptor->
Begin();
256 ImageIteratorType imageIterator( nonConstImage, nonConstImage->GetLargestPossibleRegion() );
267 ImageIteratorType imageIterator( nonConstImage, nonConstImage->GetLargestPossibleRegion() );
313 #ifndef ITK_MANUAL_INSTANTIATION
314 #include "itkImageToListSampleAdaptor.hxx"
ImageToListSampleAdaptor()
MeasurementVectorTraitsType::ValueType MeasurementType
SmartPointer< Self > Pointer
ConstIterator End() const
InstanceIdentifier m_InstanceIdentifier
MeasurementVectorType ValueType
void PrintSelf(std::ostream &os, Indent indent) const
ImageConstPointer m_Image
InstanceIdentifier GetInstanceIdentifier() const
AbsoluteFrequencyType GetFrequency() const
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
ImageRegionConstIterator< ImageType > ImageConstIteratorType
ImageRegionIterator< ImageType > ImageIteratorType
static void Assign(TArrayType &m, const TArrayType &v)
SmartPointer< const Self > ConstPointer
MeasurementVectorType m_MeasurementVectorInternal
virtual const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const
ImageType::Pointer ImagePointer
InstanceIdentifier Size() const
TMeasurementVector::ValueType ValueType
Traits for a pixel that define the dimension and component type.
TotalAbsoluteFrequencyType GetTotalFrequency() const
MeasurementVectorTraitsTypes< MeasurementVectorType > MeasurementVectorTraitsType
bool operator!=(const ConstIterator &it)
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
ImageType::ConstPointer ImageConstPointer
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
ImageType::PixelType PixelType
Superclass::InstanceIdentifier InstanceIdentifier
MeasurementPixelTraitsType::MeasurementVectorType MeasurementVectorType
Iterator(const ImageIteratorType &iter, InstanceIdentifier iid)
MeasurementVectorType m_MeasurementVectorCache
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
Iterator & operator=(const Iterator &iter)
ConstIterator & operator=(const ConstIterator &iter)
ConstIterator(const ConstIterator &iter)
ConstIterator Begin() const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
virtual MeasurementVectorSizeType GetMeasurementVectorSize() const
virtual ~ImageToListSampleAdaptor()
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
bool operator==(const ConstIterator &it)
ListSample< typename MeasurementVectorPixelTraits< typename TImage::PixelType >::MeasurementVectorType > Superclass
const TImage * GetImage() const
ImageType::IndexType IndexType
This class is the native implementation of the a Sample with an STL container.
ImageConstIteratorType m_Iter
virtual MeasurementVectorSizeType GetMeasurementVectorSize() const
Control indentation during Print() invocation.
Iterator(const Iterator &iter)
void SetImage(const TImage *image)
ConstIterator & operator++()
This class provides ListSample interface to ITK Image.
PixelType Get(void) const
const MeasurementVectorType & GetMeasurementVector() const
TPixelType MeasurementVectorType
PixelTraits< typename TImage::PixelType > PixelTraitsType
void operator=(const Self &)
ConstIterator(const ImageToListSampleAdaptor *adaptor)
Base class for all data objects in ITK.
MeasurementVectorPixelTraits< PixelType > MeasurementPixelTraitsType
Superclass::InstanceIdentifier InstanceIdentifier
A multi-dimensional iterator templated over image type that walks a region of pixels.
ConstIterator(const ImageConstIteratorType &iter, InstanceIdentifier iid)
ImageToListSampleAdaptor Self
ImageType::PixelContainerConstPointer PixelContainerConstPointer