public class ImageSliceIndex extends Object
Constructor and Description |
---|
ImageSliceIndex()
Initializes a slice index where all values are -1
|
ImageSliceIndex(ImageSliceIndex other)
Creates a copy
|
ImageSliceIndex(int c,
int z,
int t)
Initializes a slice index
|
Modifier and Type | Method and Description |
---|---|
ImageSliceIndex |
add(int zct)
Adds the value to all components
|
boolean |
equals(Object o) |
int |
getC() |
int |
getT() |
int |
getZ() |
int |
hashCode() |
int |
oneSliceIndexToOneStackIndex(ij.ImagePlus imagePlus)
Interprets this index as one-based index and returns the appropriate stack index
|
int |
oneSliceIndexToOneStackIndex(int nChannels,
int nSlices,
int nFrames)
Interprets this index as one-based index and returns the appropriate stack index
|
ImageSliceIndex |
oneToZero() |
void |
setC(int c) |
void |
setT(int t) |
void |
setZ(int z) |
String |
toString() |
int |
zeroSliceIndexToOneStackIndex(ij.ImagePlus imagePlus)
Converts this zero-based index into a one-based index and returns a one-based stack index
|
int |
zeroSliceIndexToOneStackIndex(int nChannels,
int nSlices,
int nFrames)
Converts this zero-based index into a one-based index and returns a one-based stack index
|
ImageSliceIndex |
zeroToOne() |
public ImageSliceIndex(int c, int z, int t)
c
- channelz
- Z-indext
- framepublic ImageSliceIndex()
public ImageSliceIndex(ImageSliceIndex other)
other
- the originalpublic int getZ()
public void setZ(int z)
public int getC()
public void setC(int c)
public int getT()
public void setT(int t)
public int oneSliceIndexToOneStackIndex(ij.ImagePlus imagePlus)
imagePlus
- the reference imagepublic int zeroSliceIndexToOneStackIndex(ij.ImagePlus imagePlus)
imagePlus
- the reference imagepublic int oneSliceIndexToOneStackIndex(int nChannels, int nSlices, int nFrames)
nChannels
- number of channelsnSlices
- number of slicesnFrames
- number of framespublic int zeroSliceIndexToOneStackIndex(int nChannels, int nSlices, int nFrames)
nChannels
- number of channelsnSlices
- number of slicesnFrames
- number of framespublic ImageSliceIndex zeroToOne()
public ImageSliceIndex oneToZero()
public ImageSliceIndex add(int zct)
zct
- the valueCopyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.