|
||||||||||
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.MTBImageRGB
public class MTBImageRGB
Class for easy access to RGB (hyper)stacks. This image consists of three separate byte images, 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 byte[][] |
m_dataB
reference to the ImagePlus pixel data (blue channel) |
protected byte[][] |
m_dataG
reference to the ImagePlus pixel data (green channel) |
protected byte[][] |
m_dataR
reference to the ImagePlus pixel data (red channel) |
protected 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 |
MTBImageRGB(ij.ImagePlus img)
Constructor |
protected |
MTBImageRGB(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
int sizeC)
Constructor |
Method Summary | |
---|---|
void |
fillWhite()
|
MTBImage |
getChannelB()
Get a reference to the blue channel image. |
MTBImage |
getChannelG()
Get a reference to the green channel image. |
MTBImage |
getChannelR()
Get a reference to the red channel image. |
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 (all channels) as double |
int[] |
getMinMaxInt()
Get minimum and maximum value of the image as int |
int[] |
getValue(int x,
int y)
Get RGB value from the specified position in the actual slice. |
int[] |
getValue(int x,
int y,
int z,
int t,
int c)
Get RGB value from the specified position. |
int |
getValueB(int x,
int y)
Get blue value from the specified position in the actual slice. |
int |
getValueB(int x,
int y,
int z,
int t,
int c)
Get blue value from the specified position. |
double |
getValueDouble(int x,
int y)
Get the value of the actual slice at coordinate (x,y) as a 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 |
getValueG(int x,
int y)
Get green value from the specified position in the actual slice. |
int |
getValueG(int x,
int y,
int z,
int t,
int c)
Get green value from the specified position. |
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 |
int |
getValueR(int x,
int y)
Get red value from the specified position in the actual slice. |
int |
getValueR(int x,
int y,
int z,
int t,
int c)
Get red value from the specified position. |
void |
putValue(int x,
int y,
int red,
int green,
int blue)
Put a new RGB value at the specified position in the actual slice. |
void |
putValue(int x,
int y,
int z,
int t,
int c,
int red,
int green,
int blue)
Put a new RGB value at the specified position. |
void |
putValueB(int x,
int y,
int blue)
Put a new blue value at the specified position in the actual slice. |
void |
putValueB(int x,
int y,
int z,
int t,
int c,
int blue)
Put a new blue value at the specified position. |
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 |
putValueG(int x,
int y,
int green)
Put a new green value at the specified position in the actual slice. |
void |
putValueG(int x,
int y,
int z,
int t,
int c,
int green)
Put a new green value at the specified position. |
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 |
putValueR(int x,
int y,
int red)
Put a new red value at the specified position in the actual slice. |
void |
putValueR(int x,
int y,
int z,
int t,
int c,
int red)
Put a new red value at the specified position. |
void |
setCurrentSliceLabel(String label)
Set the slice label of the slice specified by the actual slice index |
void |
setStepsizeT(double stepsize)
Set the stepsize in t-dimension (timestep) |
void |
setStepsizeX(double stepsize)
Set the physical size of a voxel (stepsize) in x-dimension |
void |
setStepsizeY(double stepsize)
Set the physical size of a voxel (stepsize) in y-dimension |
void |
setStepsizeZ(double stepsize)
Set the physical size of a voxel (stepsize) in z-dimension |
void |
setTitle(String title)
Set the images title |
void |
setUnitT(String unit)
Set the unit of the t-dimension |
void |
setUnitX(String unit)
Set the unit of the x-dimension |
void |
setUnitY(String unit)
Set the unit of the y-dimension |
void |
setUnitZ(String unit)
Set the unit of the z-dimension |
protected void |
updateImagePlus()
Creates or updates an ImagePlus of RGB type from the MTBImage RGB(3 byte-channels) data, 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 byte[][] m_dataR
protected byte[][] m_dataG
protected byte[][] m_dataB
protected String[] m_sliceLabels
Constructor Detail |
---|
protected MTBImageRGB(ij.ImagePlus img)
img
- protected MTBImageRGB(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 void setTitle(String title)
setTitle
in class MTBImage
title
- public ij.ImagePlus getImagePlus()
getImagePlus
in class MTBImage
protected void updateImagePlus()
updateImagePlus
in class MTBImage
public String getCurrentSliceLabel()
getCurrentSliceLabel
in class MTBImage
public void setCurrentSliceLabel(String label)
setCurrentSliceLabel
in class MTBImage
label
- public void setStepsizeX(double stepsize)
setStepsizeX
in class MTBImage
stepsize
- public void setStepsizeY(double stepsize)
setStepsizeY
in class MTBImage
stepsize
- public void setStepsizeZ(double stepsize)
setStepsizeZ
in class MTBImage
stepsize
- public void setStepsizeT(double stepsize)
setStepsizeT
in class MTBImage
stepsize
- public void setUnitX(String unit)
setUnitX
in class MTBImage
unit
- String of x-dimension unitpublic void setUnitY(String unit)
setUnitY
in class MTBImage
unit
- String of y-dimension unitpublic void setUnitZ(String unit)
setUnitZ
in class MTBImage
unit
- String of z-dimension unitpublic void setUnitT(String unit)
setUnitT
in class MTBImage
unit
- String of t-dimension unitpublic double[] getMinMaxDouble()
getMinMaxDouble
in class MTBImage
public int[] getMinMaxInt()
getMinMaxInt
in class MTBImage
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 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)
getValueDouble
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, 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 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)
getValueInt
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)
public 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)RGB
- value (three byte-values) stored in an int (like ImageJ), then casted to doublepublic 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, double value)
putValueDouble
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)RGB
- value (three byte-values) stored in an int (like ImageJ), then casted to doublepublic 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)RGB
- value (three byte-values) stored in an int (like ImageJ)public 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 value)
putValueInt
in class MTBImage
x
- x-coordinate ranging from 0 to (sizeX - 1)y
- y-coordinate ranging from 0 to (sizeY - 1)RGB
- value (three byte-values) stored in an int (like ImageJ)public int[] getValue(int x, int y, int z, int t, int c)
x
- y
- z
- t
- c
-
public int[] getValue(int x, int y)
x
- y
-
public void putValue(int x, int y, int z, int t, int c, int red, int green, int blue)
x
- y
- z
- t
- c
- red
- green
- blue
- public void putValue(int x, int y, int red, int green, int blue)
x
- y
- red
- green
- blue
- public int getValueR(int x, int y, int z, int t, int c)
x
- y
- z
- t
- c
-
public int getValueR(int x, int y)
x
- y
-
public int getValueG(int x, int y, int z, int t, int c)
x
- y
- z
- t
- c
-
public int getValueG(int x, int y)
x
- y
-
public int getValueB(int x, int y, int z, int t, int c)
x
- y
- z
- t
- c
-
public int getValueB(int x, int y)
x
- y
-
public void putValueR(int x, int y, int z, int t, int c, int red)
x
- y
- z
- t
- c
- red
- public void putValueR(int x, int y, int red)
x
- y
- red
- public void putValueG(int x, int y, int z, int t, int c, int green)
x
- y
- z
- t
- c
- green
- public void putValueG(int x, int y, int green)
x
- y
- green
- public void putValueB(int x, int y, int z, int t, int c, int blue)
x
- y
- z
- t
- c
- blue
- public void putValueB(int x, int y, int blue)
x
- y
- blue
- public MTBImage getChannelR()
public MTBImage getChannelG()
public MTBImage getChannelB()
public void fillWhite()
fillWhite
in class MTBImage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |