de.unihalle.informatik.MiToBo.core.datatypes.images
Class MTBImage.MTBImageFactory

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.core.datatypes.images.MTBImage.MTBImageFactory
All Implemented Interfaces:
de.unihalle.informatik.Alida.datatypes.ALDConfigurationValidator, de.unihalle.informatik.Alida.operator.events.ALDOperatorExecutionProgressEventListener, EventListener
Enclosing class:
MTBImage

public class MTBImage.MTBImageFactory
extends MTBOperator

A class for creating MTBImages which implements the MTBOperator.

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
MTBImage.MTBImageFactory()
           
MTBImage.MTBImageFactory(MTBImage _inImg)
          Duplicate constructor
MTBImage.MTBImageFactory(MTBImage _inImg, int _z, int _t, int _c)
          Get slice constructor
MTBImage.MTBImageFactory(MTBImage _inImg, int _x, int _y, int _z, int _t, int _c, int _sizeX, int _sizeY, int _sizeZ, int _sizeT, int _sizeC)
          Create a new image from the specified image part
MTBImage.MTBImageFactory(MTBImage _inImg, MTBImage.MTBImageType type, boolean _scaleDown)
          Convert constructor
 
Method Summary
protected  MTBImage convertType(MTBImage img, MTBImage.MTBImageType type, boolean scaleDown)
          Create an image of given type from this image's values.
 MTBImage duplicate(MTBImage img)
           
protected  int getC()
           
protected  MTBImage.FactoryMethod getFactoryMethod()
           
protected  MTBImage getImagePart(MTBImage img, int x, int y, int z, int t, int c, int sizeX, int sizeY, int sizeZ, int sizeT, int sizeC)
          Get a copy of a part of this image as new MTBImage
protected  MTBImage getInImg()
           
 MTBImage getResultImg()
           
protected  boolean getScaleDown()
           
protected  int getSizeC()
           
protected  int getSizeT()
           
protected  int getSizeX()
           
protected  int getSizeY()
           
protected  int getSizeZ()
           
protected  MTBImage getSlice(MTBImage img, int _z, int _t, int _c)
          Get a copy of the specified slice
protected  int getT()
           
protected  MTBImage.MTBImageType getTargetImageType()
           
protected  int getX()
           
protected  int getY()
           
protected  int getZ()
           
protected  void operate()
           
protected  void setC(int _c)
           
protected  void setFactoryMethod(MTBImage.FactoryMethod fm)
           
protected  void setInImg(MTBImage _inImg)
           
 void setResultImg(MTBImage _resultImg)
           
protected  void setScaleDown(boolean _scaleDown)
           
protected  void setSizeC(int _sizeC)
           
protected  void setSizeT(int _sizeT)
           
protected  void setSizeX(int _sizeX)
           
protected  void setSizeY(int _sizeY)
           
protected  void setSizeZ(int _sizeZ)
           
protected  void setT(int _t)
           
protected  void setTargetImageType(MTBImage.MTBImageType type)
           
protected  void setX(int _x)
           
protected  void setY(int _y)
           
protected  void setZ(int _z)
           
 
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

MTBImage.MTBImageFactory

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

MTBImage.MTBImageFactory

public MTBImage.MTBImageFactory(MTBImage _inImg)
                         throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Duplicate constructor

Parameters:
_inImg -
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

MTBImage.MTBImageFactory

public MTBImage.MTBImageFactory(MTBImage _inImg,
                                MTBImage.MTBImageType type,
                                boolean _scaleDown)
                         throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Convert constructor

Parameters:
_inImg -
type -
_scaleDown -
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

MTBImage.MTBImageFactory

public MTBImage.MTBImageFactory(MTBImage _inImg,
                                int _z,
                                int _t,
                                int _c)
                         throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Get slice constructor

Parameters:
_inImg -
_z -
_t -
_c -
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

MTBImage.MTBImageFactory

public MTBImage.MTBImageFactory(MTBImage _inImg,
                                int _x,
                                int _y,
                                int _z,
                                int _t,
                                int _c,
                                int _sizeX,
                                int _sizeY,
                                int _sizeZ,
                                int _sizeT,
                                int _sizeC)
                         throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Create a new image from the specified image part

Parameters:
_inImg -
_x -
_y -
_z -
_t -
_c -
_sizeX -
_sizeY -
_sizeZ -
_sizeT -
_sizeC -
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

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

duplicate

public MTBImage duplicate(MTBImage img)

convertType

protected MTBImage convertType(MTBImage img,
                               MTBImage.MTBImageType type,
                               boolean scaleDown)
Create an image of given type from this image's values. Information is lost if a type of less precision is used!

Parameters:
type - new image's type (see static final fields for types)
scaleDown - If true, the data is scaled down to fit in the range of the new image type values, if the new image type is of less precision. If false, the values are simply casted.
Returns:
new image of given type

getImagePart

protected MTBImage getImagePart(MTBImage img,
                                int x,
                                int y,
                                int z,
                                int t,
                                int c,
                                int sizeX,
                                int sizeY,
                                int sizeZ,
                                int sizeT,
                                int sizeC)
                         throws IllegalArgumentException
Get a copy of a part of this image as new MTBImage

Parameters:
x - x-coordinate where the first value is copied from
y - y-coordinate where the first value is copied from
z - z-coordinate where the first value is copied from
t - t-coordinate where the first value is copied from
c - c-coordinate where the first value is copied from
sizeX - size of the copied part in x-dimension
sizeY - size of the copied part in y-dimension
sizeZ - size of the copied part in z-dimension
sizeT - size of the copied part in t-dimension
sizeC - size of the copied part in c-dimension
Returns:
new MTBImage with values equal to the specified part
Throws:
IllegalArgumentException - if image boundaries are exceeded in any way

getSlice

protected MTBImage getSlice(MTBImage img,
                            int _z,
                            int _t,
                            int _c)
                     throws IllegalArgumentException
Get a copy of the specified slice

Parameters:
img - Image to process.
_z - z-coordinate of desired slice.
_t - t-coordinate of desired slice.
_c - c-coordinate of desired slice.
Returns:
Copy of requested slice.
Throws:
IllegalArgumentException

getInImg

protected MTBImage getInImg()

setInImg

protected void setInImg(MTBImage _inImg)

getResultImg

public MTBImage getResultImg()

setResultImg

public void setResultImg(MTBImage _resultImg)

getFactoryMethod

protected MTBImage.FactoryMethod getFactoryMethod()

setFactoryMethod

protected void setFactoryMethod(MTBImage.FactoryMethod fm)

getTargetImageType

protected MTBImage.MTBImageType getTargetImageType()

setTargetImageType

protected void setTargetImageType(MTBImage.MTBImageType type)

getScaleDown

protected boolean getScaleDown()

setScaleDown

protected void setScaleDown(boolean _scaleDown)
                     throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

getX

protected int getX()

setX

protected void setX(int _x)

getY

protected int getY()

setY

protected void setY(int _y)

getZ

protected int getZ()

setZ

protected void setZ(int _z)

getT

protected int getT()

setT

protected void setT(int _t)

getC

protected int getC()

setC

protected void setC(int _c)

getSizeX

protected int getSizeX()

setSizeX

protected void setSizeX(int _sizeX)

getSizeY

protected int getSizeY()

setSizeY

protected void setSizeY(int _sizeY)

getSizeZ

protected int getSizeZ()

setSizeZ

protected void setSizeZ(int _sizeZ)

getSizeT

protected int getSizeT()

setSizeT

protected void setSizeT(int _sizeT)

getSizeC

protected int getSizeC()

setSizeC

protected void setSizeC(int _sizeC)


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