public class ImageMetadata extends Object
The metadata always assumes a single batch of identically-sized images. If more than one series of images exist, these are considered as having separate metadata.
Constructor and Description |
---|
ImageMetadata(Dimensions dimensions,
int numberChannels,
int numberFrames,
int numberSeries,
boolean rgb,
int bitDepthPerChannel,
ImageFileAttributes fileAttributes,
Optional<java.time.ZonedDateTime> acquisitionTime,
Optional<ImagePyramidMetadata> pyramid) |
Modifier and Type | Method and Description |
---|---|
Optional<java.time.ZonedDateTime> |
getAcquisitionTime()
A timestamp, if available, of when the image was first physically created by the
camera/device.
|
int |
getBitDepthPerChannel()
The number of bits in memory to describe each voxel's intensity, per channel.
|
Dimensions |
getDimensions()
The dimensions of the image.
|
ImageFileAttributes |
getFileAttributes()
Attributes associated with the file on the filesystem.
|
int |
getNumberChannels()
The number of channels in the image.
|
int |
getNumberFrames()
The number of frames (separate images representing different points in a time-series) in the
image.
|
int |
getNumberSeries()
The number of separate images stored in the file.
|
Optional<ImagePyramidMetadata> |
getPyramid()
Metadata to describe an image pyramid, if it exists.
|
boolean |
isRgb()
Whether the image is RGB or not.
|
public ImageMetadata(Dimensions dimensions, int numberChannels, int numberFrames, int numberSeries, boolean rgb, int bitDepthPerChannel, ImageFileAttributes fileAttributes, Optional<java.time.ZonedDateTime> acquisitionTime, Optional<ImagePyramidMetadata> pyramid)
public Dimensions getDimensions()
public int getNumberChannels()
public int getNumberFrames()
public int getNumberSeries()
Pyramid image files should ideally attempt to present themselves as a single element in the series, but this depends on the driver.
public boolean isRgb()
public int getBitDepthPerChannel()
public ImageFileAttributes getFileAttributes()
public Optional<java.time.ZonedDateTime> getAcquisitionTime()
public Optional<ImagePyramidMetadata> getPyramid()
If multiple pyramids exist, the metadata items are extracted for the pyramid considered most important.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.