|
||||||||||
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.contours.extraction.BordersOnLabeledComponents
@ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) public class BordersOnLabeledComponents
Class to extract borders from connected components.
Contrary to contours, for example extracted by the operator
ContourOnLabeledComponents
, the borders extracted by this operator
contain unordered sets of pixels, i.e. the border elements are neither
clockwise nor counter-clockwise sorted. The main advantage of this operator
is that it is faster than the counterpart, and very often there is no need
for ordered contours, but unordered contours are sufficient for the task
at hand.
The operator allows to extract outer borders, inner borders or both. If
only inner borders are to be extracted a border set is returned which
contains empty outer dummy borders which contain the inner borders. This
way the inner borders are grouped according to the regions they belong to.
But, note that this behavior is different from the
ContourOnLabeledComponents
operator.
This operator takes a label image as input interpreting all pixels with values larger than zero as foreground pixels. Alternatively you can supply a region set. If both are given, the operator assumes that label image and region set are consistent.
Nested Class Summary | |
---|---|
static class |
BordersOnLabeledComponents.BorderType
Possible types of borders to be extracted. |
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 | |
---|---|
BordersOnLabeledComponents()
Standard constructor. |
|
BordersOnLabeledComponents(MTBImageByte inImg,
MTBRegion2DSet inRegions,
MTBBorder2D.BorderConnectivity con,
BordersOnLabeledComponents.BorderType type,
int minLength)
Constructor. |
Method Summary | |
---|---|
protected void |
drawBordersToImage()
Draws result contours to an image. |
protected void |
extractBorders()
Extract requested borders for given input data. |
MTBBorder2DSet |
getResultBorders()
Get result borders. |
MTBImageShort |
getResultImage()
Get result image with extracted borders. |
protected void |
operate()
|
void |
setBorderType(BordersOnLabeledComponents.BorderType type)
Set border type to be extracted. |
void |
setConnectivity(MTBBorder2D.BorderConnectivity bc)
Specify connectivity for extracted border pixels. |
void |
setInputImage(MTBImageByte inImg)
Set input image. |
void |
setInputRegions(MTBRegion2DSet inRegions)
Set input regions. |
void |
setMinimalBorderLength(int length)
Set the minimal border length. |
void |
validateCustom()
|
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, 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 BordersOnLabeledComponents() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public BordersOnLabeledComponents(MTBImageByte inImg, MTBRegion2DSet inRegions, MTBBorder2D.BorderConnectivity con, BordersOnLabeledComponents.BorderType type, int minLength) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public void setInputImage(MTBImageByte inImg)
Image
- to process.public void setInputRegions(MTBRegion2DSet inRegions)
Regions
- to process.public void setConnectivity(MTBBorder2D.BorderConnectivity bc)
bc
- Connectivity.public void setBorderType(BordersOnLabeledComponents.BorderType type)
Type
- of borders to be extracted.public void setMinimalBorderLength(int length)
length
- Minimal length of borders to be extracted.public MTBImageShort getResultImage()
public MTBBorder2DSet getResultBorders()
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 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 void extractBorders() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
protected void drawBordersToImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |