template<unsigned int TDimension = 3, typename TPixel = unsigned char>
class itk::ImageMaskSpatialObject< TDimension, TPixel >
Implementation of an image mask as spatial object.
This class derives from the ImageSpatialObject and overloads the IsInsideInObjectSpace() method. One of the common uses of this class is to serve as Mask for the Image Registration Metrics.
- Note
- The bounding box of an image mask is defined in such a way that any point whose nearest pixel has a non-zero value (or matches the specified mask value) is inside the bounding box. When all the pixels of an image are zero, the bounding box of the image mask is empty, and its bounds are all zero.
- See also
- ImageSpatialObject SpatialObject CompositeSpatialObject
- Examples
- Examples/RegistrationITKv4/ImageRegistration12.cxx, Examples/SpatialObjects/BoundingBoxFromImageMaskSpatialObject.cxx, and Examples/SpatialObjects/ImageMaskSpatialObject.cxx.
Definition at line 47 of file itkImageMaskSpatialObject.h.
|
using | ConstPointer = SmartPointer< const Self > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = ImageMaskSpatialObject< TDimension, TPixel > |
|
using | SliceIteratorType = itk::ImageSliceConstIteratorWithIndex< ImageType > |
|
using | Superclass = ImageSpatialObject< TDimension, TPixel > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | ContinuousIndexType = ContinuousIndex< double, TDimension > |
|
using | ImagePointer = typename ImageType::ConstPointer |
|
using | ImageType = Image< PixelType, TDimension > |
|
using | IndexType = typename ImageType::IndexType |
|
using | InterpolatorType = InterpolateImageFunction< ImageType > |
|
using | NNInterpolatorType = NearestNeighborInterpolateImageFunction< ImageType > |
|
using | PixelType = TPixel |
|
using | Pointer = SmartPointer< Self > |
|
using | ScalarType = double |
|
using | Self = ImageSpatialObject< TDimension, TPixel > |
|
using | Superclass = SpatialObject< TDimension > |
|
using | BoundingBoxPointer = typename BoundingBoxType::Pointer |
|
using | BoundingBoxType = BoundingBox< IdentifierType, VDimension, ScalarType, VectorContainerType > |
|
using | ChildrenConstListPointer = ChildrenConstListType * |
|
using | ChildrenConstListType = std::list< ConstPointer > |
|
using | ChildrenListPointer = ChildrenListType * |
|
using | ChildrenListType = std::list< Pointer > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | CovariantVectorType = CovariantVector< ScalarType, VDimension > |
|
using | DerivativeOffsetType = Vector< double, VDimension > |
|
using | DerivativeVectorPointer = DerivativeVectorType * |
|
using | DerivativeVectorType = CovariantVector< ScalarType, VDimension > |
|
using | IndexType = Index< VDimension > |
|
using | InputType = Point< ScalarType, VDimension > |
|
using | ObjectConstListType = std::list< ConstPointer > |
|
using | ObjectDimensionType = unsigned int |
|
using | ObjectListType = std::list< Pointer > |
|
using | Pointer = SmartPointer< Self > |
|
using | PointPointer = PointType * |
|
using | PointType = Point< ScalarType, VDimension > |
|
using | PropertyType = SpatialObjectProperty |
|
using | RegionType = ImageRegion< VDimension > |
|
using | ScalarType = double |
|
using | Self = SpatialObject< VDimension > |
|
using | SizeType = Size< VDimension > |
|
using | Superclass = DataObject |
|
using | TransformConstPointer = const TransformType * |
|
using | TransformPointer = typename TransformType::Pointer |
|
using | TransformType = AffineTransform< ScalarType, VDimension > |
|
using | VectorContainerType = VectorContainer< IdentifierType, PointType > |
|
using | VectorPointer = VectorType * |
|
using | VectorType = Vector< ScalarType, VDimension > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | DataObjectIdentifierType = std::string |
|
using | DataObjectPointerArraySizeType = std::vector< Pointer >::size_type |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = DataObject |
|
using | Superclass = Object |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = Object |
|
using | Superclass = LightObject |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = LightObject |
|
|
RegionType | ComputeMyBoundingBoxInIndexSpace () const |
|
const char * | GetNameOfClass () const override |
|
virtual const bool & | GetUseMaskValue () const |
|
bool | IsInsideInObjectSpace (const PointType &point) const override |
|
virtual void | SetUseMaskValue (bool _arg) |
|
virtual void | UseMaskValueOn () |
|
|
virtual void | SetMaskValue (PixelType _arg) |
|
virtual const PixelType & | GetMaskValue () const |
|
void | Clear () override |
|
const ImageType * | GetImage () const |
|
ModifiedTimeType | GetMTime () const override |
|
const char * | GetNameOfClass () const override |
|
bool | IsInsideInObjectSpace (const PointType &point) const override |
|
void | SetImage (const ImageType *image) |
|
void | Update () override |
|
bool | ValueAtInObjectSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const override |
|
virtual void | SetSliceNumber (IndexType _arg) |
|
void | SetSliceNumber (unsigned int dimension, int position) |
|
virtual IndexType | GetSliceNumber () const |
|
int | GetSliceNumber (unsigned int dimension) |
|
void | SetInterpolator (InterpolatorType *interpolator) |
|
virtual InterpolatorType * | GetInterpolator () const |
|
void | AddChild (Self *pointer) |
|
virtual void | AddChildrenToConstList (ChildrenConstListType *childrenList, unsigned int depth=0, const std::string &name="") const |
|
virtual void | AddChildrenToList (ChildrenListType *childrenList, unsigned int depth=0, const std::string &name="") const |
|
bool | CheckIdValidity () const |
|
virtual bool | ComputeFamilyBoundingBox (unsigned int depth=0, const std::string &name="") const |
|
void | ComputeObjectToParentTransform () |
|
void | CopyInformation (const DataObject *data) override |
|
virtual void | DerivativeAtInObjectSpace (const PointType &point, short unsigned int order, CovariantVectorType &value, unsigned int depth=0, const std::string &name="", const DerivativeOffsetType &offset=MakeFilled< DerivativeOffsetType >(1)) |
|
void | DerivativeAtInWorldSpace (const PointType &point, short unsigned int order, CovariantVectorType &value, unsigned int depth=0, const std::string &name="", const DerivativeOffsetType &offset=MakeFilled< DerivativeOffsetType >(1)) |
|
bool | Evaluate (const PointType &point) const |
|
void | FixIdValidity () |
|
bool | FixParentChildHierarchyUsingParentIds () |
|
virtual const RegionType & | GetBufferedRegion () const |
|
virtual ChildrenListType * | GetChildren (unsigned int depth=0, const std::string &name="") const |
|
virtual std::string | GetClassNameAndDimension () const |
|
virtual ChildrenConstListType * | GetConstChildren (unsigned int depth=0, const std::string &name="") const |
|
virtual const BoundingBoxType * | GetFamilyBoundingBoxInObjectSpace () const |
|
virtual const BoundingBoxType * | GetFamilyBoundingBoxInWorldSpace () const |
|
virtual const RegionType & | GetLargestPossibleRegion () const |
|
unsigned int | GetMaximumDepth () const |
|
ModifiedTimeType | GetMTime () const override |
|
virtual const BoundingBoxType * | GetMyBoundingBoxInObjectSpace () const |
|
virtual const BoundingBoxType * | GetMyBoundingBoxInWorldSpace () const |
|
ModifiedTimeType | GetMyMTime () const |
|
const char * | GetNameOfClass () const override |
|
int | GetNextAvailableId () const |
|
unsigned int | GetNumberOfChildren (unsigned int depth=0, const std::string &name="") const |
|
SpatialObject< VDimension > * | GetObjectById (int id) |
|
unsigned int | GetObjectDimension () const |
|
virtual Self * | GetParent () |
|
virtual const Self * | GetParent () const |
|
PropertyType & | GetProperty () |
|
const PropertyType & | GetProperty () const |
|
virtual const RegionType & | GetRequestedRegion () const |
|
virtual const std::string | GetTypeName () const |
|
virtual bool | HasParent () const |
|
virtual bool | IsEvaluableAtChildrenInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
|
virtual bool | IsEvaluableAtInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
|
bool | IsEvaluableAtInWorldSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
|
virtual bool | IsInsideChildrenInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
|
bool | IsInsideInObjectSpace (const PointType &point, unsigned int depth, const std::string &name="") const |
|
bool | IsInsideInWorldSpace (const PointType &point) const |
|
bool | IsInsideInWorldSpace (const PointType &point, unsigned int depth, const std::string &name="") const |
|
void | RemoveAllChildren (unsigned int depth=MaximumDepth) |
|
bool | RemoveChild (Self *pointer) |
|
bool | RequestedRegionIsOutsideOfTheBufferedRegion () override |
|
virtual void | SetBufferedRegion (const RegionType ®ion) |
|
void | SetChildren (ChildrenListType &children) |
|
virtual void | SetLargestPossibleRegion (const RegionType ®ion) |
|
void | SetParent (Self *parent) |
|
void | SetRequestedRegion (const DataObject *data) override |
|
virtual void | SetRequestedRegion (const RegionType ®ion) |
|
void | SetRequestedRegionToLargestPossibleRegion () override |
|
virtual void | SetTypeName (std::string _arg) |
|
void | Update () override |
|
void | UpdateOutputInformation () override |
|
virtual bool | ValueAtChildrenInObjectSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const |
|
bool | ValueAtInWorldSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const |
|
bool | VerifyRequestedRegion () override |
|
void | SetId (int id) |
|
virtual const int & | GetId () const |
|
void | SetProperty (const PropertyType &property) |
|
void | SetObjectToWorldTransform (const TransformType *transform) |
|
virtual TransformType * | GetModifiableObjectToWorldTransform () |
|
const TransformType * | GetObjectToWorldTransformInverse () const |
|
void | SetObjectToParentTransform (const TransformType *transform) |
|
virtual TransformType * | GetModifiableObjectToParentTransform () |
|
const TransformType * | GetObjectToParentTransformInverse () const |
|
virtual void | SetDefaultInsideValue (double _arg) |
|
virtual double | GetDefaultInsideValue () const |
|
virtual void | SetDefaultOutsideValue (double _arg) |
|
virtual double | GetDefaultOutsideValue () const |
|
virtual void | SetParentId (int _arg) |
|
virtual const int & | GetParentId () const |
|
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 | Graft (const DataObject *) |
|
virtual void | Initialize () |
|
virtual void | PrepareForNewData () |
|
virtual void | PropagateRequestedRegion () |
|
void | ReleaseData () |
|
virtual void | ReleaseDataFlagOn () |
|
virtual void | ResetPipeline () |
|
void | SetReleaseDataFlag (bool flag) |
|
bool | ShouldIReleaseData () const |
|
virtual void | UpdateOutputData () |
|
void | UpdateSource () const |
|
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 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 |
|