Class YenThresholdImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.YenThresholdImageFilter
Threshold an image using the Yen Threshold.
This filter creates a binary thresholded image that separates an image
into foreground and background components. The filter computes the
threshold using the YenThresholdCalculator and applies that threshold to the input image using the BinaryThresholdImageFilter .
Richard Beare
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
This implementation was taken from the Insight Journal paper: https://doi.org/10.54294/efycla
See:
HistogramThresholdImageFilter
itk::simple::YenThreshold for the procedural interface
itk::YenThresholdImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkYenThresholdImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::YenThresholdImageFilter::YenThresholdImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedYenThresholdImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::YenThresholdImageFilter::~YenThresholdImageFilter() DestructorImage itk::simple::YenThresholdImageFilter::Execute(const Image &image, const Image &maskImage) Execute the filter on the input imageImage itk::simple::YenThresholdImageFilter::Execute(const Image &image, const Image &maskImage) Execute the filter on the input imageprotected voidfinalize()protected static longshortuint8_t itk::simple::YenThresholdImageFilter::GetInsideValue() const Get the "inside" pixel value.booleanbool itk::simple::YenThresholdImageFilter::GetMaskOutput() constshortuint8_t itk::simple::YenThresholdImageFilter::GetMaskValue() constgetName()std::string itk::simple::YenThresholdImageFilter::GetName() const Name of this classlonguint32_t itk::simple::YenThresholdImageFilter::GetNumberOfHistogramBins() constshortuint8_t itk::simple::YenThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value.doubledouble itk::simple::YenThresholdImageFilter::GetThreshold() const Get the computed threshold.voidSelf& itk::simple::YenThresholdImageFilter::MaskOutputOff()voidSelf& itk::simple::YenThresholdImageFilter::MaskOutputOn() Set the value of MaskOutput to true or false respectfully.voidsetInsideValue(short InsideValue) Self& itk::simple::YenThresholdImageFilter::SetInsideValue(uint8_t InsideValue) Set the "inside" pixel value.voidsetMaskOutput(boolean MaskOutput) Self& itk::simple::YenThresholdImageFilter::SetMaskOutput(bool MaskOutput) Do you want the output to be masked by the mask used in histogram construction.voidsetMaskValue(short MaskValue) Self& itk::simple::YenThresholdImageFilter::SetMaskValue(uint8_t MaskValue) The value in the mask image, if used, indicating voxels that should be included.voidsetNumberOfHistogramBins(long NumberOfHistogramBins) Self& itk::simple::YenThresholdImageFilter::SetNumberOfHistogramBins(uint32_t NumberOfHistogramBins) Set/Get the number of histogram bins.voidsetOutsideValue(short OutsideValue) Self& itk::simple::YenThresholdImageFilter::SetOutsideValue(uint8_t OutsideValue) Set the "outside" pixel value.protected static longtoString()std::string itk::simple::YenThresholdImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObject
abort, 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
-
YenThresholdImageFilter
protected YenThresholdImageFilter(long cPtr, boolean cMemoryOwn) -
YenThresholdImageFilter
public YenThresholdImageFilter()itk::simple::YenThresholdImageFilter::YenThresholdImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::YenThresholdImageFilter::~YenThresholdImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setInsideValue
public void setInsideValue(short InsideValue) Self& itk::simple::YenThresholdImageFilter::SetInsideValue(uint8_t InsideValue) Set the "inside" pixel value. -
getInsideValue
public short getInsideValue()uint8_t itk::simple::YenThresholdImageFilter::GetInsideValue() const Get the "inside" pixel value. -
setOutsideValue
public void setOutsideValue(short OutsideValue) Self& itk::simple::YenThresholdImageFilter::SetOutsideValue(uint8_t OutsideValue) Set the "outside" pixel value. The default value NumericTraits<OutputPixelType>::Zero. -
getOutsideValue
public short getOutsideValue()uint8_t itk::simple::YenThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value. -
setNumberOfHistogramBins
public void setNumberOfHistogramBins(long NumberOfHistogramBins) Self& itk::simple::YenThresholdImageFilter::SetNumberOfHistogramBins(uint32_t NumberOfHistogramBins) Set/Get the number of histogram bins. -
getNumberOfHistogramBins
public long getNumberOfHistogramBins()uint32_t itk::simple::YenThresholdImageFilter::GetNumberOfHistogramBins() const -
setMaskOutput
public void setMaskOutput(boolean MaskOutput) Self& itk::simple::YenThresholdImageFilter::SetMaskOutput(bool MaskOutput) Do you want the output to be masked by the mask used in histogram construction. Only relevant if masking is in use. -
maskOutputOn
public void maskOutputOn()Self& itk::simple::YenThresholdImageFilter::MaskOutputOn() Set the value of MaskOutput to true or false respectfully. -
maskOutputOff
public void maskOutputOff()Self& itk::simple::YenThresholdImageFilter::MaskOutputOff() -
getMaskOutput
public boolean getMaskOutput()bool itk::simple::YenThresholdImageFilter::GetMaskOutput() const -
setMaskValue
public void setMaskValue(short MaskValue) Self& itk::simple::YenThresholdImageFilter::SetMaskValue(uint8_t MaskValue) The value in the mask image, if used, indicating voxels that should be included. Default is the max of pixel type, as in the MaskedImageToHistogramFilter -
getMaskValue
public short getMaskValue()uint8_t itk::simple::YenThresholdImageFilter::GetMaskValue() const -
getThreshold
public double getThreshold()double itk::simple::YenThresholdImageFilter::GetThreshold() const Get the computed threshold. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution. -
getName
std::string itk::simple::YenThresholdImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::YenThresholdImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-
execute
-