T - primitive array type of cell data, e.g. short[].public static class GridDataAccessImp.VolatileCells<T,A extends net.imglib2.img.basictypeaccess.volatiles.VolatileArrayDataAccess<?>> extends Object
Cells in a CellImg.| Constructor and Description |
|---|
VolatileCells(net.imglib2.img.cell.AbstractCellImg<?,A,? extends net.imglib2.img.cell.Cell<A>,?> cellImg) |
| 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) |
public VolatileCells(net.imglib2.img.cell.AbstractCellImg<?,A,? extends net.imglib2.img.cell.Cell<A>,?> cellImg)
public T get()
GridDataAccessnull if data is not valid.public void fwd(int d)
fwd in interface GridDataAccess<T>public void setPosition(int position,
int d)
setPosition in interface GridDataAccess<T>public void setPosition(int[] position)
setPosition in interface GridDataAccess<T>public int[] getPosition()
getPosition in interface GridDataAccess<T>public int cellSize(int d)
GridDataAccessd.
Cells on the max border of the image may be truncated and may therefore have
different size.cellSize in interface GridDataAccess<T>d - dimension indexpublic int cellSize(int d,
int cellGridPosition)
GridDataAccessd. 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.cellSize in interface GridDataAccess<T>d - dimension indexcellGridPosition - grid coordinates of the cell in dimension d.d.public int imgSize(int d)
GridDataAccessd in pixels. Note, that this
is the number of pixels in all cells combined, not the number of cells!imgSize in interface GridDataAccess<T>d - dimension indexCopyright © 2018–2025 BigDataViewer. All rights reserved.