public abstract class AbstractImageMetadata extends Object implements ImageMetadata
ImageMetadata implementations.ImageMetadata,
DefaultImageMetadata| Modifier and Type | Field and Description |
|---|---|
static long |
THUMBNAIL_DIMENSION
Default thumbnail width and height.
|
| Constructor and Description |
|---|
AbstractImageMetadata() |
AbstractImageMetadata(ImageMetadata copy) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAxis(net.imagej.axis.AxisType axisType,
long value)
As
ImageMetadata.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.
|
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
ImageMetadata.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
ImageMetadata.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.
|
String |
getName() |
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.
|
MetaTable |
getTable() |
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
ImageMetadata.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... axisTypes)
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 axisType,
long length)
As
ImageMetadata.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 axisType)
As
ImageMetadata.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 |
setName(String name) |
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 |
setTable(MetaTable table)
Sets the table for this component
|
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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopypublic static final long THUMBNAIL_DIMENSION
public AbstractImageMetadata()
public AbstractImageMetadata(ImageMetadata copy)
public void setThumbSizeX(long thumbSizeX)
ImageMetadatasetThumbSizeX in interface ImageMetadatapublic void setThumbSizeY(long thumbSizeY)
ImageMetadatasetThumbSizeY in interface ImageMetadatapublic void setPixelType(int pixelType)
ImageMetadataFormatTools.INT8) are enumerated in FormatTools.setPixelType in interface ImageMetadatapublic void setBitsPerPixel(int bitsPerPixel)
ImageMetadatasetBitsPerPixel in interface ImageMetadatapublic void setOrderCertain(boolean orderCertain)
ImageMetadatasetOrderCertain in interface ImageMetadatapublic void setLittleEndian(boolean littleEndian)
ImageMetadatasetLittleEndian in interface ImageMetadatapublic void setIndexed(boolean indexed)
ImageMetadatasetIndexed in interface ImageMetadatapublic void setPlanarAxisCount(int count)
ImageMetadataPlane (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.
setPlanarAxisCount in interface ImageMetadataReader.openPlane(int, long)public void setInterleavedAxisCount(int count)
ImageMetadatasetInterleavedAxisCount in interface ImageMetadatapublic void setFalseColor(boolean falseColor)
ImageMetadatasetFalseColor in interface ImageMetadatapublic void setMetadataComplete(boolean metadataComplete)
ImageMetadatasetMetadataComplete in interface ImageMetadatapublic void setThumbnail(boolean thumbnail)
ImageMetadatasetThumbnail in interface ImageMetadatapublic void setAxes(net.imagej.axis.CalibratedAxis[] axes, long[] axisLengths)
ImageMetadatasetAxes in interface ImageMetadatapublic void setAxisTypes(net.imagej.axis.AxisType... axisTypes)
ImageMetadatasetAxisTypes in interface ImageMetadatapublic void setAxes(net.imagej.axis.CalibratedAxis... axisTypes)
ImageMetadatasetAxes in interface ImageMetadatapublic void setAxisLengths(long[] axisLengths)
ImageMetadataaxes.
NB: axes must already exist for this method to be called. Use
ImageMetadata.setAxes(CalibratedAxis[]) or ImageMetadata.setAxes(net.imagej.axis.CalibratedAxis[], long[])
setAxisLengths in interface ImageMetadatapublic void setAxisLength(net.imagej.axis.CalibratedAxis axis, long length)
ImageMetadatasetAxisLength in interface ImageMetadatapublic void setAxisLength(net.imagej.axis.AxisType axisType, long length)
ImageMetadataImageMetadata.setAxisLength(CalibratedAxis, long) but requires only the
AxisType.setAxisLength in interface ImageMetadatapublic void setAxis(int index,
net.imagej.axis.CalibratedAxis axis)
ImageMetadataList.add(int, Object).setAxis in interface ImageMetadatapublic void setAxisType(int index,
net.imagej.axis.AxisType axisType)
ImageMetadataImageMetadata.setAxis(int, CalibratedAxis) but using the default calibration
values, per FormatTools.createAxis(AxisType).setAxisType in interface ImageMetadatapublic void setROIs(Object rois)
ImageMetadatasetROIs in interface ImageMetadatapublic void setTables(Object tables)
ImageMetadatasetTables in interface ImageMetadatapublic long getSize()
ImageMetadatagetSize in interface ImageMetadatapublic long getPlaneSize()
ImageMetadatagetPlaneSize in interface ImageMetadatapublic long getThumbSizeX()
ImageMetadatagetThumbSizeX in interface ImageMetadatapublic long getThumbSizeY()
ImageMetadatagetThumbSizeY in interface ImageMetadatapublic net.imagej.axis.CalibratedAxis getAxis(net.imagej.axis.AxisType axisType)
ImageMetadatagetAxis in interface ImageMetadatapublic int getPixelType()
ImageMetadataFormatTools.INT8) are enumerated in FormatTools.getPixelType in interface ImageMetadatapublic int getBitsPerPixel()
ImageMetadatagetBitsPerPixel in interface ImageMetadatapublic List<net.imagej.axis.CalibratedAxis> getAxes()
ImageMetadataImageMetadata.getAxesLengths().
CalibratedAxis order is sorted and represents order within the image.
getAxes in interface ImageMetadatapublic List<net.imagej.axis.CalibratedAxis> getAxesPlanar()
ImageMetadatagetAxesPlanar in interface ImageMetadatapublic List<net.imagej.axis.CalibratedAxis> getAxesNonPlanar()
ImageMetadatagetAxesNonPlanar in interface ImageMetadatapublic long getPlaneCount()
getPlaneCount in interface ImageMetadatapublic long[] getAxesLengths()
ImageMetadata
Ordering is consistent with the CalibratedAxis array returned by
ImageMetadata.getAxes().
getAxesLengths in interface ImageMetadatapublic long[] getAxesLengths(List<net.imagej.axis.CalibratedAxis> axes)
ImageMetadataOrdering of the lengths is consistent with the provided ordering.
getAxesLengths in interface ImageMetadatapublic long[] getAxesLengthsPlanar()
ImageMetadatagetAxesLengthsPlanar in interface ImageMetadatapublic long[] getAxesLengthsNonPlanar()
ImageMetadatagetAxesLengthsNonPlanar in interface ImageMetadatapublic boolean isOrderCertain()
ImageMetadataisOrderCertain in interface ImageMetadatapublic boolean isLittleEndian()
ImageMetadataisLittleEndian in interface ImageMetadatapublic boolean isIndexed()
ImageMetadataisIndexed in interface ImageMetadatapublic int getPlanarAxisCount()
ImageMetadatagetPlanarAxisCount in interface ImageMetadatapublic int getInterleavedAxisCount()
ImageMetadatagetInterleavedAxisCount in interface ImageMetadatapublic boolean isMultichannel()
ImageMetadataAxes.CHANNEL axis is a planar axis.isMultichannel in interface ImageMetadatapublic boolean isFalseColor()
ImageMetadataisFalseColor in interface ImageMetadatapublic boolean isMetadataComplete()
ImageMetadataisMetadataComplete in interface ImageMetadatapublic boolean isThumbnail()
ImageMetadataisThumbnail in interface ImageMetadatapublic net.imagej.axis.CalibratedAxis getAxis(int axisIndex)
ImageMetadatagetAxis in interface ImageMetadataaxisIndex - - index of the desired axis within this imagepublic long getAxisLength(int axisIndex)
ImageMetadatagetAxisLength in interface ImageMetadataaxisIndex - - index of the desired axis within this imagepublic long getAxisLength(net.imagej.axis.CalibratedAxis t)
ImageMetadatagetAxisLength in interface ImageMetadatat - - CalibratedAxis to look uppublic long getAxisLength(net.imagej.axis.AxisType t)
ImageMetadataImageMetadata.getAxisLength(CalibratedAxis) but only requires the
AxisType of the desired axis.getAxisLength in interface ImageMetadatat - - CalibratedAxis to look uppublic int getAxisIndex(net.imagej.axis.CalibratedAxis axis)
ImageMetadataThis method can also be used as an existence check for the target CalibratedAxis.
getAxisIndex in interface ImageMetadataaxis - - axis to look uppublic int getAxisIndex(net.imagej.axis.AxisType axisType)
ImageMetadataImageMetadata.getAxisIndex(CalibratedAxis) but only requires the
AxisType of the desired axis.getAxisIndex in interface ImageMetadataaxisType - - axis type to look uppublic Object getROIs()
ImageMetadatagetROIs in interface ImageMetadatapublic Object getTables()
ImageMetadatagetTables in interface ImageMetadatapublic void addAxis(net.imagej.axis.CalibratedAxis axis)
ImageMetadataCalibratedAxis to the metadata's list of axes,
with a length of 1.addAxis in interface ImageMetadataaxis - - The new axispublic void addAxis(net.imagej.axis.CalibratedAxis axis, long value)
ImageMetadataaddAxis in interface ImageMetadataaxis - - The new axisvalue - - length of the new axispublic void addAxis(net.imagej.axis.AxisType axisType, long value)
ImageMetadataImageMetadata.addAxis(CalibratedAxis, long) using the default calibration
value, per FormatTools.createAxis(AxisType).addAxis in interface ImageMetadatapublic void copy(ImageMetadata toCopy)
ImageMetadatacopy in interface ImageMetadatatoCopy - - ImageMetadata to copypublic void populate(String name, List<net.imagej.axis.CalibratedAxis> axes, long[] lengths, int pixelType, boolean orderCertain, boolean littleEndian, boolean indexed, boolean falseColor, boolean metadataComplete)
ImageMetadataImageMetadata.populate(String, List, long[], int, boolean, boolean, boolean, boolean, boolean)
but automatically determines bits per pixel.populate in interface ImageMetadatapublic 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)
ImageMetadatapopulate in interface ImageMetadatapublic String getName()
getName in interface org.scijava.Namedpublic void setName(String name)
setName in interface org.scijava.Namedpublic MetaTable getTable()
getTable in interface HasMetaTablepublic void setTable(MetaTable table)
HasMetaTablesetTable in interface HasMetaTabletable - - a MetaTable implementationCopyright © 2011–2026 SCIFIO. All rights reserved.