de.unihalle.informatik.MiToBo.segmentation.snakes.datatypes
Class SnakeHelperOperators.ImageMaker

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.segmentation.snakes.datatypes.SnakeHelperOperators.ImageMaker
All Implemented Interfaces:
de.unihalle.informatik.Alida.datatypes.ALDConfigurationValidator
Enclosing class:
SnakeHelperOperators

protected class SnakeHelperOperators.ImageMaker
extends MTBOperator

Operator class to draw snake to an image.

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
private  java.lang.String file
          File name for optionally saving the image.
private  int iHeight
          Height of the image to be generated.
private  int imType
          Type of the image to be generated.
private  MTBImage inImage
          Optional input image to be used for drawing.
private  MTBSnake inSnake
          Input snake.
private  int iWidth
          Width of the image to be generated.
private  MTBImage outImage
          Output image.
 
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
completeDAG, name, portHashAccess, verbose, versionProvider
 
Constructor Summary
SnakeHelperOperators.ImageMaker(MTBSnake input, int imgType, int w, int h, java.lang.String f, MTBImage img)
          Default constructor.
 
Method Summary
protected  MTBImage getResultImage()
          Returns the generated image.
protected  void operate()
           
 
Methods inherited from class de.unihalle.informatik.MiToBo.core.operator.MTBOperator
readResolve
 
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
deserializeFromXmlFile, fieldContained, getALDPortHashAccessKey, getConstructionMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, isConfigured, parametersToXmlObject, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, runOp, runOp, runOp, serializeToXmlFile, setConstructionMode, setName, setParameter, setParametersFromXml, setParametersFromXml, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory, writeParametersToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

@Parameter(label="filename",
           direction=IN,
           required=false,
           description="File where to save the image.")
private java.lang.String file
File name for optionally saving the image.


iHeight

@Parameter(label="imHeight",
           direction=IN,
           required=true,
           description="Height of the image.")
private int iHeight
Height of the image to be generated.


imType

@Parameter(label="imType",
           direction=IN,
           required=false,
           description="Type of the image.")
private int imType
Type of the image to be generated.


inImage

@Parameter(label="inImage",
           direction=IN,
           required=false,
           description="Optional input image.")
private MTBImage inImage
Optional input image to be used for drawing.


inSnake

@Parameter(label="inSnake",
           direction=IN,
           required=true,
           description="Input snake.")
private MTBSnake inSnake
Input snake.


iWidth

@Parameter(label="imWidth",
           direction=IN,
           required=true,
           description="Width of the image.")
private int iWidth
Width of the image to be generated.


outImage

@Parameter(label="outImage",
           direction=OUT,
           description="Output image.")
private MTBImage outImage
Output image.

Constructor Detail

SnakeHelperOperators.ImageMaker

SnakeHelperOperators.ImageMaker(MTBSnake input,
                                int imgType,
                                int w,
                                int h,
                                java.lang.String f,
                                MTBImage img)
                          throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Default constructor.

Parameters:
input - Input snake.
imgType - Type of output image.
w - Width of image.
h - Height of image.
f - Optional filename for saving.
img - Image where to draw into.
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

getResultImage

protected MTBImage getResultImage()
Returns the generated image.


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