public interface ImageMetadata extends org.scijava.Named, HasMetaTable
| Modifier and Type | Method and Description |
|---|---|
void |
addAxis(net.imagej.axis.AxisType axisType,
long value)
As
addAxis(CalibratedAxis, long) using the default calibration
value, per FormatTools.createAxis(AxisType). |
void |
addAxis(net.imagej.axis.CalibratedAxis axis)
Appends the provided
CalibratedAxis to the metadata's list of axes,
with a length of 1. |
void |
addAxis(net.imagej.axis.CalibratedAxis axis,
long value)
Appends the provided CalibratedAxis to the current CalibratedAxis array and
creates a corresponding entry with the specified value in axis lengths.
|
ImageMetadata |
copy() |
void |
copy(ImageMetadata toCopy)
Populates this ImageMetadata using the provided instance.
|
List<net.imagej.axis.CalibratedAxis> |
getAxes()
Returns an array of the types for axes associated with the specified image
index.
|
long[] |
getAxesLengths()
Returns an array of the lengths for axes associated with the specified
image index.
|
long[] |
getAxesLengths(List<net.imagej.axis.CalibratedAxis> axes)
Returns an array of the lengths for axes in the provided CalibratedAxis list.
|
long[] |
getAxesLengthsNonPlanar()
Returns an array of the lengths for the non-planar axes in this image.
|
long[] |
getAxesLengthsPlanar()
Returns an array of the lengths for the planar axes in this image.
|
List<net.imagej.axis.CalibratedAxis> |
getAxesNonPlanar()
Returns an array of the CalibratedAxis that define the number of planes in the
dataset.
|
List<net.imagej.axis.CalibratedAxis> |
getAxesPlanar()
Returns an array of the CalibratedAxis that, together, define the bounds of a
single plane in the dataset.
|
net.imagej.axis.CalibratedAxis |
getAxis(net.imagej.axis.AxisType axisType)
Returns the CalibratedAxis associated with the given type.
|
net.imagej.axis.CalibratedAxis |
getAxis(int axisIndex)
Gets the axis of the (zero-indexed) specified plane.
|
int |
getAxisIndex(net.imagej.axis.AxisType axisType)
As
getAxisIndex(CalibratedAxis) but only requires the
AxisType of the desired axis. |
int |
getAxisIndex(net.imagej.axis.CalibratedAxis axis)
Returns the array index for the specified CalibratedAxis.
|
long |
getAxisLength(net.imagej.axis.AxisType t)
As
getAxisLength(CalibratedAxis) but only requires the
AxisType of the desired axis. |
long |
getAxisLength(net.imagej.axis.CalibratedAxis t)
A convenience method for looking up the length of an axis based on its
type.
|
long |
getAxisLength(int axisIndex)
Gets the length of the (zero-indexed) specified plane.
|
int |
getBitsPerPixel()
Returns the number of valid bits per pixel.
|
int |
getInterleavedAxisCount()
Returns the number of interleaved axes in this image.
|
int |
getPixelType()
Returns the data type associated with a pixel.
|
int |
getPlanarAxisCount()
Returns the number of planar axes in this image.
|
long |
getPlaneCount() |
long |
getPlaneSize()
Returns the size, in bytes, of one plane in this image.
|
Object |
getROIs()
Retrieves the ROIs associated with this image.
|
long |
getSize()
Returns the size, in bytes, of all planes in this image.
|
Object |
getTables()
Retrieves the tables associated with this image.
|
long |
getThumbSizeX()
Returns the width (in pixels) of the thumbnail planes in this image.
|
long |
getThumbSizeY()
Returns the height (in pixels) of the thumbnail planes in this image.
|
boolean |
isFalseColor()
Returns true if we can ignore the color map (if present).
|
boolean |
isIndexed()
Returns true if the planes are stored as indexed color.
|
boolean |
isLittleEndian()
Returns true if each pixel's bytes are in little endian order.
|
boolean |
isMetadataComplete()
Returns true if we are confident that all of the metadata stored within the
image has been parsed.
|
boolean |
isMultichannel()
Returns true if the
Axes.CHANNEL axis is a planar axis. |
boolean |
isOrderCertain()
Returns true if we are confident that the dimension order is correct.
|
boolean |
isThumbnail()
Determines whether or not this image is a lower-resolution copy of another
image.
|
void |
populate(String name,
List<net.imagej.axis.CalibratedAxis> axes,
long[] lengths,
int pixelType,
boolean orderCertain,
boolean littleEndian,
boolean indexed,
boolean falseColor,
boolean metadataComplete)
As
populate(String, List, long[], int, boolean, boolean, boolean, boolean, boolean)
but automatically determines bits per pixel. |
void |
populate(String name,
List<net.imagej.axis.CalibratedAxis> axes,
long[] lengths,
int pixelType,
int bitsPerPixel,
boolean orderCertain,
boolean littleEndian,
boolean indexed,
boolean falseColor,
boolean metadataComplete)
Convenience method for manually populating an ImageMetadata.
|
void |
setAxes(net.imagej.axis.CalibratedAxis... axes)
Sets the Axes types for this image.
|
void |
setAxes(net.imagej.axis.CalibratedAxis[] axes,
long[] axisLengths)
Convenience method to set both the axis types and lengths for this
ImageMetadata.
|
void |
setAxis(int index,
net.imagej.axis.CalibratedAxis axis)
Sets the axis at the specified index, if an axis with a matching type is
not already defined.
|
void |
setAxisLength(net.imagej.axis.AxisType axis,
long length)
As
setAxisLength(CalibratedAxis, long) but requires only the
AxisType. |
void |
setAxisLength(net.imagej.axis.CalibratedAxis axis,
long length)
Sets the length for the specified axis.
|
void |
setAxisLengths(long[] axisLengths)
Sets the lengths of each axis.
|
void |
setAxisType(int index,
net.imagej.axis.AxisType axis)
As
setAxis(int, CalibratedAxis) but using the default calibration
values, per FormatTools.createAxis(AxisType). |
void |
setAxisTypes(net.imagej.axis.AxisType... axisTypes)
Sets the Axes types for this image.
|
void |
setBitsPerPixel(int bitsPerPixel)
Sets the number of valid bits per pixel.
|
void |
setFalseColor(boolean falseColor)
Sets whether or not we can ignore the color map (if present).
|
void |
setIndexed(boolean indexed)
Sets whether or not the planes are stored as indexed color.
|
void |
setInterleavedAxisCount(int count)
Sets the number of interleaved axes in this image.
|
void |
setLittleEndian(boolean littleEndian)
Sets whether or not each pixel's bytes are in little endian order.
|
void |
setMetadataComplete(boolean metadataComplete)
Sets whether or not we are confident that all of the metadata stored within
the image has been parsed.
|
void |
setOrderCertain(boolean orderCertain)
Sets whether or not we are confident that the dimension order is correct.
|
void |
setPixelType(int pixelType)
Sets the data type associated with a pixel.
|
void |
setPlanarAxisCount(int count)
Sets the number of planar axes in this image.
|
void |
setROIs(Object rois)
Sets the ROIs associated with this image.
|
void |
setTables(Object tables)
Sets the tables associated with this image.
|
void |
setThumbnail(boolean thumbnail)
Sets whether or not this image is a lower-resolution copy of another image.
|
void |
setThumbSizeX(long thumbSizeX)
Sets width (in pixels) of thumbnail planes in this image.
|
void |
setThumbSizeY(long thumbSizeY)
Sets height (in pixels) of thumbnail planes in this image.
|
getName, setNamegetTable, setTablevoid setThumbSizeX(long thumbSizeX)
void setThumbSizeY(long thumbSizeY)
void setPixelType(int pixelType)
FormatTools.INT8) are enumerated in FormatTools.void setBitsPerPixel(int bitsPerPixel)
void setOrderCertain(boolean orderCertain)
void setLittleEndian(boolean littleEndian)
void setIndexed(boolean indexed)
void setPlanarAxisCount(int count)
Plane (as returned by
the Reader.openPlane(int, long) methods). This value is necessary to determine
the total plane count for an N-dimensional image, as well as how many
pixels there are per plane.
For example, suppose we have a 4-dimensional image with axes (X, Y, Z, T) and extents (768, 512, 7, 13). If there are two planar axes, then each plane is 768 x 512 and there are 7 x 13 = 91 total planes. But if we have three planar axes, then each plane is 768 x 512 x 7 and there are 13 total planes.
Reader.openPlane(int, long)void setInterleavedAxisCount(int count)
void setFalseColor(boolean falseColor)
void setMetadataComplete(boolean metadataComplete)
void setThumbnail(boolean thumbnail)
void setAxes(net.imagej.axis.CalibratedAxis[] axes, long[] axisLengths)
void setAxisTypes(net.imagej.axis.AxisType... axisTypes)
void setAxes(net.imagej.axis.CalibratedAxis... axes)
void setAxisLengths(long[] axisLengths)
axes.
NB: axes must already exist for this method to be called. Use
setAxes(CalibratedAxis[]) or setAxes(net.imagej.axis.CalibratedAxis[], long[])
void setAxisLength(net.imagej.axis.CalibratedAxis axis, long length)
void setAxisLength(net.imagej.axis.AxisType axis, long length)
setAxisLength(CalibratedAxis, long) but requires only the
AxisType.void setAxis(int index,
net.imagej.axis.CalibratedAxis axis)
List.add(int, Object).void setAxisType(int index,
net.imagej.axis.AxisType axis)
setAxis(int, CalibratedAxis) but using the default calibration
values, per FormatTools.createAxis(AxisType).void setROIs(Object rois)
void setTables(Object tables)
long getSize()
long getPlaneSize()
long getThumbSizeX()
long getThumbSizeY()
net.imagej.axis.CalibratedAxis getAxis(net.imagej.axis.AxisType axisType)
int getPixelType()
FormatTools.INT8) are enumerated in FormatTools.int getBitsPerPixel()
boolean isOrderCertain()
boolean isLittleEndian()
boolean isIndexed()
int getPlanarAxisCount()
int getInterleavedAxisCount()
boolean isMultichannel()
Axes.CHANNEL axis is a planar axis.boolean isFalseColor()
boolean isMetadataComplete()
boolean isThumbnail()
net.imagej.axis.CalibratedAxis getAxis(int axisIndex)
axisIndex - - index of the desired axis within this imagelong getAxisLength(int axisIndex)
axisIndex - - index of the desired axis within this imagelong getAxisLength(net.imagej.axis.CalibratedAxis t)
t - - CalibratedAxis to look uplong getAxisLength(net.imagej.axis.AxisType t)
getAxisLength(CalibratedAxis) but only requires the
AxisType of the desired axis.t - - CalibratedAxis to look upint getAxisIndex(net.imagej.axis.CalibratedAxis axis)
This method can also be used as an existence check for the target CalibratedAxis.
axis - - axis to look upint getAxisIndex(net.imagej.axis.AxisType axisType)
getAxisIndex(CalibratedAxis) but only requires the
AxisType of the desired axis.axisType - - axis type to look upList<net.imagej.axis.CalibratedAxis> getAxes()
getAxesLengths().
CalibratedAxis order is sorted and represents order within the image.
List<net.imagej.axis.CalibratedAxis> getAxesPlanar()
List<net.imagej.axis.CalibratedAxis> getAxesNonPlanar()
long getPlaneCount()
long[] getAxesLengths()
Ordering is consistent with the CalibratedAxis array returned by
getAxes().
long[] getAxesLengths(List<net.imagej.axis.CalibratedAxis> axes)
Ordering of the lengths is consistent with the provided ordering.
long[] getAxesLengthsPlanar()
long[] getAxesLengthsNonPlanar()
Object getROIs()
Object getTables()
void addAxis(net.imagej.axis.CalibratedAxis axis)
CalibratedAxis to the metadata's list of axes,
with a length of 1.axis - - The new axisvoid addAxis(net.imagej.axis.CalibratedAxis axis, long value)
axis - - The new axisvalue - - length of the new axisvoid addAxis(net.imagej.axis.AxisType axisType, long value)
addAxis(CalibratedAxis, long) using the default calibration
value, per FormatTools.createAxis(AxisType).ImageMetadata copy()
void copy(ImageMetadata toCopy)
toCopy - - ImageMetadata to copyvoid populate(String name, List<net.imagej.axis.CalibratedAxis> axes, long[] lengths, int pixelType, boolean orderCertain, boolean littleEndian, boolean indexed, boolean falseColor, boolean metadataComplete)
populate(String, List, long[], int, boolean, boolean, boolean, boolean, boolean)
but automatically determines bits per pixel.void populate(String name, List<net.imagej.axis.CalibratedAxis> axes, long[] lengths, int pixelType, int bitsPerPixel, boolean orderCertain, boolean littleEndian, boolean indexed, boolean falseColor, boolean metadataComplete)
Copyright © 2011–2026 SCIFIO. All rights reserved.