T - primitive array type of cell data, e.g. short[].public interface GridDataAccess<T>
| Modifier and Type | Method and Description |
|---|---|
int |
cellSize(int d)
Get the size of a standard cell in dimension
d. |
int |
cellSize(int d,
int cellGridPosition)
From the position of a cell in the grid, compute the size of the cell in
dimension
d. |
void |
fwd(int d) |
T |
get()
Get the primitive array with data of grid cell at current position.
|
int[] |
getPosition() |
int |
imgSize(int d)
Get the image size in dimension
d in pixels. |
void |
setPosition(int[] position) |
void |
setPosition(int position,
int d) |
void fwd(int d)
void setPosition(int position,
int d)
void setPosition(int[] position)
int[] getPosition()
T get()
null if data is not valid.int cellSize(int d)
d.
Cells on the max border of the image may be truncated and may therefore have
different size.d - dimension indexint cellSize(int d,
int cellGridPosition)
d. The size will be the standard cell size, unless the
cell is at the border of the image, in which case it might be truncated.d - dimension indexcellGridPosition - grid coordinates of the cell in dimension d.d.int imgSize(int d)
d in pixels. Note, that this
is the number of pixels in all cells combined, not the number of cells!d - dimension indexCopyright © 2018–2025 BigDataViewer. All rights reserved.