|
||||||||||
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.filters.linear.anisotropic.OrientedFilter2D
de.unihalle.informatik.MiToBo.filters.linear.anisotropic.GaussPDxxFilter2D
@ALDDerivedClass @ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) public class GaussPDxxFilter2D
2D filter implementing second partial derivative of Gaussian in x.
This filter is often used in the context of segmenting vessel-like structures, e.g., refer to
Sofka and Stewart, "Retinal Vessel Centerline Extraction Using Multiscale
Matched Filters, Confidence and Edge Measures",
IEEE TMI, vol. 25, no. 12, pp. 1531-1546, December 2006
for an example of its application.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode |
Field Summary | |
---|---|
protected Double |
gaussStdDev
Standard deviation of the Gaussian. |
protected Integer |
height
Height of the filter mask. |
protected boolean |
invertMask
Flag to invert filter mask. |
protected boolean |
normalizeMask
Flag to normalize sum of kernel elements to zero. |
Fields inherited from class de.unihalle.informatik.MiToBo.filters.linear.anisotropic.OrientedFilter2D |
---|
angle, inputImg, resultImg, statusListeners |
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider |
Constructor Summary | |
---|---|
GaussPDxxFilter2D()
Default constructor. |
Method Summary | |
---|---|
void |
disableNormalization()
Disable kernel normalization. |
void |
enableNormalization()
Enable kernel normalization. |
MTBImageDouble |
getKernel(double _angle)
Calculates Gaussian derivative kernel for given parameters. |
protected boolean[][] |
getKernelMask()
Get mask of valid kernel elements. |
protected Object |
readResolve()
Init function for deserialized objects. |
void |
setHeight(int h)
Specify height of filter mask. |
void |
setInvertMask(boolean b)
Enable/disable inversion of mask. |
void |
setStandardDeviation(double s)
Specify standard deviation of Gaussian. |
void |
validateCustom()
|
Methods inherited from class de.unihalle.informatik.MiToBo.filters.linear.anisotropic.OrientedFilter2D |
---|
addStatusListener, getResultImage, notifyListeners, operate, removeStatusListener, setAngle, setInputImage |
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, validateGeneric, writeHistory, writeHistory, writeHistory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Parameter(label="\u03c3 of Gaussian", required=false, dataIOOrder=2, direction=IN, mode=STANDARD, description="Std. deviation of Gaussian.") protected Double gaussStdDev
The mask width is derived from the standard deviation of the Gaussian,
i.e. the width is given by
.
Note that the minimum width is 3.
@Parameter(label="Mask Height", required=false, dataIOOrder=3, direction=IN, mode=STANDARD, description="Height of the filter mask.") protected Integer height
Note that the height of the mask must not be smaller than 3.
@Parameter(label="Invert Mask", required=false, dataIOOrder=5, direction=IN, mode=STANDARD, description="If true, filter mask is inverted.") protected boolean invertMask
@Parameter(label="Normalize Mask", required=false, dataIOOrder=4, direction=IN, mode=STANDARD, description="If true, mask is normalized to a sum of zero.") protected boolean normalizeMask
Constructor Detail |
---|
public GaussPDxxFilter2D() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
protected Object readResolve()
MTBOperator
This function is called on an instance of this class being deserialized from file, prior to handing the instance over to the user. It takes care of a proper initialization of transient member variables as they are not initialized to the default values during deserialization.
readResolve
in class OrientedFilter2D
public void validateCustom() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
validateCustom
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MTBImageDouble getKernel(double _angle)
getKernel
in class OrientedFilter2D
_angle
- Rotation angle in degrees.
public void setInvertMask(boolean b)
b
- Flag for inversion.public void enableNormalization()
public void disableNormalization()
public void setStandardDeviation(double s)
s
- Standard deviation sigma.public void setHeight(int h)
h
- Height of mask.protected boolean[][] getKernelMask()
Intended to be used for unit testing only.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |