ITK  4.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor > Class Template Reference

remove the objects according to the value of their attribute More...

#include <itkAttributeSelectionLabelMapFilter.h>

Inheritance diagram for itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >:
Collaboration diagram for itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >:

List of all members.

Public Types

typedef TAttributeAccessor AttributeAccessorType
typedef std::set
< AttributeValueType
AttributeSetType
typedef
AttributeAccessorType::AttributeValueType 
AttributeValueType
typedef SmartPointer< const SelfConstPointer
typedef ImageType::ConstPointer ImageConstPointer
typedef ImageType::Pointer ImagePointer
typedef TImage ImageType
typedef ImageType::IndexType IndexType
typedef ImageType::LabelObjectType LabelObjectType
typedef ImageType::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef
AttributeSelectionLabelMapFilter 
Self
typedef InPlaceLabelMapFilter
< TImage > 
Superclass

Public Member Functions

void AddAttribute (const AttributeValueType &attr)
void ClearAttributeSet ()
virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
const AttributeSetTypeGetAttributeSet () const
void SetAttributeSet (const AttributeSetType &set)
virtual bool GetExclude () const
virtual void SetExclude (bool _arg)
virtual void ExcludeOn ()
virtual void ExcludeOff ()
void SetAttribute (const AttributeValueType &attr)

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int ImageDimension = TImage::ImageDimension

Protected Member Functions

 AttributeSelectionLabelMapFilter ()
void GenerateData ()
void PrintSelf (std::ostream &os, Indent indent) const
 ~AttributeSelectionLabelMapFilter ()

Private Member Functions

 AttributeSelectionLabelMapFilter (const Self &)
void operator= (const Self &)

Private Attributes

AttributeSetType m_AttributeSet
bool m_Exclude

Detailed Description

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
class itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >

remove the objects according to the value of their attribute

AttributeSelectionLabelMapFilter removes the objects in a label collection image with an attribute value inside or outside a set of attribute values passed by the user. The attribute is provide by an attribute accessor given in template parameter. Contrary to the other filters made to remove some object of a LabelMap, no ordering relation for the attribute is needed in that filter.

Author:
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.

This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176

See also:
AttributeLabelObject

Definition at line 49 of file itkAttributeSelectionLabelMapFilter.h.


Member Typedef Documentation

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef TAttributeAccessor itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::AttributeAccessorType
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef std::set<AttributeValueType> itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::AttributeSetType
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef AttributeAccessorType::AttributeValueType itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::AttributeValueType
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef SmartPointer<const Self> itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::ConstPointer
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef ImageType::ConstPointer itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::ImageConstPointer
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef ImageType::Pointer itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::ImagePointer
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef TImage itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::ImageType

Some convenient typedefs.

Reimplemented in itk::LabelSelectionLabelMapFilter< TImage >.

Definition at line 60 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef ImageType::IndexType itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::IndexType
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef ImageType::LabelObjectType itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::LabelObjectType

Reimplemented from itk::InPlaceLabelMapFilter< TImage >.

Definition at line 65 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef ImageType::PixelType itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::PixelType
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef SmartPointer<Self> itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::Pointer
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef AttributeSelectionLabelMapFilter itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::Self

Standard class typedefs.

Reimplemented from itk::InPlaceLabelMapFilter< TImage >.

Reimplemented in itk::LabelSelectionLabelMapFilter< TImage >.

Definition at line 54 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
typedef InPlaceLabelMapFilter<TImage> itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::Superclass

Constructor & Destructor Documentation

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::AttributeSelectionLabelMapFilter ( ) [protected]
template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::~AttributeSelectionLabelMapFilter ( ) [inline, protected]

Definition at line 147 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::AttributeSelectionLabelMapFilter ( const Self ) [private]

Member Function Documentation

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::AddAttribute ( const AttributeValueType attr) [inline]

Definition at line 135 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::ClearAttributeSet ( ) [inline]

Definition at line 126 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
virtual::itk::LightObject::Pointer itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::CreateAnother ( void  ) const [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::InPlaceLabelMapFilter< TImage >.

Reimplemented in itk::LabelSelectionLabelMapFilter< TImage >.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
virtual void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::ExcludeOff ( ) [virtual]

Set/Get whether the objects with the specified attribute values should be kept or excluded.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
virtual void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::ExcludeOn ( ) [virtual]

Set/Get whether the objects with the specified attribute values should be kept or excluded.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::GenerateData ( void  ) [protected, virtual]

A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.

See also:
ThreadedGenerateData()

Reimplemented from itk::ImageSource< TImage >.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
const AttributeSetType& itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::GetAttributeSet ( ) const [inline]

Begin concept checking End concept checking Set/Get the threshold used to keep or remove the objects.

Definition at line 98 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
virtual bool itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::GetExclude ( ) const [virtual]

Set/Get whether the objects with the specified attribute values should be kept or excluded.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
virtual const char* itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::GetNameOfClass ( ) const [virtual]

Runtime information support.

Reimplemented from itk::InPlaceLabelMapFilter< TImage >.

Reimplemented in itk::LabelSelectionLabelMapFilter< TImage >.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
static Pointer itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::New ( ) [static]

Standard New method.

Reimplemented from itk::InPlaceLabelMapFilter< TImage >.

Reimplemented in itk::LabelSelectionLabelMapFilter< TImage >.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::operator= ( const Self ) [private]

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

Reimplemented from itk::InPlaceLabelMapFilter< TImage >.

Reimplemented in itk::LabelSelectionLabelMapFilter< TImage >.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

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::InPlaceLabelMapFilter< TImage >.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::SetAttribute ( const AttributeValueType attr) [inline]

Clear the attribute set, and add the attribute passed in parameter

Definition at line 119 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::SetAttributeSet ( const AttributeSetType set) [inline]

Begin concept checking End concept checking Set/Get the threshold used to keep or remove the objects.

Definition at line 102 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
virtual void itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::SetExclude ( bool  _arg) [virtual]

Set/Get whether the objects with the specified attribute values should be kept or excluded.


Member Data Documentation

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
const unsigned int itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::ImageDimension = TImage::ImageDimension [static]

ImageDimension constants

Reimplemented in itk::LabelSelectionLabelMapFilter< TImage >.

Definition at line 74 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
AttributeSetType itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::m_AttributeSet [private]

Definition at line 157 of file itkAttributeSelectionLabelMapFilter.h.

template<class TImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >>
bool itk::AttributeSelectionLabelMapFilter< TImage, TAttributeAccessor >::m_Exclude [private]

Definition at line 158 of file itkAttributeSelectionLabelMapFilter.h.


The documentation for this class was generated from the following file: