18#ifndef itkImageToNeighborhoodSampleAdaptor_h
19#define itkImageToNeighborhoodSampleAdaptor_h
54template <
typename TImage,
typename TBoundaryCondition>
56 :
public ListSample<std::vector<ConstNeighborhoodIterator<TImage, TBoundaryCondition>>>
100 using ValueType =
typename MeasurementVectorType::value_type;
136 itkGetConstMacro(UseImageRegion,
bool);
139 itkBooleanMacro(UseImageRegion);
338template <
typename TImage,
typename TBoundaryCondition>
344#ifndef ITK_MANUAL_INSTANTIATION
345# include "itkImageToNeighborhoodSampleAdaptor.hxx"
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
itk::Size< VDimension > RadiusType
Neighborhood< PixelType, Self::Dimension > NeighborhoodType
Index< Self::Dimension > IndexType
itk::Size< VDimension > SizeType
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
Control indentation during Print() invocation.
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
Implements transparent reference counting.
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ConstIterator)
ConstIterator(const ConstIterator &iter)
const MeasurementVectorType & GetMeasurementVector() const
InstanceIdentifier m_InstanceIdentifier
ConstIterator & operator=(const ConstIterator &iter)
bool operator==(const ConstIterator &it) const
AbsoluteFrequencyType GetFrequency() const
friend class ImageToNeighborhoodSampleAdaptor
ConstIterator(NeighborhoodIteratorType iter, InstanceIdentifier iid)
ConstIterator & operator++()
ConstIterator(const ImageToNeighborhoodSampleAdaptor *adaptor)
InstanceIdentifier GetInstanceIdentifier() const
MeasurementVectorType m_MeasurementVectorCache
Iterator & operator=(const Iterator &iter)
friend class ImageToNeighborhoodSampleAdaptor
ConstIterator & operator=(const ConstIterator &it)=delete
Iterator(const Self *adaptor)=delete
Iterator(NeighborhoodIteratorType iter, InstanceIdentifier iid)
Iterator(const Iterator &iter)
Iterator(const ConstIterator &it)=delete
InstanceIdentifier Size() const override
void SetImage(const TImage *image)
typename ImageType::PixelType PixelType
void SetUseImageRegion(const bool flag)
ImageRegionIteratorWithIndex< TImage > ImageIteratorType
typename std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > MeasurementVectorType
typename NeighborhoodIteratorType::SizeType NeighborhoodSizeType
RegionType GetRegion() const
ConstNeighborhoodIterator< TImage, TBoundaryCondition > NeighborhoodIteratorType
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const override
typename ImageType::PixelContainerConstPointer PixelContainerConstPointer
SmartPointer< const Self > ConstPointer
IndexType m_NeighborIndexInternal
typename ImageType::Pointer ImagePointer
typename ImageType::RegionType RegionType
InstanceIdentifier m_InstanceIdentifierInternal
void PrintSelf(std::ostream &os, Indent indent) const override
typename RegionType::OffsetTableType OffsetTableType
ImageToNeighborhoodSampleAdaptor()
NeighborhoodIterator< TImage, TBoundaryCondition > NonConstNeighborhoodIteratorType
ValueType MeasurementType
typename NeighborhoodIteratorType::NeighborhoodType NeighborhoodType
ConstIterator End() const
NeighborhoodRadiusType GetRadius() const
ImageToNeighborhoodSampleAdaptor Self
void SetRadius(const NeighborhoodRadiusType &radius)
MeasurementVectorType m_MeasurementVectorInternal
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const override
typename ImageType::ConstPointer ImageConstPointer
typename ImageType::OffsetValueType OffsetValueType
NeighborhoodRadiusType m_Radius
ImageConstPointer m_Image
SmartPointer< Self > Pointer
typename ImageType::IndexType IndexType
~ImageToNeighborhoodSampleAdaptor() override=default
typename NeighborhoodIteratorType::RadiusType NeighborhoodRadiusType
typename ImageType::OffsetType OffsetType
ConstIterator Begin() const
typename ImageType::SizeType SizeType
ListSample< std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > > Superclass
const TImage * GetImage() const
TotalAbsoluteFrequencyType GetTotalFrequency() const override
void SetRegion(const RegionType ®ion)
typename MeasurementVectorType::value_type ValueType
OffsetTableType m_OffsetTable
typename NeighborhoodIteratorType::IndexType NeighborhoodIndexType
unsigned int MeasurementVectorSizeType
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)