ITK
5.2.0
Insight Toolkit
|
#include <itkIsolatedConnectedImageFilter.h>
Label pixels that are connected to one set of seeds but not another.
IsolatedConnectedImageFilter finds the optimal threshold to separate two regions. It has two modes, one to separate dark regions surrounded by bright regions by automatically finding a minimum isolating upper threshold, and another to separate bright regions surrounded by dark regions by automatically finding a maximum lower isolating threshold. The mode can be chosen by setting FindUpperThresholdOn()/Off(). In both cases, the isolating threshold is retrieved with GetIsolatedValue().
The algorithm labels pixels with ReplaceValue that are connected to Seeds1 AND NOT connected to Seeds2. When finding the threshold to separate two dark regions surrounded by bright regions, given a fixed lower threshold, the filter adjusts the upper threshold until the two sets of seeds are not connected. The algorithm uses a binary search to adjust the upper threshold, starting at Upper. The reverse is true for finding the threshold to separate two bright regions. Lower defaults to the smallest possible value for the InputImagePixelType, and Upper defaults to the largest possible value for the InputImagePixelType.
The user can also supply the Lower and Upper values to restrict the search. However, if the range is too restrictive, it could happen that no isolating threshold can be found between the user specified Lower and Upper values. Therefore, unless the user is sure of the bounds to set, it is recommended that the user set these values to the lowest and highest intensity values in the image, respectively.
The user can specify more than one seed for both regions to separate. The algorithm will try find the threshold that ensures that all of the first seeds are contained in the resulting segmentation and all of the second seeds are not contained in the segmentation.
It is possible that the algorithm may not be able to find the isolating threshold because no such threshold exists. The user can check for this by querying the GetThresholdingFailed() flag.
Definition at line 72 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 81 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::IndexType = typename InputImageType::IndexType |
Run-time type information (and related methods).
Definition at line 93 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::InputImageConstPointer = typename InputImageType::ConstPointer |
Run-time type information (and related methods).
Definition at line 90 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType |
Run-time type information (and related methods).
Definition at line 92 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::Pointer |
Run-time type information (and related methods).
Definition at line 89 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::InputImageRegionType = typename InputImageType::RegionType |
Run-time type information (and related methods).
Definition at line 91 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Run-time type information (and related methods).
Definition at line 88 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::InputRealType = typename NumericTraits<InputImagePixelType>::RealType |
Run-time type information (and related methods).
Definition at line 104 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Run-time type information (and related methods).
Definition at line 100 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Run-time type information (and related methods).
Definition at line 98 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType |
Run-time type information (and related methods).
Definition at line 99 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Run-time type information (and related methods).
Definition at line 97 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 80 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::SeedsContainerType = std::vector<IndexType> |
Run-time type information (and related methods).
Definition at line 102 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::Self = IsolatedConnectedImageFilter |
Standard class type aliases.
Definition at line 78 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::SizeType = typename InputImageType::SizeType |
Run-time type information (and related methods).
Definition at line 94 of file itkIsolatedConnectedImageFilter.h.
using itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 79 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
|
overrideprotecteddefault |
Run-time type information (and related methods).
void itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::AddSeed1 | ( | const IndexType & | seed | ) |
Add seed point 1. This seed will be isolated from Seed2 (if possible). All pixels connected to this seed will be replaced with ReplaceValue.
void itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::AddSeed2 | ( | const IndexType & | seed | ) |
Add seed point 2. This seed will be isolated from Seed1 (if possible).
void itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::ClearSeeds1 | ( | ) |
Clear all the seeds1.
void itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::ClearSeeds2 | ( | ) |
Clear all the seeds2.
|
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.
|
overrideprotectedvirtual |
Run-time type information (and related methods).
Reimplemented from itk::ProcessObject.
|
virtual |
Run-time type information (and related methods).
|
virtual |
Run-time type information (and related methods).
|
overrideprotectedvirtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageSource< TOutputImage >.
|
overrideprotectedvirtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Run-time type information (and related methods).
|
virtual |
Get value that isolates the two seeds.
|
virtual |
Run-time type information (and related methods).
|
virtual |
Run-time type information (and related methods).
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Run-time type information (and related methods).
|
virtual |
Method to access seed container
|
virtual |
Run-time type information (and related methods).
|
virtual |
Get the flag that tells whether the algorithm failed to find a threshold.
|
virtual |
Run-time type information (and related methods).
|
static |
Method for creation through the object factory.
|
overridevirtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get whether to find an upper threshold (separating two dark regions) or a lower threshold (separating two bright regions).
|
virtual |
Set/Get the precision required for the intensity threshold value. The default is 1.
|
virtual |
Set/Get the limit on the lower threshold value. The default is the NonpositiveMin() for the InputPixelType.
|
virtual |
Set/Get value to replace thresholded pixels. Pixels that lie within the thresholds will be replaced with this value. The default is 1.
void itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::SetSeed1 | ( | const IndexType & | seed | ) |
Set a single seed point 1.
This seed will be isolated from Seed2 (if possible). All pixels connected to this seed will be replaced with ReplaceValue.
void itk::IsolatedConnectedImageFilter< TInputImage, TOutputImage >::SetSeed2 | ( | const IndexType & | seed | ) |
Set a single seed point 2.
This seed will be isolated from Seed1 (if possible).
|
virtual |
Set/Get the limit on the upper threshold value. The default is the max() for the InputPixelType.
|
protected |
Run-time type information (and related methods).
Definition at line 225 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
Definition at line 222 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
Definition at line 223 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
Definition at line 217 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
Definition at line 220 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
Definition at line 214 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
Definition at line 215 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
Definition at line 226 of file itkIsolatedConnectedImageFilter.h.
|
protected |
Run-time type information (and related methods).
Definition at line 218 of file itkIsolatedConnectedImageFilter.h.