|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDData
de.unihalle.informatik.MiToBo.core.datatypes.images.MTBImage
de.unihalle.informatik.MiToBo.core.datatypes.images.MTBImageFloat
public class MTBImageFloat
Wrapper class for easy access to Float (hyper)stacks. Indices range is different from ImageJ Here, indices in each dimension range from 0 to (dimSize - 1), while ImageJ stack indices range from 1 to dimSize.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.unihalle.informatik.MiToBo.core.datatypes.images.MTBImage |
---|
MTBImage.FactoryMethod, MTBImage.MTBImageFactory, MTBImage.MTBImageType |
Field Summary | |
---|---|
private float[][] |
m_data
reference to the ImagePlus pixel data |
Fields inherited from class de.unihalle.informatik.MiToBo.core.datatypes.images.MTBImage |
---|
calibration, m_currentC, m_currentSliceIdx, m_currentT, m_img, m_imgStack, m_sizeC, m_sizeStack, m_sizeT, m_sizeX, m_sizeY, m_sizeZ, m_title, m_type, UNTITLED, xml |
Constructor Summary | |
---|---|
protected |
MTBImageFloat(ij.ImagePlus img)
Constructor |
protected |
MTBImageFloat(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
int sizeC)
Constructor |
Method Summary | |
---|---|
ij.ImagePlus |
getImagePlus()
Get an ImagePlus object. |
double[] |
getMinMaxDouble()
Get minimum and maximum value of the image as double |
int[] |
getMinMaxInt()
Get minimum and maximum value of the image as int |
double |
getValueDouble(int x,
int y)
Get the value of the actual slice at coordinate (x,y) as an Double |
double |
getValueDouble(int x,
int y,
int z)
Get the voxel value of the actual z-stack at coordinate (x,y,z) No test of coordinate validity |
double |
getValueDouble(int x,
int y,
int z,
int t,
int c)
Get the value of the 5D image at coordinate (x,y,z,t,c) No test of coordinate validity |
int |
getValueInt(int x,
int y)
Get the value of the actual slice at coordinate (x,y) as an Integer |
int |
getValueInt(int x,
int y,
int z)
Get the voxel value of the actual z-stack at coordinate (x,y,z) No test of coordinate validity |
int |
getValueInt(int x,
int y,
int z,
int t,
int c)
Get the value of the 5D image at coordinate (x,y,z,t,c) No test of coordinate validity |
void |
putValueDouble(int x,
int y,
double value)
Set the value of the actual slice at coordinate (x,y) using a Double |
void |
putValueDouble(int x,
int y,
int z,
double value)
Set the voxel value of the actual z-stack at coordinate (x,y,z) |
void |
putValueDouble(int x,
int y,
int z,
int t,
int c,
double value)
Set the voxel value of the 5D image at coordinate (x,y,z,t,c) |
void |
putValueInt(int x,
int y,
int value)
Set the value of the actual slice at coordinate (x,y) using an Integer |
void |
putValueInt(int x,
int y,
int z,
int value)
Set the voxel value of the actual z-stack at coordinate (x,y,z) |
void |
putValueInt(int x,
int y,
int z,
int t,
int c,
int value)
Set the voxel value of the 5D image at coordinate (x,y,z,t,c) |
protected void |
updateImagePlus()
Does nothing, because the underlying ImagePlus is updated immediately when values are changed in the MTBImage |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDData |
---|
cloneProperties, getLocation, getProperty, getPropertyKeys, print, setLocation, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private float[][] m_data
Constructor Detail |
---|
protected MTBImageFloat(ij.ImagePlus img)
img
- protected MTBImageFloat(int sizeX, int sizeY, int sizeZ, int sizeT, int sizeC)
sizeX
- size in x-dimensionsizeY
- size in y-dimensionsizeZ
- size in z-dimensionsizeT
- size in t-dimensionsizeC
- size in c-dimensionMethod Detail |
---|
public ij.ImagePlus getImagePlus()
getImagePlus
in class MTBImage
public double[] getMinMaxDouble()
getMinMaxDouble
in class MTBImage
public int[] getMinMaxInt()
getMinMaxInt
in class MTBImage
public double getValueDouble(int x, int y)
getValueDouble
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)
public double getValueDouble(int x, int y, int z)
getValueDouble
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)z
- z-coordinate ranging from 0 to (sizeZ - 1)
public double getValueDouble(int x, int y, int z, int t, int c)
getValueDouble
in interface MTBImageManipulator
getValueDouble
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)z
- z-coordinate ranging from 0 to (sizeZ - 1)t
- t-coordinate ranging from 0 to (sizeT - 1)c
- c-coordinate ranging from 0 to (sizeC - 1)
public int getValueInt(int x, int y)
getValueInt
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)
public int getValueInt(int x, int y, int z)
getValueInt
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)z
- z-coordinate ranging from 0 to (sizeZ - 1)
public int getValueInt(int x, int y, int z, int t, int c)
getValueInt
in interface MTBImageManipulator
getValueInt
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)z
- z-coordinate ranging from 0 to (sizeZ - 1)t
- t-coordinate ranging from 0 to (sizeT - 1)c
- c-coordinate ranging from 0 to (sizeC - 1)
public void putValueDouble(int x, int y, double value)
putValueDouble
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)value
- to set the voxel topublic void putValueDouble(int x, int y, int z, double value)
putValueDouble
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)z
- z-coordinate ranging from 0 to (sizeZ - 1)value
- to set the voxel topublic void putValueDouble(int x, int y, int z, int t, int c, double value)
putValueDouble
in interface MTBImageManipulator
putValueDouble
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)z
- z-coordinate ranging from 0 to (sizeZ - 1)t
- t-coordinate ranging from 0 to (sizeT - 1)c
- c-coordinate ranging from 0 to (sizeC - 1)value
- to set the voxel topublic void putValueInt(int x, int y, int value)
putValueInt
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)value
- to set the voxel topublic void putValueInt(int x, int y, int z, int value)
putValueInt
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)z
- z-coordinate ranging from 0 to (sizeZ - 1)value
- to set the voxel topublic void putValueInt(int x, int y, int z, int t, int c, int value)
putValueInt
in interface MTBImageManipulator
putValueInt
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)z
- z-coordinate ranging from 0 to (sizeZ - 1)t
- t-coordinate ranging from 0 to (sizeT - 1)c
- c-coordinate ranging from 0 to (sizeC - 1)value
- to set the voxel toprotected void updateImagePlus()
updateImagePlus
in class MTBImage
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |