|
Friction Ridge Image and Features Technology Evaluations
API for participating in NIST's Friction Ridge Image and Features Technology Evaluations.
|
Data and metadata for an image. More...
#include <common.h>
Public Types | |
| enum class | BitsPerPixel : uint8_t { Eight = 8 , Sixteen = 16 , TwentyFour = 24 , FortyEight = 48 } |
| Number of bits comprising a single image pixel. More... | |
| enum class | BitsPerChannel : uint8_t { Eight = 8 , Sixteen = 16 } |
| Number of bits comprising a single color channel of a single pixel. More... | |
| enum class | Colorspace { Grayscale , RGB } |
| using | BPP = BitsPerPixel |
| using | BPC = BitsPerChannel |
Public Member Functions | |
| Image () | |
| Image (const uint8_t identifier, const uint16_t width, const uint16_t height, const uint16_t ppi, const Colorspace colorspace, const BitsPerChannel bpc, const BitsPerPixel bpp, const std::vector< std::byte > &pixels) | |
| Image constructor. | |
| void | sanityCheck () const |
| Validate that the properties of this Image appear to correspond to valid image data. | |
Static Public Member Functions | |
| static BitsPerPixel | toBitsPerPixel (const std::underlying_type_t< BitsPerPixel > i) |
| Convert integer to enumerated type. | |
| static BitsPerChannel | toBitsPerChannel (const std::underlying_type_t< BitsPerChannel > i) |
| Convert integer to enumerated type. | |
Public Attributes | |
| uint8_t | identifier {} |
| An identifier for this image. | |
| uint16_t | width {} |
| Width of the image. | |
| uint16_t | height {} |
| Height of the image. | |
| uint16_t | ppi {} |
| Resolution of the image in pixels per inch. | |
| Colorspace | colorspace {Colorspace::Grayscale} |
| Representation of color in each byte within pixels. | |
| BitsPerChannel | bpc {BitsPerChannel::Eight} |
| Number of bits used by each color component. | |
| BitsPerPixel | bpp {BitsPerPixel::Eight} |
| Number of bits comprising a single pixel. | |
| std::vector< std::byte > | pixels {} |
| Raw pixel data of image. | |
| using FRIF::Image::BPP = BitsPerPixel |
| using FRIF::Image::BPC = BitsPerChannel |
|
strong |
|
strong |
|
strong |
|
default |
| FRIF::Image::Image | ( | const uint8_t | identifier, |
| const uint16_t | width, | ||
| const uint16_t | height, | ||
| const uint16_t | ppi, | ||
| const Colorspace | colorspace, | ||
| const BitsPerChannel | bpc, | ||
| const BitsPerPixel | bpp, | ||
| const std::vector< std::byte > & | pixels ) |
Image constructor.
| identifier | An identifier for this image. Used to link Image to TemplateData and Correspondence. |
| width | Width of the image in pixels. |
| height | Height of the image in pixels. |
| ppi | Resolution of the image in pixels per inch. |
| colorspace | Representation of color in each byte within pixels. |
| bpc | Number of bits used by each color component. |
| bpp | Number of bits comprising a single pixel. |
| pixels | width * height * (bpp / bpc) bytes of image data, with pixels.front() representing the first byte of the top-left pixel, and pixels.back() representing the last byte of the bottom-right pixel. It is decompressed big endian image data, canonically coded as defined in ISO/IEC 19794-4:2005, section 6.2. For example, the value 0xFF00 when bpc is BPC::Sixteen, bpp is BPP::Sixteen and colorspace is Colorspace::Grayscale is significantly closer to white than it is to black. |
Definition at line 74 of file libfrifte_common.cpp.
|
static |
Convert integer to enumerated type.
| i | Integer version of enumerated type. |
| Cannot | map i to valid enumerated value. |
Definition at line 96 of file libfrifte_common.cpp.
|
static |
Convert integer to enumerated type.
| i | Integer version of enumerated type. |
| Cannot | map i to valid enumerated value. |
Definition at line 115 of file libfrifte_common.cpp.
| void FRIF::Image::sanityCheck | ( | ) | const |
Validate that the properties of this Image appear to correspond to valid image data.
| std::logic_error | Some combination of properties appears invalid. |
Definition at line 130 of file libfrifte_common.cpp.
| uint8_t FRIF::Image::identifier {} |
An identifier for this image.
Used to link Image to EFS, TemplateData, and Correspondence.
| uint16_t FRIF::Image::ppi {} |
| Colorspace FRIF::Image::colorspace {Colorspace::Grayscale} |
| BitsPerChannel FRIF::Image::bpc {BitsPerChannel::Eight} |
| BitsPerPixel FRIF::Image::bpp {BitsPerPixel::Eight} |
| std::vector<std::byte> FRIF::Image::pixels {} |
Raw pixel data of image.
width * height * (bpp / bpc) bytes of image data, with pixels .front() representing the first byte of the top-left pixel, and pixels .back() representing the last byte of the bottom-right pixel. It is decompressed big endian image data, canonically coded as defined in ISO/IEC 19794-4:2005, section 6.2. For example, the value 0xFF00 when bpc is BPC::Sixteen, bpp is BPP::Sixteen and colorspace is Colorspace::Grayscale is significantly closer to white than it is to black.