Class ConfidenceConnectedImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.ConfidenceConnectedImageFilter
Segment pixels with similar statistics using connectivity.
This filter extracts a connected set of pixels whose pixel intensities
are consistent with the pixel statistics of a seed point. The mean and
variance across a neighborhood (8-connected, 26-connected, etc.) are
calculated for a seed point. Then pixels connected to this seed point
whose values are within the confidence interval for the seed point are
grouped. The width of the confidence interval is controlled by the
"Multiplier" variable (the confidence interval is the mean plus or
minus the "Multiplier" times the standard deviation). If the
intensity variations across a segment were gaussian, a "Multiplier"
setting of 2.5 would define a confidence interval wide enough to
capture 99% of samples in the segment.
After this initial segmentation is calculated, the mean and variance
are re-calculated. All the pixels in the previous segmentation are
used to calculate the mean the standard deviation (as opposed to using
the pixels in the neighborhood of the seed point). The segmentation is
then recalculated using these refined estimates for the mean and
variance of the pixel values. This process is repeated for the
specified number of iterations. Setting the "NumberOfIterations" to
zero stops the algorithm after the initial segmentation from the seed
point.
NOTE: the lower and upper threshold are restricted to lie within the
valid numeric limits of the input data pixel type. Also, the limits
may be adjusted to contain the seed point's intensity.
See:
 itk::simple::ConfidenceConnected for the procedural interface
 itk::ConfidenceConnectedImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkConfidenceConnectedImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::ConfidenceConnectedImageFilter::ConfidenceConnectedImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedConfidenceConnectedImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddSeed(VectorUInt32 point) Self& itk::simple::ConfidenceConnectedImageFilter::AddSeed(std::vector< unsigned int > point) Add SeedList point.voidSelf& itk::simple::ConfidenceConnectedImageFilter::ClearSeeds() Remove all SeedList points.voiddelete()virtual itk::simple::ConfidenceConnectedImageFilter::~ConfidenceConnectedImageFilter() DestructorImage itk::simple::ConfidenceConnectedImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()protected static longlongunsigned int itk::simple::ConfidenceConnectedImageFilter::GetInitialNeighborhoodRadius() const Get/Set the radius of the neighborhood over which the statistics are evaluateddoublegetMean()double itk::simple::ConfidenceConnectedImageFilter::GetMean() const Method to get access to the mean of the pixels accepted in the output region.doubledouble itk::simple::ConfidenceConnectedImageFilter::GetMultiplier() const Set/Get the multiplier to define the confidence interval.getName()std::string itk::simple::ConfidenceConnectedImageFilter::GetName() const Name of this classlongunsigned int itk::simple::ConfidenceConnectedImageFilter::GetNumberOfIterations() const Set/Get the number of iterationsshortuint8_t itk::simple::ConfidenceConnectedImageFilter::GetReplaceValue() const Set/Get value to replace thresholded pixelsstd::vector< std::vector< unsigned int > > itk::simple::ConfidenceConnectedImageFilter::GetSeedList() const Get list of seeds.doubledouble itk::simple::ConfidenceConnectedImageFilter::GetVariance() const Method to get access to the variance of the pixels accepted in the output region.voidsetInitialNeighborhoodRadius(long InitialNeighborhoodRadius) Self& itk::simple::ConfidenceConnectedImageFilter::SetInitialNeighborhoodRadius(unsigned int InitialNeighborhoodRadius) Get/Set the radius of the neighborhood over which the statistics are evaluatedvoidsetMultiplier(double Multiplier) Self& itk::simple::ConfidenceConnectedImageFilter::SetMultiplier(double Multiplier) Set/Get the multiplier to define the confidence interval.voidsetNumberOfIterations(long NumberOfIterations) Self& itk::simple::ConfidenceConnectedImageFilter::SetNumberOfIterations(unsigned int NumberOfIterations) Set/Get the number of iterationsvoidsetReplaceValue(short ReplaceValue) Self& itk::simple::ConfidenceConnectedImageFilter::SetReplaceValue(uint8_t ReplaceValue) Set/Get value to replace thresholded pixelsvoidsetSeedList(VectorUIntList SeedList) Self& itk::simple::ConfidenceConnectedImageFilter::SetSeedList(std::vector< std::vector< unsigned int > > SeedList) Set list of image indexes for seeds.protected static longtoString()std::string itk::simple::ConfidenceConnectedImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFiltergetCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObjectabort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
