Package gov.nih.mipav.model.file
Class MetadataExtractor.ExifDescriptorBase<T extends MetadataExtractor.Directory>
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor<T>
-
- gov.nih.mipav.model.file.MetadataExtractor.ExifDescriptorBase<T>
-
- Direct Known Subclasses:
MetadataExtractor.ExifIFD0Descriptor
,MetadataExtractor.ExifImageDescriptor
,MetadataExtractor.ExifInteropDescriptor
,MetadataExtractor.ExifSubIFDDescriptor
,MetadataExtractor.ExifThumbnailDescriptor
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.ExifDescriptorBase<T extends MetadataExtractor.Directory> extends MetadataExtractor.TagDescriptor<T>
Base class for several Exif format descriptor classes.- Author:
- Drew Noakes https://drewnoakes.com
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_allowDecimalRepresentationOfRationals
Dictates whether rational values will be represented in decimal format in instances where decimal notation is elegant (such as 1/2 -> 0.5, but not 1/3).-
Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
_directory
-
-
Constructor Summary
Constructors Constructor Description ExifDescriptorBase(T directory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int[]
decodeCfaPattern(int tagType)
Decode raw CFAPattern value Converted from Exiftool version 10.33 created by Phil Harvey http://www.sno.phy.queensu.ca/~phil/exiftool/ lib\Image\ExifTool\Exif.pm The value consists of: - Two short, being the grid width and height of the repeated patternprivate java.lang.String
formatCFAPattern(int[] pattern)
java.lang.String
get35mmFilmEquivFocalLengthDescription()
java.lang.String
getAccelerationDescription()
java.lang.String
getApertureValueDescription()
java.lang.String
getBitsPerSampleDescription()
java.lang.String
getBrightnessValueDescription()
java.lang.String
getCameraElevationAngleDescription()
java.lang.String
getCfaPattern2Description()
String description of CFA Pattern Indicates the color filter array (CFA) geometric pattern of the image sensor when a one-chip color area sensor is used.java.lang.String
getCfaPatternDescription()
String description of CFA Pattern Converted from Exiftool version 10.33 created by Phil Harvey http://www.sno.phy.queensu.ca/~phil/exiftool/ lib\Image\ExifTool\Exif.pm Indicates the color filter array (CFA) geometric pattern of the image sensor when a one-chip color area sensor is used.java.lang.String
getColorSpaceDescription()
java.lang.String
getComponentConfigurationDescription()
java.lang.String
getCompressedAverageBitsPerPixelDescription()
java.lang.String
getCompressionDescription()
java.lang.String
getContrastDescription()
java.lang.String
getCustomRenderedDescription()
java.lang.String
getDescription(int tagType)
Returns a descriptive value of the specified tag for this image.java.lang.String
getDigitalZoomRatioDescription()
java.lang.String
getExifImageHeightDescription()
java.lang.String
getExifImageWidthDescription()
java.lang.String
getExifVersionDescription()
java.lang.String
getExposureBiasDescription()
java.lang.String
getExposureModeDescription()
java.lang.String
getExposureProgramDescription()
java.lang.String
getExposureTimeDescription()
java.lang.String
getExtraSamplesDescription()
java.lang.String
getFileSourceDescription()
java.lang.String
getFillOrderDescription()
java.lang.String
getFlashDescription()
java.lang.String
getFlashPixVersionDescription()
java.lang.String
getFNumberDescription()
java.lang.String
getFocalLengthDescription()
java.lang.String
getFocalPlaneResolutionUnitDescription()
java.lang.String
getFocalPlaneXResolutionDescription()
java.lang.String
getFocalPlaneYResolutionDescription()
java.lang.String
getGainControlDescription()
java.lang.String
getHumidityDescription()
java.lang.String
getImageHeightDescription()
java.lang.String
getImageWidthDescription()
java.lang.String
getInteropIndexDescription()
java.lang.String
getInteropVersionDescription()
java.lang.String
getIsoEquivalentDescription()
java.lang.String
getJpegProcDescription()
java.lang.String
getLensSpecificationDescription()
java.lang.String
getMaxApertureValueDescription()
java.lang.String
getMeteringModeDescription()
java.lang.String
getNewSubfileTypeDescription()
java.lang.String
getOrientationDescription()
java.lang.String
getPhotometricInterpretationDescription()
java.lang.String
getPlanarConfigurationDescription()
java.lang.String
getPressureDescription()
java.lang.String
getReferenceBlackWhiteDescription()
java.lang.String
getResolutionDescription()
java.lang.String
getRowsPerStripDescription()
java.lang.String
getSampleFormatDescription()
java.lang.String
getSamplesPerPixelDescription()
java.lang.String
getSaturationDescription()
java.lang.String
getSceneCaptureTypeDescription()
java.lang.String
getSceneTypeDescription()
java.lang.String
getSensingMethodDescription()
java.lang.String
getSensitivityTypeRangeDescription()
java.lang.String
getSharpnessDescription()
java.lang.String
getShutterSpeedDescription()
java.lang.String
getStripByteCountsDescription()
java.lang.String
getSubfileTypeDescription()
java.lang.String
getSubjectDistanceDescription()
java.lang.String
getSubjectDistanceRangeDescription()
java.lang.String
getTemperatureDescription()
java.lang.String
getThresholdingDescription()
private java.lang.String
getUnicodeDescription(int tag)
The Windows specific tags uses plain Unicode.java.lang.String
getUserCommentDescription()
java.lang.String
getWaterDepthDescription()
java.lang.String
getWhiteBalanceDescription()
java.lang.String
getWhiteBalanceDescription(int value)
java.lang.String
getWhiteBalanceModeDescription()
java.lang.String
getWindowsAuthorDescription()
java.lang.String
getWindowsCommentDescription()
java.lang.String
getWindowsKeywordsDescription()
java.lang.String
getWindowsSubjectDescription()
java.lang.String
getWindowsTitleDescription()
java.lang.String
getXResolutionDescription()
java.lang.String
getYCbCrPositioningDescription()
java.lang.String
getYCbCrSubsamplingDescription()
java.lang.String
getYResolutionDescription()
-
Methods inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
convertBytesToVersionString, get7BitStringFromBytes, getBitFlagDescription, getByteLengthDescription, getDecimalRational, getEncodedTextDescription, getEpochTimeDescription, getFocalLengthDescription, getFormattedFloat, getFormattedInt, getFormattedString, getFStopDescription, getIndexedDescription, getIndexedDescription, getLensSpecificationDescription, getOrientationDescription, getRationalOrDoubleString, getShutterSpeedDescription, getSimpleRational, getStringFromBytes, getVersionBytesDescription
-
-
-
-
Field Detail
-
_allowDecimalRepresentationOfRationals
private final boolean _allowDecimalRepresentationOfRationals
Dictates whether rational values will be represented in decimal format in instances where decimal notation is elegant (such as 1/2 -> 0.5, but not 1/3).- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExifDescriptorBase
public ExifDescriptorBase(T directory)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription(int tagType)
Description copied from class:MetadataExtractor.TagDescriptor
Returns a descriptive value of the specified tag for this image. Where possible, known values will be substituted here in place of the raw tokens actually kept in the metadata segment. If no substitution is available, the value provided bygetString(tagType)
will be returned.- Overrides:
getDescription
in classMetadataExtractor.TagDescriptor<T extends MetadataExtractor.Directory>
- Parameters:
tagType
- the tag to find a description for- Returns:
- a description of the image's value for the specified tag, or
null
if the tag hasn't been defined.
-
getInteropIndexDescription
public java.lang.String getInteropIndexDescription()
-
getInteropVersionDescription
public java.lang.String getInteropVersionDescription()
-
getNewSubfileTypeDescription
public java.lang.String getNewSubfileTypeDescription()
-
getSubfileTypeDescription
public java.lang.String getSubfileTypeDescription()
-
getImageWidthDescription
public java.lang.String getImageWidthDescription()
-
getImageHeightDescription
public java.lang.String getImageHeightDescription()
-
getBitsPerSampleDescription
public java.lang.String getBitsPerSampleDescription()
-
getCompressionDescription
public java.lang.String getCompressionDescription()
-
getPhotometricInterpretationDescription
public java.lang.String getPhotometricInterpretationDescription()
-
getThresholdingDescription
public java.lang.String getThresholdingDescription()
-
getFillOrderDescription
public java.lang.String getFillOrderDescription()
-
getOrientationDescription
public java.lang.String getOrientationDescription()
-
getSamplesPerPixelDescription
public java.lang.String getSamplesPerPixelDescription()
-
getRowsPerStripDescription
public java.lang.String getRowsPerStripDescription()
-
getStripByteCountsDescription
public java.lang.String getStripByteCountsDescription()
-
getXResolutionDescription
public java.lang.String getXResolutionDescription()
-
getYResolutionDescription
public java.lang.String getYResolutionDescription()
-
getPlanarConfigurationDescription
public java.lang.String getPlanarConfigurationDescription()
-
getResolutionDescription
public java.lang.String getResolutionDescription()
-
getJpegProcDescription
public java.lang.String getJpegProcDescription()
-
getYCbCrSubsamplingDescription
public java.lang.String getYCbCrSubsamplingDescription()
-
getYCbCrPositioningDescription
public java.lang.String getYCbCrPositioningDescription()
-
getReferenceBlackWhiteDescription
public java.lang.String getReferenceBlackWhiteDescription()
-
getCfaPattern2Description
public java.lang.String getCfaPattern2Description()
String description of CFA Pattern Indicates the color filter array (CFA) geometric pattern of the image sensor when a one-chip color area sensor is used. It does not apply to all sensing methods. ExifDirectoryBase.TAG_CFA_PATTERN_2 holds only the pixel pattern. ExifDirectoryBase.TAG_CFA_REPEAT_PATTERN_DIM is expected to exist and pass some conditional tests.
-
formatCFAPattern
private java.lang.String formatCFAPattern(int[] pattern)
-
getExposureTimeDescription
public java.lang.String getExposureTimeDescription()
-
getFNumberDescription
public java.lang.String getFNumberDescription()
-
getExposureProgramDescription
public java.lang.String getExposureProgramDescription()
-
getIsoEquivalentDescription
public java.lang.String getIsoEquivalentDescription()
-
getSensitivityTypeRangeDescription
public java.lang.String getSensitivityTypeRangeDescription()
-
getExifVersionDescription
public java.lang.String getExifVersionDescription()
-
getComponentConfigurationDescription
public java.lang.String getComponentConfigurationDescription()
-
getCompressedAverageBitsPerPixelDescription
public java.lang.String getCompressedAverageBitsPerPixelDescription()
-
getShutterSpeedDescription
public java.lang.String getShutterSpeedDescription()
-
getApertureValueDescription
public java.lang.String getApertureValueDescription()
-
getBrightnessValueDescription
public java.lang.String getBrightnessValueDescription()
-
getExposureBiasDescription
public java.lang.String getExposureBiasDescription()
-
getMaxApertureValueDescription
public java.lang.String getMaxApertureValueDescription()
-
getSubjectDistanceDescription
public java.lang.String getSubjectDistanceDescription()
-
getMeteringModeDescription
public java.lang.String getMeteringModeDescription()
-
getWhiteBalanceDescription
public java.lang.String getWhiteBalanceDescription()
-
getWhiteBalanceDescription
public java.lang.String getWhiteBalanceDescription(int value)
-
getFlashDescription
public java.lang.String getFlashDescription()
-
getFocalLengthDescription
public java.lang.String getFocalLengthDescription()
-
getUserCommentDescription
public java.lang.String getUserCommentDescription()
-
getTemperatureDescription
public java.lang.String getTemperatureDescription()
-
getHumidityDescription
public java.lang.String getHumidityDescription()
-
getPressureDescription
public java.lang.String getPressureDescription()
-
getWaterDepthDescription
public java.lang.String getWaterDepthDescription()
-
getAccelerationDescription
public java.lang.String getAccelerationDescription()
-
getCameraElevationAngleDescription
public java.lang.String getCameraElevationAngleDescription()
-
getUnicodeDescription
private java.lang.String getUnicodeDescription(int tag)
The Windows specific tags uses plain Unicode.
-
getWindowsTitleDescription
public java.lang.String getWindowsTitleDescription()
-
getWindowsCommentDescription
public java.lang.String getWindowsCommentDescription()
-
getWindowsAuthorDescription
public java.lang.String getWindowsAuthorDescription()
-
getWindowsKeywordsDescription
public java.lang.String getWindowsKeywordsDescription()
-
getWindowsSubjectDescription
public java.lang.String getWindowsSubjectDescription()
-
getFlashPixVersionDescription
public java.lang.String getFlashPixVersionDescription()
-
getColorSpaceDescription
public java.lang.String getColorSpaceDescription()
-
getExifImageWidthDescription
public java.lang.String getExifImageWidthDescription()
-
getExifImageHeightDescription
public java.lang.String getExifImageHeightDescription()
-
getFocalPlaneXResolutionDescription
public java.lang.String getFocalPlaneXResolutionDescription()
-
getFocalPlaneYResolutionDescription
public java.lang.String getFocalPlaneYResolutionDescription()
-
getFocalPlaneResolutionUnitDescription
public java.lang.String getFocalPlaneResolutionUnitDescription()
-
getSensingMethodDescription
public java.lang.String getSensingMethodDescription()
-
getFileSourceDescription
public java.lang.String getFileSourceDescription()
-
getSceneTypeDescription
public java.lang.String getSceneTypeDescription()
-
getCfaPatternDescription
public java.lang.String getCfaPatternDescription()
String description of CFA Pattern Converted from Exiftool version 10.33 created by Phil Harvey http://www.sno.phy.queensu.ca/~phil/exiftool/ lib\Image\ExifTool\Exif.pm Indicates the color filter array (CFA) geometric pattern of the image sensor when a one-chip color area sensor is used. It does not apply to all sensing methods.
-
decodeCfaPattern
private int[] decodeCfaPattern(int tagType)
Decode raw CFAPattern value Converted from Exiftool version 10.33 created by Phil Harvey http://www.sno.phy.queensu.ca/~phil/exiftool/ lib\Image\ExifTool\Exif.pm The value consists of: - Two short, being the grid width and height of the repeated pattern. - Next, for every pixel in that pattern, an identification code.
-
getCustomRenderedDescription
public java.lang.String getCustomRenderedDescription()
-
getExposureModeDescription
public java.lang.String getExposureModeDescription()
-
getWhiteBalanceModeDescription
public java.lang.String getWhiteBalanceModeDescription()
-
getDigitalZoomRatioDescription
public java.lang.String getDigitalZoomRatioDescription()
-
get35mmFilmEquivFocalLengthDescription
public java.lang.String get35mmFilmEquivFocalLengthDescription()
-
getSceneCaptureTypeDescription
public java.lang.String getSceneCaptureTypeDescription()
-
getGainControlDescription
public java.lang.String getGainControlDescription()
-
getContrastDescription
public java.lang.String getContrastDescription()
-
getSaturationDescription
public java.lang.String getSaturationDescription()
-
getSharpnessDescription
public java.lang.String getSharpnessDescription()
-
getSubjectDistanceRangeDescription
public java.lang.String getSubjectDistanceRangeDescription()
-
getLensSpecificationDescription
public java.lang.String getLensSpecificationDescription()
-
getExtraSamplesDescription
public java.lang.String getExtraSamplesDescription()
-
getSampleFormatDescription
public java.lang.String getSampleFormatDescription()
-
-