de.unihalle.informatik.MiToBo.morphology
Class BasicMorphology

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDOperator
      extended by de.unihalle.informatik.MiToBo.core.operator.MTBOperator
          extended by de.unihalle.informatik.MiToBo.morphology.BasicMorphology
All Implemented Interfaces:
de.unihalle.informatik.Alida.datatypes.ALDConfigurationValidator, de.unihalle.informatik.Alida.operator.events.ALDOperatorExecutionProgressEventListener, EventListener

@ALDAOperator(genericExecutionMode=ALL,
              level=APPLICATION)
@ALDMetaInfo(export=MANDATORY)
public class BasicMorphology
extends MTBOperator

class implementing basic morphological operations (for use with grayscale as well as with binary images)

Author:
glass

Nested Class Summary
static class BasicMorphology.maskShape
           
static class BasicMorphology.opMode
           
 
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
BasicMorphology()
           
BasicMorphology(Integer _maskSize, BasicMorphology.opMode _mode, BasicMorphology.maskShape _shape)
          Constructor to create new BasicMorphology object with mask size, mode and shape of the structuring element.
BasicMorphology(MTBImage inImg, MTBStructuringElement mask)
           
 
Method Summary
 MTBImage getResultImage()
           
 void operate()
           
 void setInImg(MTBImage _inImg)
          Set input image for morphological operation.
 void setMask(BasicMorphology.maskShape shape, int size)
           
 void setMask(MTBStructuringElement mask)
           
 void setMode(BasicMorphology.opMode mode)
           
 
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

BasicMorphology

public BasicMorphology()
                throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

BasicMorphology

public BasicMorphology(MTBImage inImg,
                       MTBStructuringElement mask)
                throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Parameters:
inImg - input image
mask - structuring element used for the morphological operation
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

BasicMorphology

public BasicMorphology(Integer _maskSize,
                       BasicMorphology.opMode _mode,
                       BasicMorphology.maskShape _shape)
                throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Constructor to create new BasicMorphology object with mask size, mode and shape of the structuring element.

Parameters:
_maskSize - size of structuring element used for the morphological operation
_mode - mode of morphological operation
_shape - shape of structuring element used for the morphological operation
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

setInImg

public void setInImg(MTBImage _inImg)
Set input image for morphological operation.


operate

public void operate()
             throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException,
                    de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
Specified by:
operate in class de.unihalle.informatik.Alida.operator.ALDOperator
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException

setMode

public void setMode(BasicMorphology.opMode mode)
Parameters:
mode - morphological operation to apply

setMask

public void setMask(BasicMorphology.maskShape shape,
                    int size)

setMask

public void setMask(MTBStructuringElement mask)
Parameters:
mask - structuring element to use

getResultImage

public MTBImage getResultImage()
Returns:
result image


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.