- 
Constructor Details- 
ConfidenceConnectedImageFilterprotected ConfidenceConnectedImageFilter(long cPtr, boolean cMemoryOwn) 
- 
ConfidenceConnectedImageFilterpublic ConfidenceConnectedImageFilter()itk::simple::ConfidenceConnectedImageFilter::ConfidenceConnectedImageFilter() Default Constructor that takes no arguments and initializes default parameters
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ImageFilter
 
- 
deletepublic void delete()virtual itk::simple::ConfidenceConnectedImageFilter::~ConfidenceConnectedImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setSeedListSelf& itk::simple::ConfidenceConnectedImageFilter::SetSeedList(std::vector< std::vector< unsigned int > > SeedList) Set list of image indexes for seeds.
- 
getSeedListstd::vector< std::vector< unsigned int > > itk::simple::ConfidenceConnectedImageFilter::GetSeedList() const Get list of seeds.
- 
addSeedSelf& itk::simple::ConfidenceConnectedImageFilter::AddSeed(std::vector< unsigned int > point) Add SeedList point.
- 
clearSeedspublic void clearSeeds()Self& itk::simple::ConfidenceConnectedImageFilter::ClearSeeds() Remove all SeedList points.
- 
setNumberOfIterationspublic void setNumberOfIterations(long NumberOfIterations) Self& itk::simple::ConfidenceConnectedImageFilter::SetNumberOfIterations(unsigned int NumberOfIterations) Set/Get the number of iterations
- 
getNumberOfIterationspublic long getNumberOfIterations()unsigned int itk::simple::ConfidenceConnectedImageFilter::GetNumberOfIterations() const Set/Get the number of iterations
- 
setMultiplierpublic void setMultiplier(double Multiplier) Self& itk::simple::ConfidenceConnectedImageFilter::SetMultiplier(double Multiplier) Set/Get the multiplier to define the confidence interval. Multiplier can be anything greater than zero. A typical value is 2.5
- 
getMultiplierpublic double getMultiplier()double itk::simple::ConfidenceConnectedImageFilter::GetMultiplier() const Set/Get the multiplier to define the confidence interval. Multiplier can be anything greater than zero. A typical value is 2.5
- 
setInitialNeighborhoodRadiuspublic void setInitialNeighborhoodRadius(long InitialNeighborhoodRadius) Self& itk::simple::ConfidenceConnectedImageFilter::SetInitialNeighborhoodRadius(unsigned int InitialNeighborhoodRadius) Get/Set the radius of the neighborhood over which the statistics are evaluated
- 
getInitialNeighborhoodRadiuspublic long getInitialNeighborhoodRadius()unsigned int itk::simple::ConfidenceConnectedImageFilter::GetInitialNeighborhoodRadius() const Get/Set the radius of the neighborhood over which the statistics are evaluated
- 
setReplaceValuepublic void setReplaceValue(short ReplaceValue) Self& itk::simple::ConfidenceConnectedImageFilter::SetReplaceValue(uint8_t ReplaceValue) Set/Get value to replace thresholded pixels
- 
getReplaceValuepublic short getReplaceValue()uint8_t itk::simple::ConfidenceConnectedImageFilter::GetReplaceValue() const Set/Get value to replace thresholded pixels
- 
getMeanpublic double getMean()double itk::simple::ConfidenceConnectedImageFilter::GetMean() const Method to get access to the mean of the pixels accepted in the output region. This method should only be invoked after the filter has been executed using the Update() method. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
- 
getVariancepublic double getVariance()double itk::simple::ConfidenceConnectedImageFilter::GetVariance() const Method to get access to the variance of the pixels accepted in the output region. This method should only be invoked after the filter has been executed using the Update() method. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
- 
getNamestd::string itk::simple::ConfidenceConnectedImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::ConfidenceConnectedImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-