NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_image_raw.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_RAW_H__
12#define __BE_IMAGE_RAW_H__
13
14#include <be_image_image.h>
15#include <be_memory_autoarray.h>
16
17namespace BiometricEvaluation
18{
19 namespace Image
20 {
25 class Raw : public Image {
26 public:
28 const uint8_t *data,
29 const uint64_t size,
30 const Size dimensions,
31 const uint32_t colorDepth,
32 const uint16_t bitDepth,
33 const Resolution resolution,
34 const bool hasAlphaChannel,
35 const std::string &identifier = "",
36 const statusCallback_t &statusCallback =
38
41 const Size dimensions,
42 const uint32_t colorDepth,
43 const uint16_t bitDepth,
44 const Resolution resolution,
45 const bool hasAlphaChannel,
46 const std::string &identifier = "",
47 const statusCallback_t &statusCallback =
49
50 ~Raw() = default;
51
52 /*
53 * Implementations of the Image interface.
54 */
55
58 const;
59
62 uint8_t depth) const;
63
64 protected:
65
66 private:
67
68 };
69 }
70}
71
72#endif /* __BE_IMAGE_RAW_H__ */
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
bool hasAlphaChannel() const
Accessor for the presence of an alpha channel.
An image with no encoding or compression.
Definition: be_image_raw.h:25
Raw(const BiometricEvaluation::Memory::uint8Array &data, const Size dimensions, const uint32_t colorDepth, const uint16_t bitDepth, const Resolution resolution, const bool hasAlphaChannel, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
Raw(const uint8_t *data, const uint64_t size, const Size dimensions, const uint32_t colorDepth, const uint16_t bitDepth, const Resolution resolution, const bool hasAlphaChannel, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
Memory::uint8Array getRawData() const
Accessor for the raw image data.
Memory::uint8Array getRawGrayscaleData(uint8_t depth) const
Accessor for decompressed data in grayscale.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...
A structure to represent the resolution of an image.
Definition: be_image.h:206
A structure to represent the size of an image, in pixels.
Definition: be_image.h:159