Class SimilarityIndexImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.SimilarityIndexImageFilter
Measures the similarity between the set of non-zero pixels of two
images.
SimilarityIndexImageFilter measures the similarity between the set non-zero pixels of two images
using the following formula: \\[ S = \\frac{2 | A \\cap B |}{|A| + |B|} \\] where $A$ and $B$ are respectively the set of non-zero pixels in the first and second
input images. Operator $|\\cdot|$ represents the size of a set and $\\cap$ represents the intersection of two sets.
The measure is derived from a reliability measure known as the kappa
statistic. $S$ is sensitive to both differences in size and in location and have
been in the literature for comparing two segmentation masks. For more
information see: "Morphometric Analysis of White Matter Lesions in MR
Images: Method and Validation", A. P. Zijdenbos, B. M. Dawant, R. A.
Margolin and A. C. Palmer, IEEE Trans. on Medical Imaging, 13(4) pp
716-724,1994
This filter requires the largest possible region of the first image
and the same corresponding region in the second image. It behaves as
filter with two input and one output. Thus it can be inserted in a
pipeline with other filters. The filter passes the first input through
unmodified.
This filter is templated over the two input image type. It assume both
image have the same number of dimensions.
See:
 itk::SimilarityIndexImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkSimilarityIndexImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::SimilarityIndexImageFilter::SimilarityIndexImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedSimilarityIndexImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::SimilarityIndexImageFilter::~SimilarityIndexImageFilter() Destructorvoidvoid itk::simple::SimilarityIndexImageFilter::Execute(const Image &image1, const Image &image2) Execute the filter on the input imagesprotected voidfinalize()protected static longgetName()std::string itk::simple::SimilarityIndexImageFilter::GetName() const Name of this classdoubledouble itk::simple::SimilarityIndexImageFilter::GetSimilarityIndex() const Return the computed similarity index.protected static longtoString()std::string itk::simple::SimilarityIndexImageFilter::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- 
SimilarityIndexImageFilterprotected SimilarityIndexImageFilter(long cPtr, boolean cMemoryOwn) 
- 
SimilarityIndexImageFilterpublic SimilarityIndexImageFilter()itk::simple::SimilarityIndexImageFilter::SimilarityIndexImageFilter() 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::SimilarityIndexImageFilter::~SimilarityIndexImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
getSimilarityIndexpublic double getSimilarityIndex()double itk::simple::SimilarityIndexImageFilter::GetSimilarityIndex() const Return the computed similarity index. 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::SimilarityIndexImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::SimilarityIndexImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-