|
NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
|
Basic information relating to images. More...
Classes | |
| class | BMP |
| A BMP-encoded image. More... | |
| struct | Coordinate |
| A structure to contain a two-dimensional coordinate without a specified origin. More... | |
| class | Image |
| Represent attributes common to all images. More... | |
| class | JPEG |
| A JPEG-encoded image. More... | |
| class | JPEG2000 |
| A JPEG-2000-encoded image. More... | |
| class | JPEGL |
| A Lossless JPEG-encoded image. More... | |
| class | NetPBM |
| A NetPBM-encoded image. More... | |
| class | PNG |
| A PNG-encoded image. More... | |
| class | Raw |
| An image with no encoding or compression. More... | |
| struct | Resolution |
| A structure to represent the resolution of an image. More... | |
| struct | ROI |
| A structure to represent a region of interest (ROI), which is a bounding box and a set of coordinates. More... | |
| struct | Size |
| A structure to represent the size of an image, in pixels. More... | |
| class | TIFF |
| A TIFF-encoded image. More... | |
| class | WSQ |
| A WSQ-encoded image. More... | |
Typedefs | |
| using | Coordinate = Coordinate |
| using | CoordinateSet = std::vector< Image::Coordinate > |
| using | Size = Size |
| using | Resolution = Resolution |
| using | ROI = ROI |
Enumerations | |
| enum class | CompressionAlgorithm { None = 0 , Facsimile = 1 , WSQ20 = 2 , JPEGB = 3 , JPEGL = 4 , JP2 = 5 , JP2L = 6 , PNG = 7 , NetPBM = 8 , BMP = 9 , TIFF = 10 } |
| Image compression algorithms. More... | |
| enum class | PixelFormat { MonoWhite = 0 , MonoBlack = 1 , Gray8 = 2 , RGB24 = 3 } |
| Image pixel formats. More... | |
Functions | |
| std::string | to_string (const Coordinate &c) |
| Convert Coordinate to std::string. More... | |
| std::ostream & | operator<< (std::ostream &, const Coordinate &) |
| bool | operator== (const Coordinate &lhs, const Coordinate &rhs) |
| bool | operator!= (const Coordinate &lhs, const Coordinate &rhs) |
| std::string | to_string (const CoordinateSet &coordinates) |
| Convert CoordinateSet to std::string. More... | |
| std::ostream & | operator<< (std::ostream &stream, const CoordinateSet &coordinates) |
| Output stream overload for CoordinateSet. More... | |
| std::string | to_string (const Size &s) |
| Convert Size to std::string. More... | |
| std::ostream & | operator<< (std::ostream &, const Size &) |
| bool | operator== (const Size &lhs, const Size &rhs) |
| bool | operator!= (const Size &lhs, const Size &rhs) |
| std::string | to_string (const Resolution &r) |
| Convert Resolution to std::string. More... | |
| std::ostream & | operator<< (std::ostream &, const Resolution &) |
| bool | operator== (const Resolution &lhs, const Resolution &rhs) |
| bool | operator!= (const Resolution &lhs, const Resolution &rhs) |
| float | distance (const Coordinate &p1, const Coordinate &p2) |
| Calculate the distance between two points. More... | |
| BiometricEvaluation::Memory::uint8Array | removeComponents (const BiometricEvaluation::Memory::uint8Array &rawData, const uint8_t bitDepth, const std::vector< bool > &components) |
| Remove components from a decompressed image's raw byte representation. More... | |
| std::string | to_string (const ROI &r) |
| Convert ROI to std::string. More... | |
| std::ostream & | operator<< (std::ostream &, const ROI &) |
| bool | operator== (const ROI &lhs, const ROI &rhs) |
| bool | operator!= (const ROI &lhs, const ROI &rhs) |
Variables | |
| const double | CentimetersPerInch = 2.54 |
| Number of centimeters in one inch. More... | |
| const double | MillimetersPerInch = CentimetersPerInch * 10 |
| Number of millimeters in one inch. More... | |
Basic information relating to images.
Classes and methods for manipulating images.
The Image package gathers all image related matters, including classes to represent an image, coordinates, and functions for conversion between biometric representations.
| using BiometricEvaluation::Image::Coordinate = typedef Coordinate |
Definition at line 96 of file be_image.h.
| using BiometricEvaluation::Image::CoordinateSet = typedef std::vector<Image::Coordinate> |
Definition at line 112 of file be_image.h.
| using BiometricEvaluation::Image::Size = typedef Size |
Definition at line 178 of file be_image.h.
| using BiometricEvaluation::Image::Resolution = typedef Resolution |
Definition at line 265 of file be_image.h.
| using BiometricEvaluation::Image::ROI = typedef ROI |
Definition at line 376 of file be_image.h.
|
strong |
Image compression algorithms.
| Enumerator | |
|---|---|
| None | |
| Facsimile | |
| WSQ20 | |
| JPEGB | |
| JPEGL | |
| JP2 | |
| JP2L | |
| PNG | |
| NetPBM | |
| BMP | |
| TIFF | |
Definition at line 34 of file be_image.h.
|
strong |
Image pixel formats.
| Enumerator | |
|---|---|
| MonoWhite | 1 bit/pixel, 0 is white, 1 = black |
| MonoBlack | 1 bit/pixel, 0 is black, 1 = white |
| Gray8 | 8-bit gray |
| RGB24 | 8-bit red/8-bit blue/8-bit green |
Definition at line 50 of file be_image.h.
| std::string BiometricEvaluation::Image::to_string | ( | const Coordinate & | c | ) |
Convert Coordinate to std::string.
| c | Coordinate to convert to std::string. |
| std::ostream & BiometricEvaluation::Image::operator<< | ( | std::ostream & | , |
| const Coordinate & | |||
| ) |
| bool BiometricEvaluation::Image::operator== | ( | const Coordinate & | lhs, |
| const Coordinate & | rhs | ||
| ) |
| bool BiometricEvaluation::Image::operator!= | ( | const Coordinate & | lhs, |
| const Coordinate & | rhs | ||
| ) |
| std::string BiometricEvaluation::Image::to_string | ( | const CoordinateSet & | coordinates | ) |
Convert CoordinateSet to std::string.
| coordinates | CoordinateSet to convert to std::string. |
| std::ostream & BiometricEvaluation::Image::operator<< | ( | std::ostream & | stream, |
| const CoordinateSet & | coordinates | ||
| ) |
Output stream overload for CoordinateSet.
| [in] | stream | Stream on which to append formatted CoordinateSet information. |
| [in] | coordinates | CoordinateSet information to append to stream. |
| std::string BiometricEvaluation::Image::to_string | ( | const Size & | s | ) |
| std::ostream & BiometricEvaluation::Image::operator<< | ( | std::ostream & | , |
| const Size & | |||
| ) |
| std::string BiometricEvaluation::Image::to_string | ( | const Resolution & | r | ) |
Convert Resolution to std::string.
| r | Resolution to convert to std::string. |
| std::ostream & BiometricEvaluation::Image::operator<< | ( | std::ostream & | , |
| const Resolution & | |||
| ) |
| bool BiometricEvaluation::Image::operator== | ( | const Resolution & | lhs, |
| const Resolution & | rhs | ||
| ) |
| bool BiometricEvaluation::Image::operator!= | ( | const Resolution & | lhs, |
| const Resolution & | rhs | ||
| ) |
| float BiometricEvaluation::Image::distance | ( | const Coordinate & | p1, |
| const Coordinate & | p2 | ||
| ) |
Calculate the distance between two points.
| [in] | p1 | First point. |
| [in] | p2 | Second point. |
| BiometricEvaluation::Memory::uint8Array BiometricEvaluation::Image::removeComponents | ( | const BiometricEvaluation::Memory::uint8Array & | rawData, |
| const uint8_t | bitDepth, | ||
| const std::vector< bool > & | components | ||
| ) |
Remove components from a decompressed image's raw byte representation.
| [in] | rawData | Raw byte representation of an image. |
| [in] | bitDepth | The number of bits that represents a single component in rawData (only 8 and 16 are supported). |
| [in] | components | A bitset representing the components of the image, where true values represent components to be removed. For example, in a 4-component image where fourth component should be removed, this parameter would be {false, false, false, true}. |
rawData with true components removed.| BiometricEvaluation::Error::ParameterError | Invalid bitDepth parameter. |
| BiometricEvaluation::Error::StrategyError | rawData does not appear to be sized large enough for the bitsPerComponent and components provided. |
| std::string BiometricEvaluation::Image::to_string | ( | const ROI & | r | ) |
| std::ostream & BiometricEvaluation::Image::operator<< | ( | std::ostream & | , |
| const ROI & | |||
| ) |
| const double BiometricEvaluation::Image::CentimetersPerInch = 2.54 |
Number of centimeters in one inch.
Definition at line 268 of file be_image.h.
| const double BiometricEvaluation::Image::MillimetersPerInch = CentimetersPerInch * 10 |
Number of millimeters in one inch.
Definition at line 270 of file be_image.h.