public class FingerInfo extends AbstractListInfo<FingerImageInfo> 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 points per centimeter.
|
static int |
SCALE_UNITS_PPI
Scale units points per inch.
|
Constructor and Description |
---|
FingerInfo(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,
List<FingerImageInfo> fingerImageInfos)
Constructs a finger info record.
|
FingerInfo(StandardBiometricHeader sbh,
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,
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(Object obj) |
int |
getAcquisitionLevel()
Returns the image acquisition level as specified in Section 7.1.5 and Table 1 of ISO 19794-4.
|
int |
getCaptureDeviceId()
Returns the capture device identifier as specified in Section 7.1.4 of ISO 19794-4.
|
int |
getCompressionAlgorithm()
Returns the compression algorithm
as specified in Section 7.1.13 of ISO 19794-4.
|
int |
getDepth()
Returns the pixel depth.
|
List<FingerImageInfo> |
getFingerImageInfos()
Returns the finger image infos embedded in this finger info.
|
int |
getHorizontalImageResolution()
Returns the rounded image resolution used in the horizontal direction
as specified in Section 7.1.10 of ISO 19794-4.
|
int |
getHorizontalScanningResolution()
Returns the rounded scanning resolution used in the horizontal direction.
|
int |
getScaleUnits()
Returns the units used to describe the scanning and resolution of the image.
|
StandardBiometricHeader |
getStandardBiometricHeader()
Returns the standard biometric header of this biometric data block.
|
int |
getVerticalImageResolution()
Returns the rounded image resolution used in the vertical direction
as specified in Section 7.1.11 of ISO 19794-4.
|
int |
getVerticalScanningResolution()
Returns the rounded scanning resolution used in the vertical direction.
|
int |
hashCode() |
void |
readObject(InputStream inputStream)
Reads a finger info from an input stream.
|
void |
removeFingerImageInfo(int index)
Removes a finger image info from this finger info.
|
String |
toString() |
void |
writeObject(OutputStream outputStream)
Writes this finger info to an output stream.
|
add, addAll, getSubRecords, remove
getEncoded
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, 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, 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(InputStream inputStream) throws IOException
inputStream
- input streamIOException
- on I/O errorpublic FingerInfo(StandardBiometricHeader sbh, InputStream inputStream) throws IOException
sbh
- standard biometric header to useinputStream
- input streamIOException
- on I/O errorpublic int getCaptureDeviceId()
public int getAcquisitionLevel()
public int getScaleUnits()
PPI
or PPCM
. As specified in Section 7.1.7 of ISO 19794-4.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()
0x01
to 0x10
.public int getCompressionAlgorithm()
COMPRESSION_UNCOMPRESSED_BIT_PACKED
,
COMPRESSION_UNCOMPRESSED_NO_BIT_PACKING
,
COMPRESSION_JPEG
,
COMPRESSION_JPEG2000
,
COMPRESSION_PNG
,
COMPRESSION_WSQ
.public void readObject(InputStream inputStream) throws IOException
readObject
in class AbstractListInfo<FingerImageInfo>
inputStream
- an input streamIOException
- if reading failspublic void writeObject(OutputStream outputStream) throws IOException
writeObject
in class AbstractListInfo<FingerImageInfo>
outputStream
- an output streamIOException
- if writing failspublic int hashCode()
hashCode
in class AbstractListInfo<FingerImageInfo>
public boolean equals(Object obj)
equals
in class AbstractListInfo<FingerImageInfo>
public StandardBiometricHeader getStandardBiometricHeader()
getStandardBiometricHeader
in interface BiometricDataBlock
public 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 removeCopyright © 2024. All rights reserved.