#include <itkImageToNeighborhoodSampleAdaptor.h>
This class provides ListSample interface to ITK Image.
After calling SetImage( const Image * ) method to plug in the image object, users can use Sample interfaces to access Image neighborhoods. The resulting data are a list of measurement vectors where each measurement vector has one element, an itkConstNeighborhoodIterator.
This class handles images with scalar, fixed array or variable length vector pixel types.
Definition at line 55 of file itkImageToNeighborhoodSampleAdaptor.h.
Classes | |
class | ConstIterator |
class | Iterator |
Public Member Functions | |
virtual::itk::LightObject::Pointer | CreateAnother () const |
AbsoluteFrequencyType | GetFrequency (InstanceIdentifier id) const override |
const TImage * | GetImage () const |
const MeasurementVectorType & | GetMeasurementVector (InstanceIdentifier id) const override |
const char * | GetNameOfClass () const override |
NeighborhoodRadiusType | GetRadius () const |
RegionType | GetRegion () const |
TotalAbsoluteFrequencyType | GetTotalFrequency () const override |
virtual bool | GetUseImageRegion () const |
void | SetImage (const TImage *image) |
void | SetRadius (const NeighborhoodRadiusType &radius) |
void | SetRegion (const RegionType ®ion) |
void | SetUseImageRegion (const bool flag) |
InstanceIdentifier | Size () const override |
virtual void | UseImageRegionOff () |
virtual void | UseImageRegionOn () |
Iterator | Begin () |
Iterator | End () |
ConstIterator | Begin () const |
ConstIterator | End () const |
![]() | |
Iterator | Begin () |
Iterator | Begin () |
ConstIterator | Begin () const |
ConstIterator | Begin () const |
void | Clear () |
void | Clear () |
virtual::itk::LightObject::Pointer | CreateAnother () const |
virtual::itk::LightObject::Pointer | CreateAnother () const |
Iterator | End () |
Iterator | End () |
ConstIterator | End () const |
ConstIterator | End () const |
AbsoluteFrequencyType | GetFrequency (InstanceIdentifier instanceId) const override |
AbsoluteFrequencyType | GetFrequency (InstanceIdentifier instanceId) const override |
const MeasurementVectorType & | GetMeasurementVector (InstanceIdentifier instanceId) const override |
const MeasurementVectorType & | GetMeasurementVector (InstanceIdentifier instanceId) const override |
const char * | GetNameOfClass () const override |
const char * | GetNameOfClass () const override |
TotalAbsoluteFrequencyType | GetTotalFrequency () const override |
TotalAbsoluteFrequencyType | GetTotalFrequency () const override |
void | Graft (const DataObject *thatObject) override |
void | Graft (const DataObject *thatObject) override |
void | PushBack (const MeasurementVectorType &mv) |
void | PushBack (const MeasurementVectorType &mv) |
void | Resize (InstanceIdentifier newsize) |
void | Resize (InstanceIdentifier newsize) |
void | SetMeasurement (InstanceIdentifier instanceId, unsigned int dim, const MeasurementType &value) |
void | SetMeasurement (InstanceIdentifier instanceId, unsigned int dim, const MeasurementType &value) |
void | SetMeasurementVector (InstanceIdentifier instanceId, const MeasurementVectorType &mv) |
void | SetMeasurementVector (InstanceIdentifier instanceId, const MeasurementVectorType &mv) |
InstanceIdentifier | Size () const override |
InstanceIdentifier | Size () const override |
![]() | |
virtual MeasurementVectorSizeType | GetMeasurementVectorSize () const |
const char * | GetNameOfClass () const override |
void | Graft (const DataObject *thatObject) override |
virtual void | SetMeasurementVectorSize (MeasurementVectorSizeType s) |
![]() | |
virtual void | CopyInformation (const DataObject *) |
virtual void | DataHasBeenGenerated () |
void | DisconnectPipeline () |
bool | GetDataReleased () const |
virtual const bool & | GetReleaseDataFlag () const |
SmartPointer< ProcessObject > | GetSource () const |
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
const DataObjectIdentifierType & | GetSourceOutputName () const |
virtual ModifiedTimeType | GetUpdateMTime () const |
virtual void | Initialize () |
virtual void | PrepareForNewData () |
virtual void | PropagateRequestedRegion () |
void | ReleaseData () |
virtual void | ReleaseDataFlagOff () |
virtual void | ReleaseDataFlagOn () |
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
virtual void | ResetPipeline () |
void | SetReleaseDataFlag (bool flag) |
virtual void | SetRequestedRegion (const DataObject *) |
virtual void | SetRequestedRegionToLargestPossibleRegion () |
bool | ShouldIReleaseData () const |
virtual void | Update () |
virtual void | UpdateOutputData () |
virtual void | UpdateOutputInformation () |
void | UpdateSource () const |
virtual bool | VerifyRequestedRegion () |
void | SetPipelineMTime (ModifiedTimeType time) |
virtual const ModifiedTimeType & | GetPipelineMTime () const |
virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
virtual const RealTimeStamp & | GetRealTimeStamp () const |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static Pointer | New () |
static Pointer | New () |
![]() | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static Pointer | New () |
static void | SetGlobalReleaseDataFlag (bool val) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
ImageToNeighborhoodSampleAdaptor () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~ImageToNeighborhoodSampleAdaptor () override=default | |
![]() | |
ListSample ()=default | |
ListSample ()=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~ListSample () override=default | |
~ListSample () override=default | |
![]() | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
Sample () | |
~Sample () override=default | |
![]() | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () override | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
![]() | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
ImageConstPointer | m_Image {} |
InstanceIdentifier | m_InstanceIdentifierInternal {} |
MeasurementVectorType | m_MeasurementVectorInternal {} |
IndexType | m_NeighborIndexInternal {} |
OffsetTableType | m_OffsetTable {} |
NeighborhoodRadiusType | m_Radius {} |
RegionType | m_Region {} |
bool | m_UseImageRegion { true } |
Additional Inherited Members | |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::ConstPointer = SmartPointer<const Self> |
Definition at line 67 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::ImageConstPointer = typename ImageType::ConstPointer |
Definition at line 78 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::ImageIteratorType = ImageRegionIteratorWithIndex<TImage> |
Definition at line 87 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::ImagePointer = typename ImageType::Pointer |
Definition at line 77 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::ImageType = TImage |
Image type alias
Definition at line 76 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::IndexType = typename ImageType::IndexType |
Definition at line 79 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::MeasurementType = ValueType |
Definition at line 101 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::MeasurementVectorType = typename std::vector<ConstNeighborhoodIterator<TImage, TBoundaryCondition>> |
Superclass type alias for Measurement vector, measurement, Instance Identifier, frequency, size, size element value
Definition at line 99 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::NeighborhoodIndexType = typename NeighborhoodIteratorType::IndexType |
Definition at line 94 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::NeighborhoodIteratorType = ConstNeighborhoodIterator<TImage, TBoundaryCondition> |
Neighborhood Iterator type alias support
Definition at line 90 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::NeighborhoodRadiusType = typename NeighborhoodIteratorType::RadiusType |
Definition at line 93 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::NeighborhoodSizeType = typename NeighborhoodIteratorType::SizeType |
Definition at line 95 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::NeighborhoodType = typename NeighborhoodIteratorType::NeighborhoodType |
Definition at line 92 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::NonConstNeighborhoodIteratorType = NeighborhoodIterator<TImage, TBoundaryCondition> |
Definition at line 91 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::OffsetTableType = typename RegionType::OffsetTableType |
Definition at line 85 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::OffsetType = typename ImageType::OffsetType |
Definition at line 80 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::OffsetValueType = typename ImageType::OffsetValueType |
Definition at line 81 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::PixelContainerConstPointer = typename ImageType::PixelContainerConstPointer |
Definition at line 83 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::PixelType = typename ImageType::PixelType |
Definition at line 82 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::Pointer = SmartPointer<Self> |
Definition at line 66 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::RegionType = typename ImageType::RegionType |
Definition at line 84 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::Self = ImageToNeighborhoodSampleAdaptor |
Standard class type aliases
Definition at line 62 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::SizeType = typename ImageType::SizeType |
Definition at line 86 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::Superclass = ListSample<std::vector<ConstNeighborhoodIterator<TImage, TBoundaryCondition>>> |
Definition at line 64 of file itkImageToNeighborhoodSampleAdaptor.h.
using itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::ValueType = typename MeasurementVectorType::value_type |
Definition at line 100 of file itkImageToNeighborhoodSampleAdaptor.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
inline |
returns an iterator that points to the beginning of the container
Definition at line 275 of file itkImageToNeighborhoodSampleAdaptor.h.
References itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GoToBegin(), m_Image, m_Radius, and m_Region.
Referenced by itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::ConstIterator::ConstIterator().
|
inline |
returns an iterator that points to the beginning of the container
Definition at line 298 of file itkImageToNeighborhoodSampleAdaptor.h.
References itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GoToBegin(), m_Image, m_Radius, and m_Region.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightObject.
|
inline |
returns an iterator that points to the end of the container
Definition at line 286 of file itkImageToNeighborhoodSampleAdaptor.h.
References itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GoToEnd(), m_Image, m_Radius, and m_Region.
|
inline |
returns an iterator that points to the end of the container
Definition at line 309 of file itkImageToNeighborhoodSampleAdaptor.h.
References itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GoToEnd(), m_Image, m_Radius, and m_Region.
|
overridevirtual |
method to return frequency for a specified id
Implements itk::Statistics::Sample< TMeasurementVector >.
const TImage * itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::GetImage | ( | ) | const |
Method to get the image
|
overridevirtual |
method to return measurement vector for a specified id
Implements itk::Statistics::Sample< TMeasurementVector >.
|
overridevirtual |
Reimplemented from itk::DataObject.
References ImageToNeighborhoodSampleAdaptor().
NeighborhoodRadiusType itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::GetRadius | ( | ) | const |
Method to get the radius
RegionType itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::GetRegion | ( | ) | const |
Method to get the region
|
overridevirtual |
method to return the total frequency
Implements itk::Statistics::Sample< TMeasurementVector >.
|
virtual |
Method to get UseImageRegion flag
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::DataObject.
void itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::SetImage | ( | const TImage * | image | ) |
Method to set the image
void itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::SetRadius | ( | const NeighborhoodRadiusType & | radius | ) |
Method to set the radius
void itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::SetRegion | ( | const RegionType & | region | ) |
Method to set the region
void itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::SetUseImageRegion | ( | const bool | flag | ) |
|
overridevirtual |
returns the number of measurement vectors in this container
Implements itk::Statistics::Sample< TMeasurementVector >.
|
virtual |
|
virtual |
Convenience methods to turn on/off the UseImageRegion flag
|
private |
|
mutableprivate |
Definition at line 327 of file itkImageToNeighborhoodSampleAdaptor.h.
|
mutableprivate |
Definition at line 326 of file itkImageToNeighborhoodSampleAdaptor.h.
|
mutableprivate |
Definition at line 328 of file itkImageToNeighborhoodSampleAdaptor.h.
|
private |
Definition at line 332 of file itkImageToNeighborhoodSampleAdaptor.h.
|
private |
|
private |
|
private |
Definition at line 331 of file itkImageToNeighborhoodSampleAdaptor.h.