public class ImageSeries extends Dataset
In the image series, every timepoint is expected to have the same number of channels and Z-slices (by default for an IM acquisition).
Similarly for a given timepoint, each channel is expected to have the same number of Z-slices.
If this is not the case (ex: single image files deleted), missing Z-slices and/or channels and/or timepoints are set to null.
There are different ways to access the ImagePlane in an ImageSeries.
Using the public images
attribute and the corresponding 0-based positional array indexes.
Using the getImagePlane(int, int, int)
and the c,z,t indexes as appearing in the IM filenames.
When the ImageSeries is displayed as a hyperstack, the hyperstack positional index will differ from the IM positional index, but this is taken care of.
Modifier and Type | Field and Description |
---|---|
ImagePlane[][][] |
images
Multi-dimensional array containing the imagePlanes ordered by t,c,z.
|
listImages
Constructor and Description |
---|
ImageSeries(ImagePlane[] listImages)
Create an ImageSerie from a list of ImagePlane.
|
Modifier and Type | Method and Description |
---|---|
ImagePlane |
getFirstNonNullImagePlane()
Returns the first non-null ImagePlane in the ImageSeries.
|
ImagePlane |
getImagePlane(int n)
Return the ImagePlane at (0-based) index n, if the planes were organised in c,z,t order and "spaced" accordingly (ie for hyperstacks).
|
ImagePlane |
getImagePlane(int t,
int c,
int z)
Return the ImagePlane given the 1-based indexes for C,Z,T as appearing in the image filename.
|
ImagePlane[] |
getListOfImagePlanes()
Get the list of ImagePlane in this ImageSeries, ordered using the default c,z,t order.
|
int |
getNumberOfHyperstackPlanes()
Return the number of planes if the ImageSeries was visualised as a hyperstack.
|
String |
getSeriesId()
Return the SeriesId formed as "well:subposition" ex: "A001:2".
|
int |
getSubPosition()
Return the subposition associated to this ImageSeries.
|
Well |
getWell()
Return the well associated to this ImageSeries.
|
String |
getWellId()
Return the well Id of the associated well, ex : "A001".
|
boolean |
hasMissingHyperstackPlanes()
Return true if this ImageSeries is missing some ImagePlane for given c,z or t positions.
|
int[] |
indexIMToPositional(int t,
int c,
int z)
Convert (t,c,z)-indexes as appearing in IM filenames to their actual positional index in the internal lists of timepoints, channels and Z-slices.
|
int[] |
indexToPositional(int n)
Convert from a 0-based index (n) to the 0-based (t,c,z) positional indexes in the internal list of dimensions.
|
String |
toString()
String representation of an ImageSeries "ImageSeries (n images): directoryName"
|
getDirectory, getDirectoryName, getDirectoryPath, getListOfImagePlanes, getNumberOfChannels, getNumberOfExistingImagePlanes, getNumberOfImageSeries, getNumberOfPlanesPerSeries, getNumberOfSubpositions, getNumberOfTimepoints, getNumberOfWells, getNumberOfZslices, getSetChannels, getSetPlateColumns, getSetPlateRows, getSetSubpositions, getSetTimepoints, getSetWells, getSetZ, getSortOrder, groupByImageSeries
public final ImagePlane[][][] images
public ImageSeries(ImagePlane[] listImages)
public Well getWell()
public String getWellId()
public String getSeriesId()
public int getSubPosition()
public int[] indexIMToPositional(int t, int c, int z)
public int[] indexToPositional(int n)
n
- theoretical 0-based positional index, if the planes were sorted in the default CZT order (ie channel varying faster, then Z then T)IllegalArgumentException
- if n is not in range (0, nHyperstackPlanes-1).public ImagePlane getImagePlane(int t, int c, int z)
public ImagePlane getImagePlane(int n)
getImagePlane
in class Dataset
IllegalArgumentException
- if n is not in range (0, nHyperstackPlanes-1).public ImagePlane getFirstNonNullImagePlane()
Error
- if all ImagePlane are null, this is theoretically impossible, as instantiating an empty ImageSeries readily throws an error.public int getNumberOfHyperstackPlanes()
public boolean hasMissingHyperstackPlanes()
public ImagePlane[] getListOfImagePlanes()
getListOfImagePlanes
in class Dataset