public abstract class Grid
extends java.lang.Object
Constructor and Description |
---|
Grid() |
Modifier and Type | Method and Description |
---|---|
abstract Grid |
clone()
Deep copy the object
|
int |
getNumberOfElements()
Get number of float elements
|
double[] |
getOrigin() |
int[] |
getSize() |
double[] |
getSpacing() |
abstract float |
getValue(int[] idx) |
void |
setOrigin(double... origin)
Set the array origin's world coordinates, given in real world units (usually mm) of the first pixel's center (excluding borders), in all dimensions.
|
void |
setSpacing(double... spacing)
Set the array's spacings.
|
abstract void |
show()
Show the object in an imageJ window
|
abstract void |
show(java.lang.String s)
Show the object in an imageJ window with title
|
abstract java.lang.String |
toString()
Serialize the grid's content to a String.
|
public int[] getSize()
public abstract float getValue(int[] idx)
public double[] getSpacing()
public void setSpacing(double... spacing)
public double[] getOrigin()
public void setOrigin(double... origin)
public abstract void show()
public abstract void show(java.lang.String s)
public abstract Grid clone()
clone
in class java.lang.Object
public int getNumberOfElements()
public abstract java.lang.String toString()
toString
in class java.lang.Object