NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_image_tiff.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_TIFF_H_
12#define BE_IMAGE_TIFF_H_
13
14#include <be_image_image.h>
16
17namespace BiometricEvaluation
18{
19 namespace Image
20 {
22 class TIFF : public Image
23 {
24 public:
26 const uint8_t *data,
27 const uint64_t size,
28 const std::string &identifier = "",
29 const statusCallback_t &statusCallback =
31
33 const Memory::uint8Array &data,
34 const std::string &identifier = "",
35 const statusCallback_t &statusCallback =
37
38 ~TIFF() = default;
39
42 const;
43
46 uint8_t depth)
47 const;
48
62 static bool
64 const uint8_t *data,
65 const uint64_t size);
66
78 static bool
80 const Memory::uint8Array &data);
81
96 static std::string
98 const char *module,
99 const char *format,
100 va_list args);
101
103 struct ClientIO
104 {
108 const TIFF *tiffObject{nullptr};
109 };
110
111 private:
112
124 void*
125 getDecompressionStream()
126 const;
127 };
128 }
129}
130
131#endif /* BE_IMAGE_TIFF_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
TIFF(const Memory::uint8Array &data, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
TIFF(const uint8_t *data, const uint64_t size, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
static bool isTIFF(const Memory::uint8Array &data)
Determine if image is encoded as TIFF.
Memory::uint8Array getRawData() const
Accessor for the raw image data.
static std::string libtiffMessageToString(const char *module, const char *format, va_list args)
Convert libtiff message to string.
static bool isTIFF(const uint8_t *data, const uint64_t size)
Determine if image is encoded as TIFF.
Memory::uint8Array getRawGrayscaleData(uint8_t depth) const
Accessor for decompressed data in grayscale.
Wrap a memory buffer with an index.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...
Struct passed to libtiff client functions.
Memory::IndexedBuffer * ib
Indexed buffer to TIFF object in memory.
const TIFF * tiffObject
Pointer to "this" TIFF object.