public class Cell<A> extends Object implements Interval, 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 |
---|---|
long |
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 int[].
|
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 |
max(int d)
Get the maximum in dimension d.
|
long |
min(int d)
Get the minimum in dimension d.
|
int |
numDimensions()
Gets the space's number of dimensions.
|
long |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
max, max, maxAsLongArray, maxAsPoint, min, min, minAsLongArray, minAsPoint, realMax, realMin
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
allPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
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 int numDimensions()
EuclideanSpace
numDimensions
in interface EuclideanSpace
public long min(int d)
public long max(int d)
public long dimension(int d)
dimension
in interface Dimensions
dimension
in interface Interval
d
- public void dimensions(int[] dim)
dim
- Copyright © 2015–2022 ImgLib2. All rights reserved.