de.unihalle.informatik.MiToBo.morphology
Class ImgDilate

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.ImgDilate
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 ImgDilate
extends MTBOperator

This class implements morphological dilation on 2D binary/grayscale images.

If the given image only contains two pixel values it is interpreted as binary image. In the resulting image the background pixels will be set to the smaller value, while the foreground pixels will be set to the larger ones.

The structuring element is a square matrix of size 'masksize' x 'masksize', with reference pixel in the center of the matrix. Attention: if masksize is even, errors may result due to lack of operator symmetry

Author:
moeller

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
ImgDilate()
          Default constructor.
ImgDilate(MTBImage inimg, int ms)
          Constructor.
 
Method Summary
 MTBImage getInputImage()
          Get value of inImg.
 int getMasksize()
          Get value of masksize.
 MTBImage getResultImage()
          Get value of resultImg.
protected  void operate()
          This method does the actual work.
 void setResultImage(MTBImage value)
          Set value of resultImg.
 
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

ImgDilate

public ImgDilate()
          throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Default constructor.

Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

ImgDilate

public ImgDilate(MTBImage inimg,
                 int ms)
          throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Constructor.

Parameters:
inimg - Input image.
ms - Size of square mask.
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

getMasksize

public int getMasksize()
Get value of masksize. Explanation: Masksize.

Returns:
value of masksize

getInputImage

public MTBImage getInputImage()
Get value of inImg. Explanation: Input image.

Returns:
value of inImg

getResultImage

public MTBImage getResultImage()
Get value of resultImg. Explanation: Result image.

Returns:
value of resultImg

setResultImage

public void setResultImage(MTBImage value)
Set value of resultImg. Explanation: Result image.

Parameters:
value - New value of resultImg

operate

protected void operate()
This method does the actual work.

Specified by:
operate in class de.unihalle.informatik.Alida.operator.ALDOperator


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