ITK
5.2.0
Insight Toolkit
|
#include <itkSample.h>
Public Member Functions | |
virtual AbsoluteFrequencyType | GetFrequency (InstanceIdentifier id) const =0 |
virtual const MeasurementVectorType & | GetMeasurementVector (InstanceIdentifier id) const =0 |
virtual MeasurementVectorSizeType | GetMeasurementVectorSize () const |
virtual const char * | GetNameOfClass () const |
virtual TotalAbsoluteFrequencyType | GetTotalFrequency () const =0 |
void | Graft (const DataObject *thatObject) override |
virtual void | SetMeasurementVectorSize (MeasurementVectorSizeType s) |
virtual InstanceIdentifier | Size () const =0 |
Public Member Functions inherited from itk::DataObject | |
void | DisconnectPipeline () |
bool | GetDataReleased () const |
virtual const bool & | GetReleaseDataFlag () const |
SmartPointer< ProcessObject > | GetSource () const |
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
const DataObjectIdentifierType & | GetSourceOutputName () const |
virtual void | Initialize () |
virtual void | PropagateRequestedRegion () |
void | ReleaseData () |
virtual void | ReleaseDataFlagOff () |
virtual void | ReleaseDataFlagOn () |
virtual void | ResetPipeline () |
void | SetReleaseDataFlag (bool flag) |
bool | ShouldIReleaseData () const |
virtual void | Update () |
virtual void | UpdateOutputData () |
virtual void | UpdateOutputInformation () |
void | SetPipelineMTime (ModifiedTimeType time) |
virtual const ModifiedTimeType & | GetPipelineMTime () const |
virtual ModifiedTimeType | GetUpdateMTime () const |
virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
virtual const RealTimeStamp & | GetRealTimeStamp () const |
virtual void | PrepareForNewData () |
virtual void | DataHasBeenGenerated () |
virtual void | SetRequestedRegionToLargestPossibleRegion () |
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
virtual bool | VerifyRequestedRegion () |
virtual void | CopyInformation (const DataObject *) |
virtual void | SetRequestedRegion (const DataObject *) |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) 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) |
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 |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
Sample () | |
~Sample () override=default | |
Protected Member Functions inherited from itk::DataObject | |
DataObject () | |
~DataObject () override | |
virtual void | PropagateResetPipeline () |
Protected Member Functions inherited from itk::Object | |
Object () | |
~Object () override | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
Protected Member Functions inherited from itk::LightObject | |
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 | |
MeasurementVectorSizeType | m_MeasurementVectorSize |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::DataObject | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static Pointer | New () |
static void | SetGlobalReleaseDataFlag (bool val) |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
A collection of measurements for statistical analysis.
Sample represents a set of measurements for statistical analysis. Sample is templated over a measurement vector. The measurement vector encapsulates the set of values associated with a single measurement. For instance, a measurement vector may contain an image intensity of a pixel and the gradient magnitude at that pixel.
Data within a sample can be accessed via an InstanceIdentifier. InstanceIdentifiers have different forms and meanings depending on the type of sample. For ListSamples, the InstanceIdentifier is an index into the corresponding list. In this case, the InstanceIndentifier corresponds to a particular measurement stored in the Sample. For Histograms, an InstanceIdentifier corresponds to a particular bin in the N-dimensional histogram. In other words, the InstanceIdentifier in a histogram does not correspond to a specific measurement used to build the histogram but to the "bin" in which a number of original measurements were "accumulated".
Recent API changes: The static const macro to get the length of a measurement vector, 'MeasurementVectorSize' has been removed to allow the length of a measurement vector to be specified at run time. Please use the function GetMeasurementVectorSize() instead.
Definition at line 62 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::AbsoluteFrequencyType = MeasurementVectorTraits::AbsoluteFrequencyType |
Frequency value type
Definition at line 84 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::ConstPointer = SmartPointer<const Self> |
Definition at line 71 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::InstanceIdentifier = typename MeasurementVectorTraits::InstanceIdentifier |
InstanceIdentifier type alias. This identifier is a unique sequential id for each measurement vector in a Sample subclass.
Definition at line 91 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::MeasurementType = typename MeasurementVectorTraitsTypes<MeasurementVectorType>::ValueType |
ValueType of a measurement (ValueType of a component of the MeasurementVector
Definition at line 81 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::MeasurementVectorSizeType = unsigned int |
Type of the length of each measurement vector
Definition at line 94 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::MeasurementVectorType = TMeasurementVector |
MeasurementVector type alias support
Definition at line 77 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::Pointer = SmartPointer<Self> |
Definition at line 70 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::Self = Sample |
Standard class type aliases
Definition at line 68 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::Superclass = DataObject |
Definition at line 69 of file itkSample.h.
using itk::Statistics::Sample< TMeasurementVector >::TotalAbsoluteFrequencyType = NumericTraits<AbsoluteFrequencyType>::AccumulateType |
Total frequency type
Definition at line 87 of file itkSample.h.
|
inlineprotected |
Definition at line 178 of file itkSample.h.
|
overrideprotecteddefault |
|
pure virtual |
Get the frequency of a measurement specified by instance identifier.
|
pure virtual |
Get the measurement associated with a particular InstanceIdentifier.
|
virtual |
Get method for the length of the measurement vector
Reimplemented in itk::Statistics::ImageToListSampleAdaptor< TImage >.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
|
pure virtual |
Get the total frequency of the sample.
Implemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
|
inlineoverridevirtual |
Method to graft another sample
Reimplemented from itk::DataObject.
Definition at line 166 of file itkSample.h.
|
inlineoverrideprotectedvirtual |
Who generated this data?
Reimplemented from itk::DataObject.
Definition at line 183 of file itkSample.h.
|
inlinevirtual |
Set method for the length of the measurement vector
Definition at line 116 of file itkSample.h.
Referenced by itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >::Graft().
|
pure virtual |
Get the size of the sample (number of measurements)
Implemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Referenced by itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >::SetMeasurementVectorSize().
|
private |
Definition at line 190 of file itkSample.h.
Referenced by itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >::PrintSelf(), itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >::Sample(), and itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >::SetMeasurementVectorSize().