|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.MiToBo.core.operator.MTBOperator
de.unihalle.informatik.MiToBo.segmentation.thresholds.ImgThreshNiblack
@ALDAOperator(genericExecutionMode=ALL) public class ImgThreshNiblack
Image binarization based on local Niblack thresholding.
The implementation is based upon the following publications:
This class implements various versions of the Niblack thresholding approach. It calculates local thresholds according to the given input parameters and applies them to the given image. As result a binary image is returned.
Provided methods include conventional and enhanced Niblack thresholding,
either applied in a sliding window manner or maskwise. In the latter case
the windows are not overlapping. The maskwise application has particularly
profen suitable for granule detection.
The operator allows for activation of an additional local variance check.
If activated, only windows are thresholded where the
variance exceeds a certain threshold. All other windows are assumed to
contain more or less homogeneous intensities and are classified as
background.
In standard mode, as proposed by Niblack, the operator calculates a local threshold T based on the local mean m and standard deviation s in a local sliding window around pixel (x,y):
In additon to the standard version of the Niblack approach the operator also implements an enhanced version as proposed by Zhang et al:
Nested Class Summary | |
---|---|
static class |
ImgThreshNiblack.Mode
Niblack processing mode. |
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode |
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider |
Constructor Summary | |
---|---|
ImgThreshNiblack()
Default constructor. |
|
ImgThreshNiblack(MTBImage _inImg,
ImgThreshNiblack.Mode mode,
double k,
double R,
int wSize,
int vcNB,
double vcThresh,
MTBImageByte _mask)
Constructor. |
Method Summary | |
---|---|
ij.ImagePlus |
applyNiblackThresholdWholeImage(ij.process.ImageProcessor ip,
double k,
double R,
ij.ImagePlus _mask)
Deprecated. |
MTBImageByte |
getResultImage()
Get the resulting thresholded image. |
protected void |
operate()
|
void |
setInputImage(MTBImage img)
Set input image. |
Methods inherited from class de.unihalle.informatik.MiToBo.core.operator.MTBOperator |
---|
readResolve |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImgThreshNiblack() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public ImgThreshNiblack(MTBImage _inImg, ImgThreshNiblack.Mode mode, double k, double R, int wSize, int vcNB, double vcThresh, MTBImageByte _mask) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
_inImg
- Image to work on.mode
- Mode for Niblack operator.k
- Scaling factor for standard deviation.R
- If unequal to -1, enhanced Niblack is applied.wSize
- Size of sliding window for local thresholding.vcNB
- Size of neighborhood for local variance check.vcThresh
- Threshold for local variance check._mask
- Image mask for excluding image sections.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public MTBImageByte getResultImage()
public void setInputImage(MTBImage img)
img
- Image to process.protected void operate()
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
@Deprecated public ij.ImagePlus applyNiblackThresholdWholeImage(ij.process.ImageProcessor ip, double k, double R, ij.ImagePlus _mask)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |