T - type of the data contained in the DataBlockpublic interface DataBlock<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DataBlock.DataBlockFactory<T>
Factory for creating
DataBlock<T>. |
| Modifier and Type | Method and Description |
|---|---|
T |
getData()
Returns the data object held by this data block.
|
long[] |
getGridPosition()
Returns the position of this data block on the block grid relative to dataset.
|
int |
getNumElements()
Returns the number of elements in this
DataBlock. |
static int |
getNumElements(int[] size)
Returns the number of elements in a box of given size.
|
int[] |
getSize()
Returns the size of this data block.
|
int[] getSize()
The size of a data block is expected to be smaller than or equal to the spacing of the block grid. The dimensionality of size is expected to be equal to the dimensionality of the dataset. Consistency is not enforced.
long[] getGridPosition()
The dimensionality of the grid position is expected to be equal to the dimensionality of the dataset. Consistency is not enforced.
T getData()
int getNumElements()
DataBlock. This number is
not necessarily equal getNumElements(getSize()).static int getNumElements(int[] size)
size - the sizeCopyright © 2017–2026 Saalfeld Lab. All rights reserved.