public class IrisImageInfo
extends java.lang.Object
Modifier and Type | Field and 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.
|
JPEG_MIME_TYPE, JPEG2000_MIME_TYPE, TYPE_FINGER, TYPE_IRIS, TYPE_PORTRAIT, TYPE_SIGNATURE_OR_MARK, WSQ_MIME_TYPE
Constructor and Description |
---|
IrisImageInfo(int imageNumber,
int width,
int height,
java.io.InputStream imageBytes,
int imageLength,
int imageFormat)
Constructs an iris image info.
|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
byte[] |
getEncoded()
Encodes this image info.
|
int |
getHeight()
Gets the height of the image.
|
int |
getImageFormat()
Gets the image format.
|
java.io.InputStream |
getImageInputStream()
Gets the encoded image as an input stream.
|
int |
getImageLength()
Gets the length of the encoded image.
|
int |
getImageNumber()
Gets the image number.
|
java.lang.String |
getMimeType()
Gets the mime-type of the encoded image.
|
int |
getQuality()
Gets the quality.
|
long |
getRecordLength()
Gets the record length.
|
int |
getRotationAngle()
Gets the rotation angle.
|
int |
getRotationAngleUncertainty()
Gets the rotation angle uncertainty.
|
int |
getType()
Content type, one of
ImageInfo.TYPE_PORTRAIT ,
ImageInfo.TYPE_FINGER ,
ImageInfo.TYPE_IRIS ,
ImageInfo.TYPE_SIGNATURE_OR_MARK . |
int |
getWidth()
Gets the width of the image.
|
int |
hashCode() |
protected void |
readImage(java.io.InputStream inputStream,
long imageLength)
Clients should call this method after positioning the input stream to the
image bytes.
|
protected void |
readObject(java.io.InputStream inputStream) |
protected void |
setHeight(int height) |
protected void |
setImageBytes(byte[] imageBytes) |
protected void |
setMimeType(java.lang.String mimeType) |
protected void |
setType(int type) |
protected void |
setWidth(int width) |
java.lang.String |
toString()
Generates a textual representation of this object.
|
protected void |
writeImage(java.io.OutputStream outputStream) |
protected void |
writeObject(java.io.OutputStream out) |
public static int IMAGE_QUAL_UNDEF
public static int IMAGE_QUAL_LOW_LO
public static int IMAGE_QUAL_LOW_HI
public static int IMAGE_QUAL_MED_LO
public static int IMAGE_QUAL_MED_HI
public static int IMAGE_QUAL_HIGH_LO
public static int IMAGE_QUAL_HIGH_HI
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
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 encodingjava.io.IOException
- on error reading the image input streampublic IrisImageInfo(int imageNumber, int width, int height, java.io.InputStream imageBytes, int imageLength, int imageFormat) throws java.io.IOException
imageNumber
- the image numberwidth
- widthheight
- heightimageBytes
- the encoded imageimageLength
- the length of the encoded imageimageFormat
- the image format used for encodingjava.io.IOException
- on error reading the image streampublic int getImageFormat()
public int getImageNumber()
public int getQuality()
public int getRotationAngle()
public int getRotationAngleUncertainty()
public long getRecordLength()
getRecordLength
in interface ImageInfo
public java.lang.String toString()
Object.toString()
protected void readObject(java.io.InputStream inputStream) throws java.io.IOException
java.io.IOException
protected void writeObject(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public int getType()
ImageInfo.TYPE_PORTRAIT
,
ImageInfo.TYPE_FINGER
,
ImageInfo.TYPE_IRIS
,
ImageInfo.TYPE_SIGNATURE_OR_MARK
.public java.lang.String getMimeType()
getMimeType
in interface ImageInfo
public int getWidth()
public int getHeight()
public int getImageLength()
getImageLength
in interface ImageInfo
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public byte[] getEncoded()
getEncoded
in interface LDSElement
public java.io.InputStream getImageInputStream()
getImageInputStream
in interface ImageInfo
protected void readImage(java.io.InputStream inputStream, long imageLength) throws java.io.IOException
inputStream
- input streamimageLength
- image lengthjava.io.IOException
- on error reading the input streamprotected void writeImage(java.io.OutputStream outputStream) throws java.io.IOException
java.io.IOException
protected final void setMimeType(java.lang.String mimeType)
protected final void setType(int type)
protected final void setWidth(int width)
protected final void setHeight(int height)
protected final void setImageBytes(byte[] imageBytes)