Package gov.nih.mipav.model.file
Class MetadataExtractor.PhotographicConversions
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.PhotographicConversions
-
- Enclosing class:
- MetadataExtractor
public static final class MetadataExtractor.PhotographicConversions extends java.lang.Object
Contains helper methods that perform photographic conversions.- Author:
- Drew Noakes https://drewnoakes.com
-
-
Field Summary
Fields Modifier and Type Field Description static double
ROOT_TWO
-
Constructor Summary
Constructors Modifier Constructor Description private
PhotographicConversions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
apertureToFStop(double aperture)
Converts an aperture value to its corresponding F-stop number.static double
shutterSpeedToExposureTime(double shutterSpeed)
Converts a shutter speed to an exposure time.
-
-
-
Method Detail
-
apertureToFStop
public static double apertureToFStop(double aperture)
Converts an aperture value to its corresponding F-stop number.- Parameters:
aperture
- the aperture value to convert- Returns:
- the F-stop number of the specified aperture
-
shutterSpeedToExposureTime
public static double shutterSpeedToExposureTime(double shutterSpeed)
Converts a shutter speed to an exposure time.- Parameters:
shutterSpeed
- the shutter speed to convert- Returns:
- the exposure time of the specified shutter speed
-
-