de.unihalle.informatik.MiToBo.core.datatypes.images
Interface MTBImageManipulator

All Known Implementing Classes:
MTBImage, MTBImageByte, MTBImageDouble, MTBImageFloat, MTBImageInt, MTBImageRGB, MTBImageShort, MTBImageWindow

public interface MTBImageManipulator


Method Summary
 int getSizeC()
          Get size of c(hannel)-dimension
 int getSizeT()
          Get size of t(ime)-dimension
 int getSizeX()
          Get size of x-dimension
 int getSizeY()
          Get size of y-dimension
 int getSizeZ()
          Get size of z-dimension
 double getStepsizeT()
          Get the stepsize in t-dimension (timestep)
 double getStepsizeX()
          Get the physical size of a voxel (stepsize) in x-dimension
 double getStepsizeY()
          Get the physical size of a voxel (stepsize) in y-dimension
 double getStepsizeZ()
          Get the physical size of a voxel (stepsize) in z-dimension
 java.lang.String getTitle()
          Get title string
 MTBImage.MTBImageType getType()
          Get data type
 java.lang.String getUnitT()
          Get the unit of the t-dimension
 java.lang.String getUnitX()
          Get the unit of the x-dimension
 java.lang.String getUnitY()
          Get the unit of the y-dimension
 java.lang.String getUnitZ()
          Get the unit of the z-dimension
 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) as a Double
 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) as an Integer
 void putValueDouble(int x, int y, int z, int t, int c, double value)
          Set the value of the 5D image at coordinate (x,y,z,t,c) using a Double
 void putValueInt(int x, int y, int z, int t, int c, int value)
          Set the value of the 5D image at coordinate (x,y,z,t,c) using an Integer
 

Method Detail

getSizeC

int getSizeC()
Get size of c(hannel)-dimension

Returns:
size of c(hannel)-dimension

getSizeT

int getSizeT()
Get size of t(ime)-dimension

Returns:
size of t(ime)-dimension

getSizeX

int getSizeX()
Get size of x-dimension

Returns:
size of x-dimension

getSizeY

int getSizeY()
Get size of y-dimension

Returns:
size of y-dimension

getSizeZ

int getSizeZ()
Get size of z-dimension

Returns:
size of z-dimension

getStepsizeT

double getStepsizeT()
Get the stepsize in t-dimension (timestep)

Returns:
time stepsize

getStepsizeX

double getStepsizeX()
Get the physical size of a voxel (stepsize) in x-dimension

Returns:
physical voxel size in x-dimension

getStepsizeY

double getStepsizeY()
Get the physical size of a voxel (stepsize) in y-dimension

Returns:
physical voxel size in y-dimension

getStepsizeZ

double getStepsizeZ()
Get the physical size of a voxel (stepsize) in z-dimension

Returns:
physical voxel size in z-dimension

getTitle

java.lang.String getTitle()
Get title string

Returns:

getType

MTBImage.MTBImageType getType()
Get data type

Returns:
data type ID

getUnitT

java.lang.String getUnitT()
Get the unit of the t-dimension

Returns:
String of t-dimension's unit

getUnitX

java.lang.String getUnitX()
Get the unit of the x-dimension

Returns:
String of x-dimension's unit

getUnitY

java.lang.String getUnitY()
Get the unit of the y-dimension

Returns:
String of y-dimension's unit

getUnitZ

java.lang.String getUnitZ()
Get the unit of the z-dimension

Returns:
String of z-dimension's unit

getValueDouble

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) as a Double

Parameters:
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)
Returns:
voxel value

getValueInt

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) as an Integer

Parameters:
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)
Returns:
voxel value

putValueDouble

void putValueDouble(int x,
                    int y,
                    int z,
                    int t,
                    int c,
                    double value)
Set the value of the 5D image at coordinate (x,y,z,t,c) using a Double

Parameters:
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 to

putValueInt

void putValueInt(int x,
                 int y,
                 int z,
                 int t,
                 int c,
                 int value)
Set the value of the 5D image at coordinate (x,y,z,t,c) using an Integer

Parameters:
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 to