ITK
6.0.0
Insight Toolkit
|
#include <itkFastMarchingImageToNodePairContainerAdaptor.h>
Convenient adaptor class which converts Image into FastMarching::NodePairContainerType used for initializing the FastMarching.
One provides images by means of SetAliveImage, SetTrialImage, SetForbiddenImage and get corresponding containers by means of GetAlivePoints, GetTrialPoints, GetForbiddenPoints.
One can globally set the associated value for all FastMarchingTraitsBase::Alive points by means of SetAliveValue; and for all FastMarchingTraitsBase::Trial points by means of SetTrialValue.
To restrict the evolution of the front in certain area, one can use SetForbiddenImage and SetIsForbiddenImageBinaryMask depending on the input image.
Definition at line 50 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | ImageConstPointer = typename ImageType::ConstPointer |
using | ImagePixelType = typename ImageType::PixelType |
using | ImagePointer = typename ImageType::Pointer |
using | ImageType = TImage |
using | LabelType = typename Traits::LabelType |
using | NodePairContainerPointer = typename Traits::NodePairContainerPointer |
using | NodePairContainerType = typename Traits::NodePairContainerType |
using | NodePairType = typename Traits::NodePairType |
using | OutputPixelType = typename Traits::OutputPixelType |
using | Pointer = SmartPointer< Self > |
using | Self = FastMarchingImageToNodePairContainerAdaptor |
using | Superclass = Object |
using | Traits = FastMarchingTraits< TInput, TOutput > |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Public Member Functions | |
virtual const ImageType * | GetAliveImage () const |
NodePairContainerType * | GetAlivePoints () |
virtual OutputPixelType | GetAliveValue () const |
virtual const ImageType * | GetForbiddenImage () const |
NodePairContainerType * | GetForbiddenPoints () |
virtual bool | GetIsForbiddenImageBinaryMask () const |
const char * | GetNameOfClass () const override |
virtual const ImageType * | GetTrialImage () const |
NodePairContainerType * | GetTrialPoints () |
virtual OutputPixelType | GetTrialValue () const |
virtual void | IsForbiddenImageBinaryMaskOn () |
void | SetAliveImage (const ImageType *iImage) |
virtual void | SetAliveValue (OutputPixelType _arg) |
void | SetForbiddenImage (const ImageType *iImage) |
virtual void | SetIsForbiddenImageBinaryMask (bool _arg) |
void | SetTrialImage (const ImageType *iImage) |
virtual void | SetTrialValue (OutputPixelType _arg) |
void | Update () |
Public Member Functions inherited from itk::Object | |
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 |
const char * | GetNameOfClass () const override |
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 |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual const char * | GetNameOfClass () const |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Register () const |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const noexcept |
Static Public Member Functions | |
static Pointer | New () |
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 () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = Traits::ImageDimension |
Protected Member Functions | |
FastMarchingImageToNodePairContainerAdaptor () | |
virtual void | GenerateData () |
void | SetPointsFromImage (const ImageType *image, const LabelType &iLabel, const OutputPixelType &iValue) |
~FastMarchingImageToNodePairContainerAdaptor () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
ImageConstPointer | m_AliveImage {} |
NodePairContainerPointer | m_AlivePoints {} |
OutputPixelType | m_AliveValue {} |
ImageConstPointer | m_ForbiddenImage {} |
NodePairContainerPointer | m_ForbiddenPoints {} |
bool | m_IsForbiddenImageBinaryMask { false } |
ImageConstPointer | m_TrialImage {} |
NodePairContainerPointer | m_TrialPoints {} |
OutputPixelType | m_TrialValue {} |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 58 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::ImageConstPointer = typename ImageType::ConstPointer |
Definition at line 76 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::ImagePixelType = typename ImageType::PixelType |
Definition at line 77 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::ImagePointer = typename ImageType::Pointer |
Definition at line 75 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::ImageType = TImage |
Definition at line 74 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::LabelType = typename Traits::LabelType |
Definition at line 71 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::NodePairContainerPointer = typename Traits::NodePairContainerPointer |
Definition at line 70 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::NodePairContainerType = typename Traits::NodePairContainerType |
Definition at line 69 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::NodePairType = typename Traits::NodePairType |
Definition at line 68 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::OutputPixelType = typename Traits::OutputPixelType |
Definition at line 72 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::Pointer = SmartPointer<Self> |
Definition at line 57 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::Self = FastMarchingImageToNodePairContainerAdaptor |
Definition at line 55 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::Superclass = Object |
Definition at line 56 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
using itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::Traits = FastMarchingTraits<TInput, TOutput> |
Definition at line 67 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Constructor.
|
overrideprotecteddefault |
Destructor.
|
protectedvirtual |
|
virtual |
NodePairContainerType * itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::GetAlivePoints | ( | ) |
Get resulting Alive Points container.
|
virtual |
|
virtual |
NodePairContainerType * itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::GetForbiddenPoints | ( | ) |
Get resulting Forbidden Points container.
|
virtual |
|
overridevirtual |
Reimplemented from itk::Object.
|
virtual |
NodePairContainerType * itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::GetTrialPoints | ( | ) |
Get resulting Trial Points container.
|
virtual |
|
virtual |
|
static |
Method for creation through the object factory.
void itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::SetAliveImage | ( | const ImageType * | iImage | ) |
Set one Alive Image.
|
virtual |
void itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::SetForbiddenImage | ( | const ImageType * | iImage | ) |
Set one Forbidden Image. There are two possible behaviors here depending on m_IsForbiddenImageBinaryMask:
true
, then the input image is a binary mask; thus null values are considered as FastMarchingTraitsBase::Forbidden pointsfalse
) non null values represents FastMarchingTraitsBase::Forbidden points
|
virtual |
|
protected |
void itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::SetTrialImage | ( | const ImageType * | iImage | ) |
Set one Trial Image.
|
virtual |
void itk::FastMarchingImageToNodePairContainerAdaptor< TInput, TOutput, TImage >::Update | ( | ) |
Perform the conversion.
|
staticconstexpr |
Definition at line 79 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 142 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 146 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 150 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 144 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 148 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 153 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 143 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 147 of file itkFastMarchingImageToNodePairContainerAdaptor.h.
|
protected |
Definition at line 151 of file itkFastMarchingImageToNodePairContainerAdaptor.h.