|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.MiToBo.core.operator.MTBOperator
de.unihalle.informatik.MiToBo.core.datatypes.images.MTBImage.MTBImageFactory
public class MTBImage.MTBImageFactory
A class for creating MTBImages which implements the MTBOperator.
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 |
---|
public MTBImage.MTBImageFactory() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MTBImage.MTBImageFactory(MTBImage _inImg) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
_inImg
-
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MTBImage.MTBImageFactory(MTBImage _inImg, MTBImage.MTBImageType type, boolean _scaleDown) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
_inImg
- type
- _scaleDown
-
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MTBImage.MTBImageFactory(MTBImage _inImg, int _z, int _t, int _c) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
_inImg
- _z
- _t
- _c
-
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
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
_inImg
- _x
- _y
- _z
- _t
- _c
- _sizeX
- _sizeY
- _sizeZ
- _sizeT
- _sizeC
-
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
protected void operate() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MTBImage duplicate(MTBImage img)
protected MTBImage convertType(MTBImage img, MTBImage.MTBImageType type, boolean scaleDown)
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.
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
x
- x-coordinate where the first value is copied fromy
- y-coordinate where the first value is copied fromz
- z-coordinate where the first value is copied fromt
- t-coordinate where the first value is copied fromc
- c-coordinate where the first value is copied fromsizeX
- size of the copied part in x-dimensionsizeY
- size of the copied part in y-dimensionsizeZ
- size of the copied part in z-dimensionsizeT
- size of the copied part in t-dimensionsizeC
- size of the copied part in c-dimension
IllegalArgumentException
- if image boundaries are exceeded in any wayprotected MTBImage getSlice(MTBImage img, int _z, int _t, int _c) throws IllegalArgumentException
img
- Image to process._z
- z-coordinate of desired slice._t
- t-coordinate of desired slice._c
- c-coordinate of desired slice.
IllegalArgumentException
protected MTBImage getInImg()
protected void setInImg(MTBImage _inImg)
public MTBImage getResultImg()
public void setResultImg(MTBImage _resultImg)
protected MTBImage.FactoryMethod getFactoryMethod()
protected void setFactoryMethod(MTBImage.FactoryMethod fm)
protected MTBImage.MTBImageType getTargetImageType()
protected void setTargetImageType(MTBImage.MTBImageType type)
protected boolean getScaleDown()
protected void setScaleDown(boolean _scaleDown) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
protected int getX()
protected void setX(int _x)
protected int getY()
protected void setY(int _y)
protected int getZ()
protected void setZ(int _z)
protected int getT()
protected void setT(int _t)
protected int getC()
protected void setC(int _c)
protected int getSizeX()
protected void setSizeX(int _sizeX)
protected int getSizeY()
protected void setSizeY(int _sizeY)
protected int getSizeZ()
protected void setSizeZ(int _sizeZ)
protected int getSizeT()
protected void setSizeT(int _sizeT)
protected int getSizeC()
protected void setSizeC(int _sizeC)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |