public class MTBImageInt extends MTBImage
MTBImage.FactoryMethod, MTBImage.MTBImageFactory, MTBImage.MTBImageType
Modifier and Type | Field and Description |
---|---|
protected int[][] |
m_data
image data
|
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 |
MTBImageInt(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
int sizeC)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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(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()
|
adoptSliceLabels, close, convertType, convertType, copyPhysicalProperties, createMTBImage, createMTBImage, createMTBImageByte, drawCircle2D, drawFilledCircle2D, drawLine2D, drawLine2D, drawPoint2D, duplicate, duplicate, duplicate, equals, equalSize, fillBlack, fillWhite, 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, setStepsizeT, setStepsizeX, setStepsizeY, setStepsizeZ, setTitle, setUnitT, setUnitX, setUnitY, setUnitZ, setXML, show, stringToType, toString, updateAndRepaintWindow, updateImageSize_ImgToProp, updatePhysProperties_ImgToProp, updatePhysProperties_PropToImg
protected int[][] m_data
protected String[] m_sliceLabels
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-dimensionpublic 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 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 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 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 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 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 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 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 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 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 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 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 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 int[] getMinMaxInt()
getMinMaxInt
in class MTBImage
public double[] getMinMaxDouble()
getMinMaxDouble
in class MTBImage
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.