18 #ifndef __itkImageToNeighborhoodSampleAdaptor_h
19 #define __itkImageToNeighborhoodSampleAdaptor_h
34 namespace Statistics {
51 template <
typename TImage,
typename TBoundaryCondition >
53 public ListSample< std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > >
95 typedef typename std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > >
97 typedef typename MeasurementVectorType::value_type
ValueType;
126 itkGetConstMacro( UseImageRegion,
bool );
129 itkBooleanMacro( UseImageRegion );
155 *
this = adaptor->
Begin();
247 #if !(defined(_MSC_VER) && (_MSC_VER <= 1200))
326 template <
typename TImage,
typename TBoundaryCondition>
332 #ifndef ITK_MANUAL_INSTANTIATION
333 #include "itkImageToNeighborhoodSampleAdaptor.hxx"
ConstIterator(NeighborhoodIteratorType iter, InstanceIdentifier iid)
ImageType::PixelType PixelType
NeighborhoodRadiusType m_Radius
NeighborhoodIteratorType::NeighborhoodType NeighborhoodType
ConstNeighborhoodIterator< TImage, TBoundaryCondition > NeighborhoodIteratorType
Iterator(const Iterator &iter)
InstanceIdentifier m_InstanceIdentifier
ConstIterator(const ImageToNeighborhoodSampleAdaptor *adaptor)
ConstIterator & operator++()
bool operator==(const ConstIterator &it)
signed long OffsetValueType
TotalAbsoluteFrequencyType GetTotalFrequency() const
SmartPointer< Self > Pointer
void SetUseImageRegion(const bool &flag)
ImageType::PixelContainerConstPointer PixelContainerConstPointer
A light-weight container object for storing an N-dimensional neighborhood of values.
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
virtual ~ImageToNeighborhoodSampleAdaptor()
AbsoluteFrequencyType GetFrequency() const
std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > MeasurementVectorType
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
ImageType::OffsetValueType OffsetValueType
NeighborhoodIteratorType::IndexType NeighborhoodIndexType
SmartPointer< const Self > ConstPointer
InstanceIdentifier Size() const
Superclass::RadiusType RadiusType
ConstIterator & operator=(const ConstIterator &iter)
Iterator & operator=(const Iterator &iter)
ImageConstPointer m_Image
ImageRegionIteratorWithIndex< TImage > ImageIteratorType
void SetRadius(const NeighborhoodRadiusType &radius)
NeighborhoodIteratorType::SizeType NeighborhoodSizeType
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
void operator=(const Self &)
MeasurementVectorType m_MeasurementVectorCache
const TImage * GetImage() const
ImageType::OffsetType OffsetType
Superclass::SizeType SizeType
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
InstanceIdentifier GetInstanceIdentifier() const
NeighborhoodIteratorType::RadiusType NeighborhoodRadiusType
ConstIterator Begin() const
Superclass::InstanceIdentifier InstanceIdentifier
void SetRegion(const RegionType ®ion)
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
bool operator!=(const ConstIterator &it)
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const
ImageToNeighborhoodSampleAdaptor()
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
NeighborhoodRadiusType GetRadius() const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
RegionType::OffsetTableType OffsetTableType
virtual const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const
ImageType::SizeType SizeType
const MeasurementVectorType & GetMeasurementVector() const
ListSample< std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > > Superclass
ConstIterator(const ConstIterator &iter)
ImageType::IndexType IndexType
ImageType::Pointer ImagePointer
Superclass::InstanceIdentifier InstanceIdentifier
This class is the native implementation of the a Sample with an STL container.
void SetImage(const TImage *image)
Control indentation during Print() invocation.
MeasurementVectorType m_MeasurementVectorInternal
OffsetTableType m_OffsetTable
Iterator(NeighborhoodIteratorType iter, InstanceIdentifier iid)
RegionType GetRegion() const
ConstIterator End() const
ImageToNeighborhoodSampleAdaptor Self
MeasurementVectorType::value_type ValueType
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
ValueType MeasurementType
ImageType::RegionType RegionType
IndexType m_NeighborIndexInternal
ImageType::ConstPointer ImageConstPointer
This class provides ListSample interface to ITK Image.
NeighborhoodIterator< TImage, TBoundaryCondition > NonConstNeighborhoodIteratorType
InstanceIdentifier m_InstanceIdentifierInternal
Base class for all data objects in ITK.
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType