Package com.drew.imaging
Class PhotographicConversions
java.lang.Object
com.drew.imaging.PhotographicConversions
Contains helper methods that perform photographic conversions.
- Author:
- Drew Noakes https://drewnoakes.com
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleapertureToFStop(double aperture) Converts an aperture value to its corresponding F-stop number.static doubleshutterSpeedToExposureTime(double shutterSpeed) Converts a shutter speed to an exposure time.
-
Field Details
-
ROOT_TWO
public static final double ROOT_TWO
-
-
Method Details
-
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
-