|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkImageToNeighborhoodSampleAdaptor_h
19 #define itkImageToNeighborhoodSampleAdaptor_h
54 template <
typename TImage,
typename TBoundaryCondition>
56 :
public ListSample<std::vector<ConstNeighborhoodIterator<TImage, TBoundaryCondition>>>
100 using ValueType =
typename MeasurementVectorType::value_type;
110 SetImage(
const TImage * image);
133 SetUseImageRegion(
const bool & flag);
136 itkGetConstMacro(UseImageRegion,
bool);
139 itkBooleanMacro(UseImageRegion);
144 Size()
const override;
156 GetTotalFrequency()
const override;
195 return this->m_MeasurementVectorCache;
201 return m_InstanceIdentifier;
207 ++(m_MeasurementVectorCache[0]);
208 ++m_InstanceIdentifier;
228 this->m_MeasurementVectorCache.clear();
229 this->m_MeasurementVectorCache.push_back(iter);
230 m_InstanceIdentifier = iid;
266 this->ConstIterator::operator=(iter);
294 Iterator iter(nIterator, m_Region.GetNumberOfPixels());
326 PrintSelf(std::ostream & os,
Indent indent)
const override;
335 bool m_UseImageRegion{
true };
342 template <
typename TImage,
typename TBoundaryCondition>
348 #ifndef ITK_MANUAL_INSTANTIATION
349 # include "itkImageToNeighborhoodSampleAdaptor.hxx"
typename ImageType::OffsetType OffsetType
ConstIterator & operator=(const ConstIterator &iter)
Iterator & operator=(const Iterator &iter)
typename Superclass::RadiusType RadiusType
typename ImageType::PixelType PixelType
Represent a n-dimensional size (bounds) of a n-dimensional image.
ConstIterator End() const
typename Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
bool operator==(const ConstIterator &it) const
ConstIterator(const ConstIterator &iter)
typename MeasurementVectorType::value_type ValueType
typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
Iterator(const Iterator &iter)
InstanceIdentifier m_InstanceIdentifierInternal
typename NeighborhoodIteratorType::NeighborhoodType NeighborhoodType
typename ImageType::SizeType SizeType
typename ImageType::PixelContainerConstPointer PixelContainerConstPointer
typename Superclass::InstanceIdentifier InstanceIdentifier
A light-weight container object for storing an N-dimensional neighborhood of values.
ImageBaseType::SizeType SizeType
typename ImageType::Pointer ImagePointer
This class is the native implementation of the a Sample with an STL container.
AbsoluteFrequencyType GetFrequency() const
typename NeighborhoodIteratorType::RadiusType NeighborhoodRadiusType
Control indentation during Print() invocation.
MeasurementVectorType m_MeasurementVectorInternal
typename NeighborhoodIteratorType::IndexType NeighborhoodIndexType
typename Superclass::InstanceIdentifier InstanceIdentifier
ImageBaseType::IndexType IndexType
This class provides ListSample interface to ITK Image.
typename RegionType::OffsetTableType OffsetTableType
ConstIterator(const ImageToNeighborhoodSampleAdaptor *adaptor)
typename Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
NeighborhoodRadiusType m_Radius
ValueType MeasurementType
typename std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > MeasurementVectorType
ImageBaseType::RegionType RegionType
InstanceIdentifier m_InstanceIdentifier
bool operator!=(const ConstIterator &it) const
InstanceIdentifier GetInstanceIdentifier() const
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
ImageConstPointer m_Image
MeasurementVectorType m_MeasurementVectorCache
ConstIterator & operator++()
typename ImageType::IndexType IndexType
const MeasurementVectorType & GetMeasurementVector() const
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
typename NeighborhoodIteratorType::SizeType NeighborhoodSizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
signed long OffsetValueType
typename ImageType::OffsetValueType OffsetValueType
Base class for most ITK classes.
typename ImageType::RegionType RegionType
ConstIterator(NeighborhoodIteratorType iter, InstanceIdentifier iid)
ITK_ITERATOR_VIRTUAL void GoToEnd() ITK_ITERATOR_FINAL
typename ImageType::ConstPointer ImageConstPointer
ConstIterator Begin() const
Base class for all data objects in ITK.
IndexType m_NeighborIndexInternal
OffsetTableType m_OffsetTable
ITK_ITERATOR_VIRTUAL void GoToBegin() ITK_ITERATOR_FINAL
Iterator(NeighborhoodIteratorType iter, InstanceIdentifier iid)