|
||||||||
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.MTBImageInt
public class MTBImageInt
Class for easy access to Int (hyper)stacks. The Int type is a Non-ImageJ type, thus the data is not a reference to ImagePlus data, but is allocated for this MTBImage object. 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 | |
---|---|
protected int[][] |
m_data
image data |
protected java.lang.String[] |
m_sliceLabels
slice labels |
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 |
MTBImageInt(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
int sizeC)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getCurrentSliceLabel()
Get the slice label of the slice specified by the actual slice index |
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 voxel 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 voxel 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) |
void |
setCurrentSliceLabel(java.lang.String label)
Set the slice label of the slice specified by the actual slice index |
protected void |
updateImagePlus()
Creates or updates an ImagePlus of Float type from the MTBImage Int data, which can be returned by getImagePlus() or displayed by show() |
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 |
---|
protected int[][] m_data
protected java.lang.String[] m_sliceLabels
Constructor Detail |
---|
protected MTBImageInt(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 java.lang.String getCurrentSliceLabel()
getCurrentSliceLabel
in class MTBImage
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 topublic void setCurrentSliceLabel(java.lang.String label)
setCurrentSliceLabel
in class MTBImage
label
- protected void updateImagePlus()
updateImagePlus
in class MTBImage
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |