public abstract class CellCounterDetectOperator
extends de.unihalle.informatik.Alida.operator.ALDOperatorCollectionElement
implements loci.common.StatusListener, loci.common.StatusReporter
This class basically serves as a place-holder and defines the interface. Detector functionality is to be implemented in related sub-classes.
Modifier and Type | Field and Description |
---|---|
protected Vector<CellCntrMarker> |
detectResults
Detection result.
|
protected int |
detectZSlice
Index of input image slice if z-stack is provided as input.
|
protected boolean |
highQualityData
Flag to enable extraction of data with highest accuracy.
|
protected MTBImage |
inputImage
Input image to process.
|
protected Vector<loci.common.StatusListener> |
m_statusListeners
Vector of installed
StatusListener objects. |
protected HashMap<Integer,CellCntrMarkerVector> |
markerVects
Set of available marker vectors.
|
Constructor and Description |
---|
CellCounterDetectOperator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(loci.common.StatusListener statListener)
Method is to be called for cleaning-up the operator resources.
|
Vector<CellCntrMarker> |
getDetectionResults()
Get the detection results.
|
abstract String |
getShortName()
Get common short name of operator for GUI.
|
void |
notifyListeners(loci.common.StatusEvent e) |
void |
removeStatusListener(loci.common.StatusListener statListener) |
void |
setHighQualityData(boolean flag)
Enable or disable extraction of high quality data.
|
void |
setInputImage(MTBImage img)
Set input image.
|
void |
setMarkerVectors(HashMap<Integer,CellCntrMarkerVector> v)
Set currently available marker vectors.
|
void |
setSliceZid(int i)
Set index of slice in stack, starting with 0 for first slice.
|
void |
statusUpdated(loci.common.StatusEvent e) |
getUniqueClassIdentifier
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, operate, print, print, print, printInterface, printInterface, readHistory, readResolve, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
protected transient MTBImage inputImage
protected int detectZSlice
protected HashMap<Integer,CellCntrMarkerVector> markerVects
These are passed to the operators in case that individual operators require access to the results of others. Note that each operator is responsible for acquiring the information which marker vector refers to the markers it needs.
@Parameter(label="Detection Results", direction=OUT, dataIOOrder=1, description="Detection results.") protected Vector<CellCntrMarker> detectResults
protected boolean highQualityData
protected Vector<loci.common.StatusListener> m_statusListeners
StatusListener
objects.public CellCounterDetectOperator() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of initialization error.public abstract String getShortName()
public Vector<CellCntrMarker> getDetectionResults()
public void setHighQualityData(boolean flag)
Extracting high quality data is allowed to take a bit longer than normal. For example in case of region contours high quality data could refer to an extraction of ordered lists of boundary points compared to unordered lists which is much faster.
flag
- If true, high quality data is requested.public void setInputImage(MTBImage img)
img
- Input image to process.public void setSliceZid(int i)
i
- Index in stack.public void setMarkerVectors(HashMap<Integer,CellCntrMarkerVector> v)
v
- Hashmap with marker vectors indexed by type.public void addStatusListener(loci.common.StatusListener statListener)
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 statListener)
removeStatusListener
in interface loci.common.StatusReporter
public void statusUpdated(loci.common.StatusEvent e)
statusUpdated
in interface loci.common.StatusListener
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.