NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_image_jpegl.h
Go to the documentation of this file.
1/*
2 * This software was developed at the National Institute of Standards and
3 * Technology (NIST) by employees of the Federal Government in the course
4 * of their official duties. Pursuant to title 17 Section 105 of the
5 * United States Code, this software is not subject to copyright protection
6 * and is in the public domain. NIST assumes no responsibility whatsoever for
7 * its use by other parties, and makes no guarantees, expressed or implied,
8 * about its quality, reliability, or any other characteristic.
9 */
10
11#ifndef __BE_IMAGE_JPEGL__
12#define __BE_IMAGE_JPEGL__
13
14#include <be_image_image.h>
15
16namespace BiometricEvaluation
17{
18 namespace Image
19 {
24 class JPEGL : public Image
25 {
26 public:
28 const uint8_t *data,
29 const uint64_t size,
30 const std::string &identifier = "",
31 const statusCallback_t &statusCallback =
33
35 const Memory::uint8Array &data,
36 const std::string &identifier = "",
37 const statusCallback_t &statusCallback =
39
40 ~JPEGL() = default;
41
44 uint8_t depth) const;
45
48 const;
49
62 static bool
64 const uint8_t *data,
65 uint64_t size);
66
67 protected:
68
69 private:
70
71 };
72 }
73}
74
75#endif /* __BE_IMAGE_JPEGL__ */
76
Represent attributes common to all images.
static void defaultStatusCallback(const Framework::Status &status)
Default handling of statuses sent from image processing libraries.
std::function< void(const Framework::Status)> statusCallback_t
A Lossless JPEG-encoded image.
JPEGL(const Memory::uint8Array &data, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
Memory::uint8Array getRawData() const
Accessor for the raw image data.
static bool isJPEGL(const uint8_t *data, uint64_t size)
Whether or not data is a Lossless JPEG image.
Memory::uint8Array getRawGrayscaleData(uint8_t depth) const
Accessor for decompressed data in grayscale.
JPEGL(const uint8_t *data, const uint64_t size, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
This software was developed at the National Institute of Standards and Technology (NIST) by employees...