de.unihalle.informatik.MiToBo.morphology
Class ImgTophat

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.ImgTophat
All Implemented Interfaces:
de.unihalle.informatik.Alida.datatypes.ALDConfigurationValidator, de.unihalle.informatik.Alida.operator.events.ALDOperatorExecutionProgressEventListener, EventListener

@ALDAOperator(genericExecutionMode=ALL)
public class ImgTophat
extends MTBOperator

This class implements the tophat operator.

Attention: if masksize is even, errors may result due to lack of operator symmetry

Author:
moeller

Nested Class Summary
static class ImgTophat.tophatMode
          Available operating modes.
 
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
ImgTophat()
          Default constructor.
ImgTophat(MTBImage ip, ImgTophat.tophatMode op, int msize)
          Constructor with parameters.
 
Method Summary
 MTBImage getInputImage()
          Get reference to the current input image.
 int getMasksize()
          Get current masksize.
 ImgTophat.tophatMode getMode()
          Get the desired operator mode.
 MTBImage getResultImage()
          Get the result image after applying the operator.
protected  void operate()
           
 void setResultImage(MTBImage rimage)
          Set the result image.
 
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

ImgTophat

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

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

ImgTophat

public ImgTophat(MTBImage ip,
                 ImgTophat.tophatMode op,
                 int msize)
          throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Constructor with parameters.

Parameters:
ip - Image to work on.
op - Operator mode.
msize - Size of squared mask.
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

getInputImage

public MTBImage getInputImage()
Get reference to the current input image.

Returns:
Input image to work on.

getMode

public ImgTophat.tophatMode getMode()
Get the desired operator mode.

Returns:
Modus of operator.
Throws:
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException

getMasksize

public int getMasksize()
Get current masksize.

Returns:
Masksize of dilation mask.

getResultImage

public MTBImage getResultImage()
Get the result image after applying the operator. Attention, reference might be null.

Returns:
Reference to result image.

setResultImage

public void setResultImage(MTBImage rimage)
Set the result image.

Parameters:
rimage - Result image.
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

operate

protected 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


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