ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkTwoOutputExampleImageFilter.h>
Example of a filter that produce two outputs.
TwoOutputExampleImageFilter sets image values to a user-specified "outside" value (by default, "black") if the image values are below, above, or between simple threshold values. The filter can produce two outputs, one the inverse of the other. (GetOutput() returns an image whose pixels satisfy the threshold values and are passed to the output unchanged (and those that don't are marked with the outside user-value); GetInverseOutput() returns an image in which pixels satisfying the threshold are marked "outside", and the other pixel values are passed through.)
The pixels must support the operators >= and <=.
Definition at line 44 of file itkTwoOutputExampleImageFilter.h.
typedef SmartPointer< const Self > itk::TwoOutputExampleImageFilter< TImage >::ConstPointer |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 52 of file itkTwoOutputExampleImageFilter.h.
typedef Superclass::InputImageConstPointer itk::TwoOutputExampleImageFilter< TImage >::InputImageConstPointer |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 79 of file itkTwoOutputExampleImageFilter.h.
typedef OutputImageType::PixelType itk::TwoOutputExampleImageFilter< TImage >::OutputImagePixelType |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 85 of file itkTwoOutputExampleImageFilter.h.
typedef OutputImageType::Pointer itk::TwoOutputExampleImageFilter< TImage >::OutputImagePointer |
Reimplemented from itk::ImageSource< TImage >.
Definition at line 83 of file itkTwoOutputExampleImageFilter.h.
typedef OutputImageType::RegionType itk::TwoOutputExampleImageFilter< TImage >::OutputImageRegionType |
Superclass typedefs.
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 84 of file itkTwoOutputExampleImageFilter.h.
typedef TImage itk::TwoOutputExampleImageFilter< TImage >::OutputImageType |
Some typedefs to handle the second output.
Reimplemented from itk::ImageSource< TImage >.
Definition at line 82 of file itkTwoOutputExampleImageFilter.h.
typedef TImage::PixelType itk::TwoOutputExampleImageFilter< TImage >::PixelType |
Typedef to describe the type of pixel.
Definition at line 55 of file itkTwoOutputExampleImageFilter.h.
typedef SmartPointer< Self > itk::TwoOutputExampleImageFilter< TImage >::Pointer |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 51 of file itkTwoOutputExampleImageFilter.h.
typedef TwoOutputExampleImageFilter itk::TwoOutputExampleImageFilter< TImage >::Self |
Standard class typedefs.
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 49 of file itkTwoOutputExampleImageFilter.h.
typedef ImageToImageFilter< TImage, TImage > itk::TwoOutputExampleImageFilter< TImage >::Superclass |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 50 of file itkTwoOutputExampleImageFilter.h.
itk::TwoOutputExampleImageFilter< TImage >::TwoOutputExampleImageFilter | ( | ) | [protected] |
Begin concept checking
itk::TwoOutputExampleImageFilter< TImage >::~TwoOutputExampleImageFilter | ( | ) | [inline, protected] |
Begin concept checking
Definition at line 106 of file itkTwoOutputExampleImageFilter.h.
itk::TwoOutputExampleImageFilter< TImage >::TwoOutputExampleImageFilter | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::TwoOutputExampleImageFilter< TImage >::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::Object.
OutputImagePointer itk::TwoOutputExampleImageFilter< TImage >::GetInverseOutput | ( | ) | [inline] |
Get the image output of this process object.
Definition at line 88 of file itkTwoOutputExampleImageFilter.h.
References itk::ProcessObject::GetOutput().
virtual const char* itk::TwoOutputExampleImageFilter< TImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
virtual PixelType itk::TwoOutputExampleImageFilter< TImage >::GetOutsideValue | ( | ) | const [virtual] |
Get the "outside" pixel value.
static Pointer itk::TwoOutputExampleImageFilter< TImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::TwoOutputExampleImageFilter< TImage >::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::ImageToImageFilter< TImage, TImage >.
void itk::TwoOutputExampleImageFilter< TImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Begin concept checking
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
void itk::TwoOutputExampleImageFilter< TImage >::SetInverseOutput | ( | OutputImageType * | output | ) | [inline] |
Set the image output of this process object.
Definition at line 92 of file itkTwoOutputExampleImageFilter.h.
virtual void itk::TwoOutputExampleImageFilter< TImage >::SetOutsideValue | ( | PixelType | _arg | ) | [virtual] |
Set the "outside" pixel value. The default value NumericTraits<PixelType>::Zero.
void itk::TwoOutputExampleImageFilter< TImage >::ThreadedGenerateData | ( | const OutputImageRegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected, virtual] |
TwoOutputExampleImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TImage >.
void itk::TwoOutputExampleImageFilter< TImage >::ThresholdAbove | ( | PixelType & | thresh | ) |
The values greater than or equal to the value are set to OutsideValue.
void itk::TwoOutputExampleImageFilter< TImage >::ThresholdBelow | ( | PixelType & | thresh | ) |
The values less than or equal to the value are set to OutsideValue.
void itk::TwoOutputExampleImageFilter< TImage >::ThresholdOutside | ( | PixelType & | lower, |
PixelType & | upper | ||
) |
The values outside the range are set to OutsideValue.
itk::TwoOutputExampleImageFilter< TImage >::typedef | ( | Concept::Comparable< PixelType > | ) |
Begin concept checking This class requires ComparableCheck in the form of ( Concept::Comparable< PixelType > )
itk::TwoOutputExampleImageFilter< TImage >::typedef | ( | Concept::OStreamWritable< PixelType > | ) |
This class requires OStreamWritableCheck in the form of ( Concept::OStreamWritable< PixelType > )
PixelType itk::TwoOutputExampleImageFilter< TImage >::m_Lower [private] |
Definition at line 128 of file itkTwoOutputExampleImageFilter.h.
PixelType itk::TwoOutputExampleImageFilter< TImage >::m_OutsideValue [private] |
Definition at line 127 of file itkTwoOutputExampleImageFilter.h.
PixelType itk::TwoOutputExampleImageFilter< TImage >::m_Upper [private] |
Definition at line 129 of file itkTwoOutputExampleImageFilter.h.