public class Grid1D extends Grid
Grid
Constructor and Description |
---|
Grid1D(float[] buffer) |
Grid1D(float[] buffer,
int offset,
int width) |
Grid1D(Grid1D input) |
Grid1D(int width) |
Modifier and Type | Method and Description |
---|---|
void |
addAtIndex(int i,
float val) |
Grid |
clone()
Deep copy the object
|
void |
divideAtIndex(int i,
float val) |
float |
getAtIndex(int i) |
float[] |
getBuffer()
EXPLYCITELY copies the elements and returns the copied float array!
Thus, writing on the returned array does not mean writing onto the Grid1D buffer!
* @return
|
Grid1D |
getSubGrid(int startIndex,
int length)
EXPLYCITELY copies the elements requested by the subgrid range and returns the copied values in a new Grid1D.
|
float |
getValue(int[] idx) |
double |
indexToPhysical(double i) |
void |
initialize() |
void |
multiplyAtIndex(int i,
float val) |
double |
physicalToIndex(double x) |
void |
setAtIndex(int i,
float val) |
void |
show()
Show the object in an imageJ window
|
void |
show(java.lang.String s)
Show the object in an imageJ window with title
|
void |
subAtIndex(int i,
float val) |
java.lang.String |
toString()
Serialize the grid's content to a String.
|
getNumberOfElements, getOrigin, getSize, getSpacing, setOrigin, setSpacing
public Grid1D(int width)
public Grid1D(float[] buffer, int offset, int width)
public Grid1D(float[] buffer)
public Grid1D(Grid1D input)
public void initialize()
public float[] getBuffer()
public double indexToPhysical(double i)
public double physicalToIndex(double x)
public float getAtIndex(int i)
public void setAtIndex(int i, float val)
public void addAtIndex(int i, float val)
public void subAtIndex(int i, float val)
public void multiplyAtIndex(int i, float val)
public void divideAtIndex(int i, float val)
public java.lang.String toString()
Grid
public Grid1D getSubGrid(int startIndex, int length)
public void show(java.lang.String s)
Grid