public class Cell<A> extends Object implements Serializable
AbstractCellImg
.Modifier and Type | Field and Description |
---|---|
protected int[] |
dimensions |
protected long[] |
max |
protected long[] |
min |
protected int |
n |
protected int[] |
steps |
Constructor and Description |
---|
Cell(int[] dimensions,
long[] min,
A data) |
Modifier and Type | Method and Description |
---|---|
int |
dimension(int d)
Get the number of pixels in a given dimension d.
|
void |
dimensions(int[] dim)
Write the number of pixels in each dimension into long[].
|
A |
getData()
Get the basic type array that stores this cells pixels.
|
int |
globalPositionToIndex(long[] position)
Compute the index in the underlying flat array of this cell which
corresponds to the specified global
position . |
long |
indexToGlobalPosition(int index,
int d) |
void |
indexToGlobalPosition(int index,
long[] position) |
long |
min(int d) |
void |
min(long[] minimum)
Write the minimum of each dimension into long[].
|
long |
size() |
protected final int n
protected final int[] dimensions
protected final int[] steps
protected final long[] min
protected final long[] max
public Cell(int[] dimensions, long[] min, A data)
public A getData()
public long size()
public long indexToGlobalPosition(int index, int d)
public void indexToGlobalPosition(int index, long[] position)
public int globalPositionToIndex(long[] position)
position
.position
- a global positionpublic long min(int d)
d
- dimensionpublic void min(long[] minimum)
minimum
- public int dimension(int d)
d
- public void dimensions(int[] dim)
dim
- Copyright © 2009–2018 ImgLib2. All rights reserved.