Package gov.nih.mipav.model.file
Class MetadataExtractor.JpegDescriptor
java.lang.Object
gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor<MetadataExtractor.JpegDirectory>
gov.nih.mipav.model.file.MetadataExtractor.JpegDescriptor
- Enclosing class:
MetadataExtractor
public class MetadataExtractor.JpegDescriptor
extends MetadataExtractor.TagDescriptor<MetadataExtractor.JpegDirectory>
Provides human-readable string versions of the tags stored in a JpegDirectory.
Thanks to Darrell Silver (www.darrellsilver.com) for the initial version of this class.
- Author:
- Drew Noakes https://drewnoakes.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intthe first of a possible 4 color components.static final intthe second of a possible 4 color components.static final intthe third of a possible 4 color components.static final intthe fourth of a possible 4 color components.static final intstatic final intThis is in bits/sample, usually 8 (12 and 16 not supported by most software).static final intThe image's height.static final intThe image's width.Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
_directory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponentDataDescription(int componentNumber) getDescription(int tagType) Returns a descriptive value of the specified tag for this image.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 Details
-
TAG_COMPRESSION_TYPE
public static final int TAG_COMPRESSION_TYPE- See Also:
-
TAG_DATA_PRECISION
public static final int TAG_DATA_PRECISIONThis is in bits/sample, usually 8 (12 and 16 not supported by most software).- See Also:
-
TAG_IMAGE_HEIGHT
public static final int TAG_IMAGE_HEIGHTThe image's height. Necessary for decoding the image, so it should always be there.- See Also:
-
TAG_IMAGE_WIDTH
public static final int TAG_IMAGE_WIDTHThe image's width. Necessary for decoding the image, so it should always be there.- See Also:
-
TAG_COMPONENT_DATA_1
public static final int TAG_COMPONENT_DATA_1the first of a possible 4 color components. Number of components specified in TAG_NUMBER_OF_COMPONENTS.- See Also:
-
TAG_COMPONENT_DATA_2
public static final int TAG_COMPONENT_DATA_2the second of a possible 4 color components. Number of components specified in TAG_NUMBER_OF_COMPONENTS.- See Also:
-
TAG_COMPONENT_DATA_3
public static final int TAG_COMPONENT_DATA_3the third of a possible 4 color components. Number of components specified in TAG_NUMBER_OF_COMPONENTS.- See Also:
-
TAG_COMPONENT_DATA_4
public static final int TAG_COMPONENT_DATA_4the fourth of a possible 4 color components. Number of components specified in TAG_NUMBER_OF_COMPONENTS.- See Also:
-
-
Constructor Details
-
JpegDescriptor
-
-
Method Details
-
getDescription
Description copied from class:MetadataExtractor.TagDescriptorReturns 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:
getDescriptionin classMetadataExtractor.TagDescriptor<MetadataExtractor.JpegDirectory>- Parameters:
tagType- the tag to find a description for- Returns:
- a description of the image's value for the specified tag, or
nullif the tag hasn't been defined.
-
getImageCompressionTypeDescription
-
getImageWidthDescription
-
getImageHeightDescription
-
getDataPrecisionDescription
-
getComponentDataDescription
-