ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkTwoOutputExampleImageFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::InputImageConstPointer | InputImageConstPointer |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TImage | OutputImageType |
typedef TImage::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef TwoOutputExampleImageFilter | Self |
typedef ImageToImageFilter < TImage, TImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TImage, TImage > | |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TImage | InputImageType |
Public Types inherited from itk::ImageSource< TImage > | |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
Public Types inherited from itk::ProcessObject | |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef std::vector < DataObjectIdentifierType > | NameArray |
Public Types inherited from itk::Object | |
Public Types inherited from itk::LightObject |
Static Public Member Functions | |
static Pointer | New () |
Private Member Functions | |
void | operator= (const Self &) |
TwoOutputExampleImageFilter (const Self &) |
Private Attributes | |
PixelType | m_Lower |
PixelType | m_OutsideValue |
PixelType | m_Upper |
Additional Inherited Members | |
Static Public Attributes inherited from itk::ImageToImageFilter< TImage, TImage > | |
static const unsigned int | InputImageDimension |
static const unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TImage > | |
Protected Types inherited from itk::ImageToImageFilter< TImage, TImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
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.
|
protected |
Begin concept checking
|
inlineprotected |
Begin concept checking
Definition at line 106 of file itkTwoOutputExampleImageFilter.h.
|
private |
|
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.
|
inline |
Get the image output of this process object.
Definition at line 88 of file itkTwoOutputExampleImageFilter.h.
References itk::ProcessObject::GetOutput().
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
|
virtual |
Get the "outside" pixel value.
|
static |
Method for creation through the object factory.
Reimplemented from itk::Object.
|
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 >.
|
protectedvirtual |
Begin concept checking
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
|
inline |
Set the image output of this process object.
Definition at line 92 of file itkTwoOutputExampleImageFilter.h.
|
virtual |
Set the "outside" pixel value. The default value NumericTraits<PixelType>::Zero.
|
protectedvirtual |
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 > )
|
private |
Definition at line 128 of file itkTwoOutputExampleImageFilter.h.
|
private |
Definition at line 127 of file itkTwoOutputExampleImageFilter.h.
|
private |
Definition at line 129 of file itkTwoOutputExampleImageFilter.h.