@ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) public class OrientedFilter2DBatchAnalyzer extends MTBOperator implements loci.common.StatusReporter
The operator applies a given oriented filter in different orientations to the given image. Subsequently all filter responses are merged into a final result using the specified mode for joining.
Modifier and Type | Class and Description |
---|---|
static class |
OrientedFilter2DBatchAnalyzer.JoinMode
Method for joining the results from the various orientations.
|
Modifier and Type | Field and Description |
---|---|
protected int |
angleSampling
Angular sampling step size.
|
protected MTBImage |
inputImg
Input image to process.
|
protected OrientedFilter2DBatchAnalyzer.JoinMode |
jMode
Mode for joining results from different orientations.
|
protected int |
maxAngle
Maximal orientation where to end.
|
private MTBImageByte |
maxIndexMap
Map of indices of maximal responses.
|
protected int |
minAngle
Minimal orientation from where to start.
|
protected OrientedFilter2D |
oFilter
Oriented filter to apply.
|
private static String |
operatorID
Identifier string for this operator class.
|
protected MTBImageDouble |
responseStack
Stack with filter responses of all orientations.
|
protected MTBImageDouble |
resultImg
Result image.
|
protected Vector<loci.common.StatusListener> |
statusListeners
Vector of installed StatusListeners.
|
Constructor and Description |
---|
OrientedFilter2DBatchAnalyzer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(loci.common.StatusListener statuslistener) |
MTBImageDouble |
getFilterResponseStack()
Get individual filter responses.
|
MTBImageByte |
getIndexMap()
Get map of indices of maximal responses.
|
MTBImageDouble |
getResultImage()
Get result image.
|
void |
notifyListeners(loci.common.StatusEvent e) |
protected void |
operate() |
void |
removeStatusListener(loci.common.StatusListener statuslistener) |
void |
setAngleSampling(int s)
Set angular sampling interval.
|
void |
setInputImage(MTBImage img)
Specify the input image.
|
void |
setMaxAngle(int max)
Specify maximal angle to apply.
|
void |
setMinAngle(int min)
Specify minimal angle to apply.
|
void |
setOrientedFilter(OrientedFilter2D filter)
Specify the oriented filter to apply.
|
readResolve
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
private static final String operatorID
protected transient Vector<loci.common.StatusListener> statusListeners
@Parameter(label="Input Image", required=true, direction=IN, mode=STANDARD, description="Input image.", dataIOOrder=0) protected transient MTBImage inputImg
@Parameter(label="Oriented Filter", required=true, direction=IN, mode=STANDARD, description="Oriented Filter to Apply.", dataIOOrder=1) protected OrientedFilter2D oFilter
@Parameter(label="Minimal Orientation", required=true, dataIOOrder=2, direction=IN, mode=ADVANCED, description="Minimal orientation to consider (in degrees).") protected int minAngle
@Parameter(label="Maximal Orientation", required=true, dataIOOrder=3, direction=IN, mode=ADVANCED, description="Maximal orientation to consider (in degrees).") protected int maxAngle
@Parameter(label="Angular Sampling Steps", required=true, direction=IN, mode=ADVANCED, description="Angular sampling step size (in degrees).", dataIOOrder=4) protected int angleSampling
@Parameter(label="Join Mode", required=true, dataIOOrder=5, direction=IN, mode=ADVANCED, description="Mode for joining different orientation responses.") protected OrientedFilter2DBatchAnalyzer.JoinMode jMode
@Parameter(label="Result Image", dataIOOrder=0, direction=OUT, description="Result image.") protected transient MTBImageDouble resultImg
@Parameter(label="Filter Response Stack", dataIOOrder=1, direction=OUT, description="Filter response stack.") protected transient MTBImageDouble responseStack
private transient MTBImageByte maxIndexMap
The map is available after running the operator. Note that this is not an operator parameter because it is only useful internally for some vessel filters.
public OrientedFilter2DBatchAnalyzer() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of failure.protected void operate() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
public void setInputImage(MTBImage img)
img
- Image to process.public void setOrientedFilter(OrientedFilter2D filter)
filter
- Pre-configured filter object.public void setMinAngle(int min)
min
- Value of angle in degrees.public void setMaxAngle(int max)
max
- Maximal value of angle in degrees.public void setAngleSampling(int s)
s
- Sampling interval in degrees.public MTBImageDouble getResultImage()
public MTBImageDouble getFilterResponseStack()
public MTBImageByte getIndexMap()
public void addStatusListener(loci.common.StatusListener statuslistener)
addStatusListener
in interface loci.common.StatusReporter
public void notifyListeners(loci.common.StatusEvent e)
notifyListeners
in interface loci.common.StatusReporter
public void removeStatusListener(loci.common.StatusListener statuslistener)
removeStatusListener
in interface loci.common.StatusReporter
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.