Class FingerInfo

    • Field Summary

      Fields 
      Modifier and Type Field 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 Summary

      Constructors 
      Constructor Description
      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​(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.
      FingerInfo​(StandardBiometricHeader sbh, java.io.InputStream inputStream)
      Constructs a finger info record.
    • Field Detail

      • SCALE_UNITS_PPI

        public static final int SCALE_UNITS_PPI
        Scale units points per inch.
        See Also:
        Constant Field Values
      • SCALE_UNITS_PPCM

        public static final int SCALE_UNITS_PPCM
        Scale units points per centimeter.
        See Also:
        Constant Field Values
      • COMPRESSION_UNCOMPRESSED_NO_BIT_PACKING

        public static final int COMPRESSION_UNCOMPRESSED_NO_BIT_PACKING
        Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
        See Also:
        Constant Field Values
      • COMPRESSION_UNCOMPRESSED_BIT_PACKED

        public static final int COMPRESSION_UNCOMPRESSED_BIT_PACKED
        Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
        See Also:
        Constant Field Values
      • COMPRESSION_WSQ

        public static final int COMPRESSION_WSQ
        Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
        See Also:
        Constant Field Values
      • COMPRESSION_JPEG

        public static final int COMPRESSION_JPEG
        Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
        See Also:
        Constant Field Values
      • COMPRESSION_JPEG2000

        public static final int COMPRESSION_JPEG2000
        Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
        See Also:
        Constant Field Values
      • COMPRESSION_PNG

        public static final int COMPRESSION_PNG
        Image compression algorithm type as specified in Section 7.1.13 and Table 3 of ISO 19794-4.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FingerInfo

        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)
        Constructs a finger info record.
        Parameters:
        captureDeviceId - capture device identifier
        acquisitionLevel - acquisition level
        scaleUnits - scale units, one of SCALE_UNITS_PPI, SCALE_UNITS_PPCM
        scanResolutionHorizontal - horizontal scan resolution
        scanResolutionVertical - vertical scan resolution
        imageResolutionHorizontal - horizontal image resolution
        imageResolutionVertical - vertical image resolution
        depth - image depth
        compressionAlgorithm - compression algorithm, see getCompressionAlgorithm() for valid values
        fingerImageInfos - the image records
      • FingerInfo

        public 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.
        Parameters:
        sbh - standard biometric header to use
        captureDeviceId - capture device identifier
        acquisitionLevel - acquisition level
        scaleUnits - scale units, one of SCALE_UNITS_PPI, SCALE_UNITS_PPCM
        scanResolutionHorizontal - horizontal scan resolution
        scanResolutionVertical - vertical scan resolution
        imageResolutionHorizontal - horizontal image resolution
        imageResolutionVertical - vertical image resolution
        depth - image depth
        compressionAlgorithm - compression algorithm, see getCompressionAlgorithm() for valid values
        fingerImageInfos - the image records
      • FingerInfo

        public FingerInfo​(java.io.InputStream inputStream)
                   throws java.io.IOException
        Constructs a finger info record.
        Parameters:
        inputStream - input stream
        Throws:
        java.io.IOException - on I/O error
      • FingerInfo

        public FingerInfo​(StandardBiometricHeader sbh,
                          java.io.InputStream inputStream)
                   throws java.io.IOException
        Constructs a finger info record.
        Parameters:
        sbh - standard biometric header to use
        inputStream - input stream
        Throws:
        java.io.IOException - on I/O error
    • Method Detail

      • getCaptureDeviceId

        public int getCaptureDeviceId()
        Returns the capture device identifier as specified in Section 7.1.4 of ISO 19794-4. Only the low-order 12 bits are significant.
        Returns:
        the capture device identifier
      • getAcquisitionLevel

        public int getAcquisitionLevel()
        Returns the image acquisition level as specified in Section 7.1.5 and Table 1 of ISO 19794-4. Valid settings are: 10 (125 ppi), 20 (250 ppi), 30 (500 ppi), 31 (500 ppi), 40 (1000 ppi), 41 (1000 ppi).
        Returns:
        image acquisition level
      • getScaleUnits

        public int getScaleUnits()
        Returns the units used to describe the scanning and resolution of the image. Either PPI or PPCM. As specified in Section 7.1.7 of ISO 19794-4.
        Returns:
        scale units type
      • getHorizontalScanningResolution

        public int getHorizontalScanningResolution()
        Returns the rounded scanning resolution used in the horizontal direction. As specified in Section 7.1.8 of ISO 19794-4. Depending on getScaleUnits() the result is either in PPI or PPCM.
        Returns:
        the horizontal scanning resolution
      • getVerticalScanningResolution

        public int getVerticalScanningResolution()
        Returns the rounded scanning resolution used in the vertical direction. As specified in Section 7.1.9 of ISO 19794-4. Depending on getScaleUnits() the result is either in PPI or PPCM.
        Returns:
        the vertical scanning resolution
      • getHorizontalImageResolution

        public int getHorizontalImageResolution()
        Returns the rounded image resolution used in the horizontal direction as specified in Section 7.1.10 of ISO 19794-4. Depending on getScaleUnits() the result is either in PPI or PPCM.
        Returns:
        the horizontal image resolution
      • getVerticalImageResolution

        public int getVerticalImageResolution()
        Returns the rounded image resolution used in the vertical direction as specified in Section 7.1.11 of ISO 19794-4. Depending on getScaleUnits() the result is either in PPI or PPCM.
        Returns:
        the vertical image resolution
      • getDepth

        public int getDepth()
        Returns the pixel depth. As specified in Section 7.1.12 of ISO 19794-4. Valid values are between 0x01 to 0x10.
        Returns:
        the pixel depth
      • readObject

        public void readObject​(java.io.InputStream inputStream)
                        throws java.io.IOException
        Reads a finger info from an input stream.
        Specified by:
        readObject in class AbstractListInfo<FingerImageInfo>
        Parameters:
        inputStream - an input stream
        Throws:
        java.io.IOException - if reading fails
      • writeObject

        public void writeObject​(java.io.OutputStream outputStream)
                         throws java.io.IOException
        Writes this finger info to an output stream.
        Specified by:
        writeObject in class AbstractListInfo<FingerImageInfo>
        Parameters:
        outputStream - an output stream
        Throws:
        java.io.IOException - if writing fails
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFingerImageInfos

        public java.util.List<FingerImageInfo> getFingerImageInfos()
        Returns the finger image infos embedded in this finger info.
        Returns:
        the embedded finger image infos
      • addFingerImageInfo

        public void addFingerImageInfo​(FingerImageInfo fingerImageInfo)
        Adds a finger image info to this finger info.
        Parameters:
        fingerImageInfo - the finger image info to add
      • removeFingerImageInfo

        public void removeFingerImageInfo​(int index)
        Removes a finger image info from this finger info.
        Parameters:
        index - the index of the finger image info to remove