de.unihalle.informatik.MiToBo.morphology
Class HDomeTransform3D

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

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

H-dome transform in 3D (straightforward use with 2D-images). The h-dome transform finds regional maxima, which means connected components D of an image I with following properties: - every pixel p neighbor of D satisfies: I(p) < min{ I(q) | q element of D} - max{ I(q) | q element of D} - min{ I(q) | q element of D} < h [Vincent93] The implementation follows the work of Luc Vincent: [Vincent93] Luc Vincent "Morphological Grayscale Reconstruction in Image Analysis: Applications and Efficient Algorithms" in IEEE Transactions on Image Processing, Vol. 2, No. 2, pp. 176-201, April 1993

Author:
gress

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
HDomeTransform3D()
          Constructor
HDomeTransform3D(MTBImage img, double h)
          Constructor
 
Method Summary
 double getH()
          Get current h-parameter (max height of the h-domes).
 MTBImage getInputImage()
          Get reference to the current input image.
 MTBImage getResultImage()
          Get the resulting h-dome image.
protected  void hybridGrayscaleReconstruct(MTBImage mask, MTBImage marker)
          Implements the fast hybrid grayscale reconstruction algo of [Vincent93].
protected  void operate()
           
 void setH(double h)
          Set current h-parameter (max height of the h-domes).
 void setInputImage(MTBImage img)
          Set input image
protected  void setResultImage(MTBImage resultImage)
          Set the result image.
protected  MTBImage transform(MTBImage img, double h)
          Compute the h-dome transform
 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

HDomeTransform3D

public HDomeTransform3D()
                 throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Constructor

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

HDomeTransform3D

public HDomeTransform3D(MTBImage img,
                        double h)
                 throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Constructor

Parameters:
img - input image
h - max size of h-domes
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

getInputImage

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


setInputImage

public void setInputImage(MTBImage img)
Set input image


getH

public double getH()
Get current h-parameter (max height of the h-domes).


setH

public void setH(double h)
Set current h-parameter (max height of the h-domes).


getResultImage

public MTBImage getResultImage()
Get the resulting h-dome image.


setResultImage

protected void setResultImage(MTBImage resultImage)
Set the result image.


operate

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

validateCustom

public void validateCustom()
                    throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Overrides:
validateCustom in class de.unihalle.informatik.Alida.operator.ALDOperator
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

transform

protected MTBImage transform(MTBImage img,
                             double h)
Compute the h-dome transform

Parameters:
img - input image
h - max height of h-domes
Returns:
h-dome image

hybridGrayscaleReconstruct

protected void hybridGrayscaleReconstruct(MTBImage mask,
                                          MTBImage marker)
Implements the fast hybrid grayscale reconstruction algo of [Vincent93]. Mask image (I) corresponds to the input image, marker image determines the marker (J). Remember that J <= I everywhere in the image. Result is stored in marker!!

Parameters:
mask -
marker -


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