public class FingerInfo extends java.lang.Object implements BiometricDataBlock
Modifier and Type | Field and Description |
---|---|
static int |
COMPRESSION_JPEG
Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
|
static int |
COMPRESSION_JPEG2000
Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
|
static int |
COMPRESSION_PNG
Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
|
static int |
COMPRESSION_UNCOMPRESSED_BIT_PACKED
Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
|
static int |
COMPRESSION_UNCOMPRESSED_NO_BIT_PACKING
Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
|
static int |
COMPRESSION_WSQ
Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
|
static int |
SCALE_UNITS_PPCM
Scale units.
|
static int |
SCALE_UNITS_PPI
Scale units.
|
Constructor and Description |
---|
FingerInfo(java.io.InputStream inputStream)
Constructs a finger info record.
|
FingerInfo(int captureDeviceId,
int acquisitionLevel,
int scaleUnits,
int scanResolutionHorizontal,
int scanResolutionVertical,
int imageResolutionHorizontal,
int imageResolutionVertical,
int depth,
int compressionAlgorithm,
java.util.List<FingerImageInfo> fingerImageInfos)
Constructs a finger info record.
|
FingerInfo(StandardBiometricHeader sbh,
java.io.InputStream inputStream)
Constructs a finger info record.
|
FingerInfo(StandardBiometricHeader sbh,
int captureDeviceId,
int acquisitionLevel,
int scaleUnits,
int scanResolutionHorizontal,
int scanResolutionVertical,
int imageResolutionHorizontal,
int imageResolutionVertical,
int depth,
int compressionAlgorithm,
java.util.List<FingerImageInfo> fingerImageInfos)
Constructs a finger info record.
|
Modifier and Type | Method and Description |
---|---|
void |
addFingerImageInfo(FingerImageInfo fingerImageInfo)
Adds a finger image info to this finger info.
|
boolean |
equals(java.lang.Object other) |
int |
getAcquisitionLevel()
Gets the image acquisition level.
|
int |
getCaptureDeviceId()
Gets the Capture device Id.
|
int |
getCompressionAlgorithm()
Gets the compression algorithm.
|
int |
getDepth()
Gets the pixel depth.
|
byte[] |
getEncoded()
Gets the encoded contents of this LDS info.
|
java.util.List<FingerImageInfo> |
getFingerImageInfos()
Gets the finger image infos embedded in this finger info.
|
int |
getHorizontalImageResolution()
Gets the rounded image resolution used in the horizontal direction.
|
int |
getHorizontalScanningResolution()
Gets the rounded scanning resolution used in the horizontal direction.
|
int |
getScaleUnits()
Gets the units used to describe the scanning and resolution of the image.
|
StandardBiometricHeader |
getStandardBiometricHeader()
Gets the standard biometric header of this biometric data block
|
int |
getVerticalImageResolution()
Gets the rounded image resolution used in the vertical direction.
|
int |
getVerticalScanningResolution()
Gets the rounded scanning resolution used in the vertical direction.
|
int |
hashCode() |
void |
readObject(java.io.InputStream inputStream)
Reads a finger info from an input stream.
|
void |
removeFingerImageInfo(int index)
Removes a finger image info from this finger info.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream outputStream)
Writes this finger info to an output stream.
|
public static final int SCALE_UNITS_PPI
public static final int SCALE_UNITS_PPCM
public static final int COMPRESSION_UNCOMPRESSED_NO_BIT_PACKING
public static final int COMPRESSION_UNCOMPRESSED_BIT_PACKED
public static final int COMPRESSION_WSQ
public static final int COMPRESSION_JPEG
public static final int COMPRESSION_JPEG2000
public static final int COMPRESSION_PNG
public FingerInfo(int captureDeviceId, int acquisitionLevel, int scaleUnits, int scanResolutionHorizontal, int scanResolutionVertical, int imageResolutionHorizontal, int imageResolutionVertical, int depth, int compressionAlgorithm, java.util.List<FingerImageInfo> fingerImageInfos)
captureDeviceId
- capture device identifieracquisitionLevel
- acquisition levelscaleUnits
- scale units, one of SCALE_UNITS_PPI
, SCALE_UNITS_PPCM
scanResolutionHorizontal
- horizontal scan resolutionscanResolutionVertical
- vertical scan resolutionimageResolutionHorizontal
- horizontal image resolutionimageResolutionVertical
- vertical image resolutiondepth
- image depthcompressionAlgorithm
- compression algorithm, see getCompressionAlgorithm()
for valid valuesfingerImageInfos
- the image recordspublic FingerInfo(StandardBiometricHeader sbh, int captureDeviceId, int acquisitionLevel, int scaleUnits, int scanResolutionHorizontal, int scanResolutionVertical, int imageResolutionHorizontal, int imageResolutionVertical, int depth, int compressionAlgorithm, java.util.List<FingerImageInfo> fingerImageInfos)
sbh
- standard biometric header to usecaptureDeviceId
- capture device identifieracquisitionLevel
- acquisition levelscaleUnits
- scale units, one of SCALE_UNITS_PPI
, SCALE_UNITS_PPCM
scanResolutionHorizontal
- horizontal scan resolutionscanResolutionVertical
- vertical scan resolutionimageResolutionHorizontal
- horizontal image resolutionimageResolutionVertical
- vertical image resolutiondepth
- image depthcompressionAlgorithm
- compression algorithm, see getCompressionAlgorithm()
for valid valuesfingerImageInfos
- the image recordspublic FingerInfo(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- input streamjava.io.IOException
- on I/O errorpublic FingerInfo(StandardBiometricHeader sbh, java.io.InputStream inputStream) throws java.io.IOException
sbh
- standard biometric header to useinputStream
- input streamjava.io.IOException
- on I/O errorpublic int getCaptureDeviceId()
public int getAcquisitionLevel()
public int getScaleUnits()
public int getHorizontalScanningResolution()
getScaleUnits()
the result is either in PPI or PPCM.public int getVerticalScanningResolution()
getScaleUnits()
the result is either in PPI or PPCM.public int getHorizontalImageResolution()
getScaleUnits()
the result is either in PPI or PPCM.public int getVerticalImageResolution()
getScaleUnits()
the result is either in PPI or PPCM.public int getDepth()
0x1
to 0x10
.public int getCompressionAlgorithm()
COMPRESSION_UNCOMPRESSED_BIT_PACKED
,
COMPRESSION_UNCOMPRESSED_NO_BIT_PACKING
,
COMPRESSION_JPEG
,
COMPRESSION_JPEG2000
,
COMPRESSION_PNG
,
COMPRESSION_WSQ
.
As specified in Section 7.1.13 of ISO 19794-4.public void readObject(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- an input streamjava.io.IOException
- if reading failspublic void writeObject(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- an output streamjava.io.IOException
- if writing failspublic java.lang.String toString()
toString
in class java.lang.Object
public StandardBiometricHeader getStandardBiometricHeader()
getStandardBiometricHeader
in interface BiometricDataBlock
public java.util.List<FingerImageInfo> getFingerImageInfos()
public void addFingerImageInfo(FingerImageInfo fingerImageInfo)
fingerImageInfo
- the finger image info to addpublic void removeFingerImageInfo(int index)
index
- the index of the finger image info to removepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public byte[] getEncoded()
LDSElement
getEncoded
in interface LDSElement