ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkDoubleThresholdImageFilter.h>
Binarize an input image using double thresholding.
Double threshold addresses the difficulty in selecting a threshold that will select the objects of interest without selecting extraneous objects. Double threshold considers two threshold ranges: a narrow range and a wide range (where the wide range encompasses the narrow range). If the wide range was used for a traditional threshold (where values inside the range map to the foreground and values outside the range map to the background), many extraneous pixels may survive the threshold operation. If the narrow range was used for a traditional threshold, then too few pixels may survive the threshold.
Double threshold uses the narrow threshold image as a marker image and the wide threshold image as a mask image in the geodesic dilation. Essentially, the marker image (narrow threshold) is dilated but constrained to lie within the mask image (wide threshold). Thus, only the objects of interest (those pixels that survived the narrow threshold) are extracted but the those objects appear in the final image as they would have if the wide threshold was used.
Definition at line 54 of file itkDoubleThresholdImageFilter.h.
typedef SmartPointer< const Self > itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::ConstPointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 62 of file itkDoubleThresholdImageFilter.h.
typedef Superclass::InputImagePointer itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Types from the superclass
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 68 of file itkDoubleThresholdImageFilter.h.
typedef Superclass::InputImageType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::InputImageType |
Some convenient typedefs.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 72 of file itkDoubleThresholdImageFilter.h.
typedef TInputImage::PixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::InputPixelType |
Pixel types.
Definition at line 75 of file itkDoubleThresholdImageFilter.h.
typedef TOutputImage::PixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Definition at line 76 of file itkDoubleThresholdImageFilter.h.
typedef SmartPointer< Self > itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::Pointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 61 of file itkDoubleThresholdImageFilter.h.
typedef DoubleThresholdImageFilter itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 59 of file itkDoubleThresholdImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::Superclass |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 60 of file itkDoubleThresholdImageFilter.h.
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::DoubleThresholdImageFilter | ( | ) | [protected] |
End concept checking
virtual itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::~DoubleThresholdImageFilter | ( | ) | [inline, protected, virtual] |
End concept checking
Definition at line 136 of file itkDoubleThresholdImageFilter.h.
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::DoubleThresholdImageFilter | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::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.
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::EnlargeOutputRequestedRegion | ( | DataObject * | ) | [protected, virtual] |
DoubleThresholdImageFilter produces all of the output and must provide an implementation of EnlargeOutputRequestedRegion()
Reimplemented from itk::ProcessObject.
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::FullyConnectedOff | ( | ) | [virtual] |
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::FullyConnectedOn | ( | ) | [virtual] |
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GenerateData | ( | ) | [protected, virtual] |
Single threaded version of GenerateData(). DoubleThresholdImageFilter delegates its implementation to the GrayscaleGeodesicDilateImageFilter.
Reimplemented from itk::ImageSource< TOutputImage >.
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion | ( | ) | [protected, virtual] |
DoubleThresholdImageFilter needs all of the input. So it must provide an implementation of GenerateInputRequestedRegion()
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual const bool& itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetFullyConnected | ( | ) | [virtual] |
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
virtual OutputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetInsideValue | ( | ) | const [virtual] |
Get the "inside" pixel value.
virtual const char* itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual OutputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetOutsideValue | ( | ) | const [virtual] |
Get the "outside" pixel value.
virtual InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetThreshold1 | ( | ) | const [virtual] |
Get the threshold values.
virtual InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetThreshold2 | ( | ) | const [virtual] |
Get the threshold values.
virtual InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetThreshold3 | ( | ) | const [virtual] |
Get the threshold values.
virtual InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetThreshold4 | ( | ) | const [virtual] |
Get the threshold values.
static Pointer itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::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< TInputImage, TOutputImage >.
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
End concept checking
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetFullyConnected | ( | bool | _arg | ) | [virtual] |
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetInsideValue | ( | OutputPixelType | _arg | ) | [virtual] |
Set the "inside" pixel value. The default value NumericTraits<OutputPixelType>::max()
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetOutsideValue | ( | OutputPixelType | _arg | ) | [virtual] |
Set the "outside" pixel value. The default value NumericTraits<OutputPixelType>::Zero.
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetThreshold1 | ( | InputPixelType | _arg | ) | [virtual] |
Set the thresholds. Four thresholds should be specified. The two lower thresholds default to NumericTraits<InputPixelType>::NonpositiveMin(). The two upper thresholds default NumericTraits<InputPixelType>::max. Threshold1 <= Threshold2 <= Threshold3 <= Threshold4.
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetThreshold2 | ( | InputPixelType | _arg | ) | [virtual] |
Set the thresholds. Four thresholds should be specified. The two lower thresholds default to NumericTraits<InputPixelType>::NonpositiveMin(). The two upper thresholds default NumericTraits<InputPixelType>::max. Threshold1 <= Threshold2 <= Threshold3 <= Threshold4.
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetThreshold3 | ( | InputPixelType | _arg | ) | [virtual] |
Set the thresholds. Four thresholds should be specified. The two lower thresholds default to NumericTraits<InputPixelType>::NonpositiveMin(). The two upper thresholds default NumericTraits<InputPixelType>::max. Threshold1 <= Threshold2 <= Threshold3 <= Threshold4.
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetThreshold4 | ( | InputPixelType | _arg | ) | [virtual] |
Set the thresholds. Four thresholds should be specified. The two lower thresholds default to NumericTraits<InputPixelType>::NonpositiveMin(). The two upper thresholds default NumericTraits<InputPixelType>::max. Threshold1 <= Threshold2 <= Threshold3 <= Threshold4.
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::EqualityComparable< OutputPixelType > | ) |
Begin concept checking This class requires OutputEqualityComparableCheck in the form of ( Concept::EqualityComparable< OutputPixelType > )
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Comparable< InputPixelType > | ) |
This class requires InputComparableCheck in the form of ( Concept::Comparable< InputPixelType > )
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::OStreamWritable< InputPixelType > | ) |
This class requires InputOStreamWritableCheck in the form of ( Concept::OStreamWritable< InputPixelType > )
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::OStreamWritable< OutputPixelType > | ) |
This class requires OutputOStreamWritableCheck in the form of ( Concept::OStreamWritable< OutputPixelType > )
bool itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_FullyConnected [private] |
Definition at line 167 of file itkDoubleThresholdImageFilter.h.
OutputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_InsideValue [private] |
Definition at line 162 of file itkDoubleThresholdImageFilter.h.
unsigned long itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_NumberOfIterationsUsed [private] |
Definition at line 165 of file itkDoubleThresholdImageFilter.h.
OutputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_OutsideValue [private] |
Definition at line 163 of file itkDoubleThresholdImageFilter.h.
InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_Threshold1 [private] |
Definition at line 157 of file itkDoubleThresholdImageFilter.h.
InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_Threshold2 [private] |
Definition at line 158 of file itkDoubleThresholdImageFilter.h.
InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_Threshold3 [private] |
Definition at line 159 of file itkDoubleThresholdImageFilter.h.
InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_Threshold4 [private] |
Definition at line 160 of file itkDoubleThresholdImageFilter.h.