public final class FinalDimensions extends Object implements Dimensions
Modifier | Constructor and Description |
---|---|
|
FinalDimensions(Dimensions dimensions)
Create a FinalDimensions with a defined size
|
|
FinalDimensions(int... dimensions)
Create a FinalDimensions with a defined size
|
|
FinalDimensions(long... dimensions)
Create a FinalDimensions with a defined size
|
protected |
FinalDimensions(long[] dimensions,
boolean copy)
Protected constructor that can re-use the passed position array.
|
Modifier and Type | Method and Description |
---|---|
long |
dimension(int d)
Get the number of pixels in a given dimension d.
|
void |
dimensions(long[] dims)
Write the number of pixels in each dimension into long[].
|
boolean |
equals(Object obj) |
int |
hashCode() |
int |
numDimensions()
Gets the space's number of dimensions.
|
String |
toString() |
static FinalDimensions |
wrap(long[] dimensions)
Create a FinalDimensions object that stores its coordinates in the
provided position array.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
protected FinalDimensions(long[] dimensions, boolean copy)
dimensions
- array used to store the position.copy
- flag indicating whether position array should be duplicated.public FinalDimensions(long... dimensions)
dimensions
- the sizepublic FinalDimensions(int... dimensions)
dimensions
- the sizepublic FinalDimensions(Dimensions dimensions)
dimensions
- the sizepublic int numDimensions()
EuclideanSpace
numDimensions
in interface EuclideanSpace
public void dimensions(long[] dims)
Dimensions
dimensions
in interface Dimensions
public long dimension(int d)
Dimensions
dimension
in interface Dimensions
public static FinalDimensions wrap(long[] dimensions)
dimensions
- array to use for storing the position.Copyright © 2015–2022 ImgLib2. All rights reserved.