|
||||||||||
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.regions.labeling.LabelComponentsSequential
@ALDAOperator(genericExecutionMode=ALL, level=STANDARD) public class LabelComponentsSequential
Sequential component labeling for binarized 2D images to find connected components.
Foreground pixels are assumed to have a value > 0,
all pixels with value <= 0 are assumed to be background.
Algorithm:
W. Burger and M. Burge, Digital image processing: an algorithmic introduction using Java, 2008, Springer-Verlag New York Inc
Nested Class Summary |
---|
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 | |
---|---|
LabelComponentsSequential()
Constructor |
|
LabelComponentsSequential(MTBImage img,
boolean diagonalNeighbors)
Constructor |
Method Summary | |
---|---|
MTBImage |
getColorImage()
Get image of randomly colored regions, if the create-color-image-flag was set to true. |
boolean |
getCreateColorImageFlag()
Get the flag that determines the creation of an image with randomly colored regions. |
boolean |
getCreateLabelImageFlag()
Get the flag that determines the creation of an image with region labels. |
boolean |
getDiagonalNeighborsFlag()
Get the neighborhood flag. |
MTBImage |
getInputImage()
Get reference to the current input image. |
MTBImage |
getLabelImage()
Get image of region labels (of type MTB_INT), if the create-label-image-flag was set to true. |
MTBRegion2DSet |
getResultingRegions()
Get the resulting regions. |
protected MTBRegion2DSet |
labelComponents(MTBImage img,
boolean diagonalNeighbors)
Sequential component labeling |
protected void |
operate()
|
protected void |
setColorImage(MTBImage colorImage)
Add the label image to the parameter object |
void |
setCreateColorImageFlag(boolean createColorImage)
Set the flag that determines the creation of an image with randomly colored regions. |
void |
setCreateLabelImageFlag(boolean createLabelImage)
Set the flag that determines the creation of an image with region labels. |
void |
setDiagonalNeighborsFlag(boolean diagonalNeighbors)
Set the neighborhood flag. |
void |
setInputImage(MTBImage inputImage)
Set a new input image. |
protected void |
setLabelImage(MTBImage labelImage)
Set image of region labels |
protected void |
setResultingRegions(MTBRegion2DSet regions)
Attach the vector of resulting regions. |
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 LabelComponentsSequential() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public LabelComponentsSequential(MTBImage img, boolean diagonalNeighbors) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
img
- input imagediagonalNeighbors
- set true for 8-neighborhood or false for 4-neighborhood
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public MTBImage getInputImage()
public void setInputImage(MTBImage inputImage)
public boolean getDiagonalNeighborsFlag()
public void setDiagonalNeighborsFlag(boolean diagonalNeighbors)
diagonalNeighbors
- set true for 8-neighborhood and false for 4-neighborhoodpublic boolean getCreateLabelImageFlag()
public void setCreateLabelImageFlag(boolean createLabelImage)
public boolean getCreateColorImageFlag()
public void setCreateColorImageFlag(boolean createColorImage)
protected void setResultingRegions(MTBRegion2DSet regions)
public MTBRegion2DSet getResultingRegions()
protected void setLabelImage(MTBImage labelImage)
public MTBImage getLabelImage()
protected void setColorImage(MTBImage colorImage)
public MTBImage getColorImage()
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
protected MTBRegion2DSet labelComponents(MTBImage img, boolean diagonalNeighbors)
img
- (binary) input imagediagonalNeighbors
- set true for 8-neighborhood components, set false for 4-neighborhood
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |