| Modifier and Type | Class and Description |
|---|---|
static class |
SCIFIOMetadataTools.AxisValue
Helper class that pairs an AxisType with a length.
|
| Modifier and Type | Method and Description |
|---|---|
static <M extends Metadata> |
castMeta(Metadata meta)
Casts the provided Metadata object to the generic type of this method.
|
static int |
guessInterleavedAxisCount(List<net.imagej.axis.CalibratedAxis> axes)
Guesses at a reasonable default interleaved axis count for the given list
of dimensional axes.
|
static int |
guessPlanarAxisCount(List<net.imagej.axis.CalibratedAxis> axes)
Guesses at a reasonable default planar axis count for the given list of
dimensional axes.
|
static String[] |
keys(Hashtable<String,Object> meta)
Gets a sorted list of keys from the given hashtable.
|
static void |
merge(Map<String,Object> src,
Map<String,Object> dest,
String prefix)
Merges the given lists of metadata, prepending the specified prefix for the
destination keys.
|
static long[] |
modifyPlanar(int imageIndex,
Metadata meta,
long... values)
Replaces the first values.length of the provided Metadata's planar axes
with the values.
|
static long[] |
modifyPlanar(int imageIndex,
Metadata meta,
SCIFIOMetadataTools.AxisValue... axes)
Iterates over the provided Metadata's planar axes, replacing any instances
of axes with the paired values.
|
static Metadata |
unwrapMetadata(Metadata meta)
Unwraps the provided
Metadata class if it has been wrapped in
MetadataWrapper(s). |
static void |
verifyMinimumPopulated(Metadata src,
org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> out)
Checks whether the given metadata object has the minimum metadata populated
to successfully describe an Image.
|
static void |
verifyMinimumPopulated(Metadata src,
org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> out,
int imageIndex)
Checks whether the given metadata object has the minimum metadata populated
to successfully describe the nth Image.
|
static void |
verifyMinimumPopulated(Metadata src,
org.scijava.io.location.Location loc) |
static void |
verifyMinimumPopulated(Metadata src,
org.scijava.io.location.Location loc,
int imageIndex) |
static boolean |
wholePlane(int imageIndex,
Metadata meta,
net.imglib2.Interval bounds)
Returns true if the provided axes correspond to a complete image plane
|
static boolean |
wholeRow(int imageIndex,
Metadata meta,
net.imglib2.Interval bounds)
Returns true if the provided axes correspond to a complete image row
|
public static boolean wholePlane(int imageIndex,
Metadata meta,
net.imglib2.Interval bounds)
public static boolean wholeRow(int imageIndex,
Metadata meta,
net.imglib2.Interval bounds)
public static long[] modifyPlanar(int imageIndex,
Metadata meta,
long... values)
public static long[] modifyPlanar(int imageIndex,
Metadata meta,
SCIFIOMetadataTools.AxisValue... axes)
public static <M extends Metadata> M castMeta(Metadata meta)
Usage: To cast a Metadata instance to ConcreteMetadata, use:
SCIFIOMetadataTools.<ConcreteMetadata>castMeta(meta).
public static Metadata unwrapMetadata(Metadata meta)
Metadata class if it has been wrapped in
MetadataWrapper(s).meta - Metadata instance to unwrappublic static void verifyMinimumPopulated(Metadata src, org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> out) throws FormatException
FormatException - if there is a missing metadata field, or the
metadata object is uninitializedpublic static void verifyMinimumPopulated(Metadata src, org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> out, int imageIndex) throws FormatException
FormatException - if there is a missing metadata field, or the
metadata object is uninitializedpublic static void verifyMinimumPopulated(Metadata src, org.scijava.io.location.Location loc) throws FormatException
FormatExceptionpublic static void verifyMinimumPopulated(Metadata src, org.scijava.io.location.Location loc, int imageIndex) throws FormatException
FormatExceptionpublic static int guessPlanarAxisCount(List<net.imagej.axis.CalibratedAxis> axes)
The heuristic looks for the first index following both Axes.X and
Axes.Y. If the list does not contain both X and Y
then the guess will equal the total number of axes.
public static int guessInterleavedAxisCount(List<net.imagej.axis.CalibratedAxis> axes)
The heuristic looks for the last index preceding both Axes.X and
Axes.Y. If the list does not contain either X or Y
then the guess will equal the total number of axes.
public static void merge(Map<String,Object> src, Map<String,Object> dest, String prefix)
Copyright © 2011–2026 SCIFIO. All rights reserved.