public class MTBImageRGB extends MTBImage
MTBImage.FactoryMethod, MTBImage.MTBImageFactory, MTBImage.MTBImageType
Modifier and Type | Field and Description |
---|---|
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)
|
private MTBImageByte |
m_imgB
reference to the red channel MTBImage
|
private MTBImageByte |
m_imgG
reference to the red channel MTBImage
|
private MTBImageByte |
m_imgR
reference to the red channel MTBImage
|
protected String[] |
m_sliceLabels
slice labels
|
calibration, m_currentC, m_currentSliceIdx, m_currentT, m_img, m_imgStack, m_sizeC, m_sizeStack, m_sizeT, m_sizeX, m_sizeY, m_sizeZ, m_type, UNTITLED, xml
Modifier | Constructor and Description |
---|---|
protected |
MTBImageRGB(ij.ImagePlus img)
Constructor
|
protected |
MTBImageRGB(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
int sizeC)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
fillWhite()
Set all pixels of the image to white, i.e. the maximal available value.
|
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()
|
adoptSliceLabels, close, convertType, convertType, copyPhysicalProperties, createMTBImage, createMTBImage, createMTBImageByte, drawCircle2D, drawFilledCircle2D, drawLine2D, drawLine2D, drawPoint2D, duplicate, duplicate, duplicate, equals, equalSize, fillBlack, getCalibration, getCurrentSlice, getCurrentSlice, getCurrentSliceCoords, getCurrentSliceIndex, getCurrentZStackCoords, getImagePart, getImagePart, getSizeC, getSizeStack, getSizeT, getSizeX, getSizeY, getSizeZ, getSlice, getSlice, getSliceLabel, getStepsizeT, getStepsizeX, getStepsizeY, getStepsizeZ, getTitle, getTitleRunning, getType, getTypeMax, getTypeMin, getTypeName, getUnitT, getUnitX, getUnitY, getUnitZ, getXML, hasImagePlus, isValidType, keyPressed, keyReleased, keyTyped, ordinalToType, scaleValues, setCalibration, setCalibrationFromUnderlyingIJImage, setCurrentSlice, setCurrentSliceCoords, setCurrentSliceIndex, setCurrentZStackCoordinates, setImagePart, setSlice, setSliceLabel, setXML, show, stringToType, toString, updateAndRepaintWindow, updateImageSize_ImgToProp, updatePhysProperties_ImgToProp, updatePhysProperties_PropToImg
protected byte[][] m_dataR
protected byte[][] m_dataG
protected byte[][] m_dataB
private MTBImageByte m_imgR
private MTBImageByte m_imgG
private MTBImageByte m_imgB
protected String[] m_sliceLabels
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-dimensionpublic void setTitle(String 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
- Stepsize in x-dimension.public void setStepsizeY(double stepsize)
setStepsizeY
in class MTBImage
stepsize
- Stepsize in y-dimension.public void setStepsizeZ(double stepsize)
setStepsizeZ
in class MTBImage
stepsize
- Stepsize in z-dimension.public void setStepsizeT(double stepsize)
setStepsizeT
in class MTBImage
stepsize
- Stepsize in t-dimension.public void setUnitX(String unit)
public void setUnitY(String unit)
public void setUnitZ(String unit)
public void setUnitT(String unit)
public 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()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.