Package org.jmrtd.lds.iso19794
Class IrisImageInfo
- java.lang.Object
-
- org.jmrtd.lds.AbstractImageInfo
-
- org.jmrtd.lds.iso19794.IrisImageInfo
-
- All Implemented Interfaces:
java.io.Serializable
,ImageInfo
,LDSElement
public class IrisImageInfo extends AbstractImageInfo
Iris image header and image data based on Section 6.5.3 and Table 4 of ISO/IEC 19794-6 2005.- Version:
- $Revision: 1799 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
IMAGE_QUAL_HIGH_HI
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.static int
IMAGE_QUAL_HIGH_LO
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.static int
IMAGE_QUAL_LOW_HI
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.static int
IMAGE_QUAL_LOW_LO
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.static int
IMAGE_QUAL_MED_HI
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.static int
IMAGE_QUAL_MED_LO
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.static int
IMAGE_QUAL_UNDEF
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.-
Fields inherited from interface org.jmrtd.lds.ImageInfo
JPEG_MIME_TYPE, JPEG2000_MIME_TYPE, TYPE_FINGER, TYPE_IRIS, TYPE_PORTRAIT, TYPE_SIGNATURE_OR_MARK, TYPE_UNKNOWN, WSQ_MIME_TYPE
-
-
Constructor Summary
Constructors Constructor Description IrisImageInfo(int imageNumber, int quality, int rotationAngle, int rotationAngleUncertainty, int width, int height, java.io.InputStream imageBytes, int imageLength, int imageFormat)
Constructs an iris image info.IrisImageInfo(int imageNumber, int width, int height, java.io.InputStream imageBytes, int imageLength, int imageFormat)
Constructs an iris image info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getImageFormat()
Returns the image format.int
getImageNumber()
Returns the image number.int
getQuality()
Returns the quality.long
getRecordLength()
Returns the record length.int
getRotationAngle()
Returns the rotation angle.int
getRotationAngleUncertainty()
Returns the rotation angle uncertainty.int
hashCode()
protected void
readObject(java.io.InputStream inputStream)
Reads this object from a stream.java.lang.String
toString()
Generates a textual representation of this object.protected void
writeObject(java.io.OutputStream out)
Writes this object to a stream.-
Methods inherited from class org.jmrtd.lds.AbstractImageInfo
getEncoded, getHeight, getImageInputStream, getImageLength, getMimeType, getType, getWidth, readImage, setHeight, setImageBytes, setMimeType, setType, setWidth, writeImage
-
-
-
-
Field Detail
-
IMAGE_QUAL_UNDEF
public static final int IMAGE_QUAL_UNDEF
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.- See Also:
- Constant Field Values
-
IMAGE_QUAL_LOW_LO
public static final int IMAGE_QUAL_LOW_LO
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.- See Also:
- Constant Field Values
-
IMAGE_QUAL_LOW_HI
public static final int IMAGE_QUAL_LOW_HI
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.- See Also:
- Constant Field Values
-
IMAGE_QUAL_MED_LO
public static final int IMAGE_QUAL_MED_LO
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.- See Also:
- Constant Field Values
-
IMAGE_QUAL_MED_HI
public static final int IMAGE_QUAL_MED_HI
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.- See Also:
- Constant Field Values
-
IMAGE_QUAL_HIGH_LO
public static final int IMAGE_QUAL_HIGH_LO
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.- See Also:
- Constant Field Values
-
IMAGE_QUAL_HIGH_HI
public static final int IMAGE_QUAL_HIGH_HI
Image quality, based on Table 3 in Section 5.5 of ISO 19794-6.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IrisImageInfo
public IrisImageInfo(int imageNumber, int quality, int rotationAngle, int rotationAngleUncertainty, int width, int height, java.io.InputStream imageBytes, int imageLength, int imageFormat) throws java.io.IOException
Constructs an iris image info.- Parameters:
imageNumber
- the image numberquality
- qualityrotationAngle
- rotation anglerotationAngleUncertainty
- rotation angle uncertaintywidth
- withheight
- heightimageBytes
- the encoded imageimageLength
- the length of the encoded imageimageFormat
- the image format used for encoding- Throws:
java.io.IOException
- on error reading the image input stream
-
IrisImageInfo
public IrisImageInfo(int imageNumber, int width, int height, java.io.InputStream imageBytes, int imageLength, int imageFormat) throws java.io.IOException
Constructs an iris image info.- Parameters:
imageNumber
- the image numberwidth
- widthheight
- heightimageBytes
- the encoded imageimageLength
- the length of the encoded imageimageFormat
- the image format used for encoding- Throws:
java.io.IOException
- on error reading the image stream
-
-
Method Detail
-
getImageFormat
public int getImageFormat()
Returns the image format.- Returns:
- the image format
-
getImageNumber
public int getImageNumber()
Returns the image number.- Returns:
- the image number
-
getQuality
public int getQuality()
Returns the quality.- Returns:
- the image quality
-
getRotationAngle
public int getRotationAngle()
Returns the rotation angle.- Returns:
- the rotationAngle
-
getRotationAngleUncertainty
public int getRotationAngleUncertainty()
Returns the rotation angle uncertainty.- Returns:
- the rotationAngleUncertainty
-
getRecordLength
public long getRecordLength()
Returns the record length.- Returns:
- the record length
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractImageInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractImageInfo
-
toString
public java.lang.String toString()
Generates a textual representation of this object.- Overrides:
toString
in classAbstractImageInfo
- Returns:
- a textual representation of this object
- See Also:
Object.toString()
-
readObject
protected void readObject(java.io.InputStream inputStream) throws java.io.IOException
Description copied from class:AbstractImageInfo
Reads this object from a stream.- Specified by:
readObject
in classAbstractImageInfo
- Parameters:
inputStream
- the stream to read from- Throws:
java.io.IOException
- on error reading from the stream
-
writeObject
protected void writeObject(java.io.OutputStream out) throws java.io.IOException
Description copied from class:AbstractImageInfo
Writes this object to a stream.- Specified by:
writeObject
in classAbstractImageInfo
- Parameters:
out
- the stream to write to- Throws:
java.io.IOException
- on error writing to the stream
-
-