public class ResolutionAsXml extends Object
If a particular dimension is missing from the XML file, 1 is supplied as a replacement value.
The XML file specifies the physical pixel sizes (in meters) of an individual voxel, as follows:
|Modifier and Type||Method and Description|
Retrieves resolution from a XML file previously written by
Writes a XML metadata file describing the image-resolution.
public static Resolution readResolutionXml(File file) throws ImageIOException
file- the file to open
ImageIOException- if file I/O or parsing errors occur.
public static void writeResolutionXml(Resolution resolution, Path path) throws ImageIOException
path- path to write to
resolution- the resolution to write
ImageIOException- if any file I/O or parser errors occur
Copyright © 2010–2021 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.