public class OrientationReader extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<OrientationChange> |
determineOrientationCorrection(com.drew.metadata.Metadata metadata)
Determines the needed correction to orientation for the voxels if an EXIF orientation tag is
present.
|
static Optional<OrientationChange> |
determineOrientationCorrection(Path path)
Determines the needed correction to orientation for the voxels if an EXIF orientation tag is
present.
|
public static Optional<OrientationChange> determineOrientationCorrection(Path path) throws ImageIOException
path
- the path to the image, which possibly has EXIF metadata.Optional.empty()
if no EXIF
orientation tag is present.ImageIOException
- if the EXIF orientation tag is present, but unsupported.public static Optional<OrientationChange> determineOrientationCorrection(com.drew.metadata.Metadata metadata) throws ImageIOException
metadata
- the metadata for the image.Optional.empty()
if no EXIF
orientation tag is present.ImageIOException
- if the EXIF orientation tag is present, but unsupported.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.