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.
|
static int |
SCALE_UNITS_PPI
Scale units.
|
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.
|
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.
|
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.
|
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, equals, getSubRecords, hashCode, 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()
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(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 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 © 2016. All rights reserved.