NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_image_png.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_PNG_H_
12#define BE_IMAGE_PNG_H_
13
14#include <be_image_image.h>
15
16namespace BiometricEvaluation
17{
18 namespace Image
19 {
24 class PNG : 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 ~PNG() = default;
41
44 const;
45
48 uint8_t depth) const;
49
62 static bool
64 const uint8_t *data,
65 uint64_t size);
66 };
67 }
68}
69
70#endif /* BE_IMAGE_PNG_H_ */
71
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 PNG-encoded image.
Definition: be_image_png.h:25
PNG(const Memory::uint8Array &data, 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.
static bool isPNG(const uint8_t *data, uint64_t size)
Whether or not data is a PNG image.
PNG(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...