@ALDAOperator(genericExecutionMode=ALL, level=STANDARD) public class Region2DSetFromLabelimage extends MTBOperator implements loci.common.StatusReporter
Modifier and Type | Field and Description |
---|---|
private int |
backgroundLabel |
private boolean |
excludeBackground
If true all background pixels, defined as pixels with label equals
backgroundLabel
are excluded |
private MTBImage |
labelImage
Input image.
|
private Vector<loci.common.StatusListener> |
m_statusListeners
vector of installed StatusListeners
|
private MTBRegion2DSet |
regionSet
Resulting region set.
|
Constructor and Description |
---|
Region2DSetFromLabelimage()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(loci.common.StatusListener statuslistener) |
MTBImage |
getLabelImage()
Get reference to the current Label image.
|
MTBRegion2DSet |
getRegionSet() |
void |
notifyListeners(loci.common.StatusEvent e) |
protected void |
operate() |
protected Object |
readResolve()
Init function for deserialized objects.
|
void |
removeStatusListener(loci.common.StatusListener statuslistener) |
void |
setLabelImage(MTBImage labelImage)
Set Label image.
|
void |
validateCustom() |
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, validateGeneric, writeHistory, writeHistory, writeHistory
@Parameter(label="Label image", required=true, direction=IN, mode=STANDARD, dataIOOrder=1, description="Label image") private transient MTBImage labelImage
@Parameter(label="ExcludeBackground", required=true, direction=IN, mode=STANDARD, dataIOOrder=2, description="Exclude background region?") private boolean excludeBackground
backgroundLabel
are excluded@Parameter(label="BackgroundLabel", required=true, direction=IN, mode=STANDARD, dataIOOrder=3, description="Label of background pixels") private int backgroundLabel
@Parameter(label="Regionset", required=true, direction=OUT, mode=STANDARD, dataIOOrder=1, description="Region set from label image") private transient MTBRegion2DSet regionSet
private transient Vector<loci.common.StatusListener> m_statusListeners
public Region2DSetFromLabelimage() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
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
protected Object readResolve()
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 MTBOperator
public MTBImage getLabelImage()
public void setLabelImage(MTBImage labelImage)
public MTBRegion2DSet getRegionSet()
protected void operate()
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
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.