NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_view_view.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_VIEW_VIEW_H__
12#define __BE_VIEW_VIEW_H__
13
14#include <memory>
15#include <string>
16#include <vector>
17
18#include <be_image_image.h>
19
20namespace BiometricEvaluation
21{
22 namespace View
23 {
31 class View {
32 public:
33
45 std::shared_ptr<Image::Image>
46 getImage() const;
47
62
77
91 uint32_t getImageColorDepth() const;
92
104
121
122 protected:
125
133 const BiometricEvaluation::Image::Size &imageSize);
134
141 void setImageColorDepth(uint32_t imageColorDepth);
142
151 &imageResolution);
152
161 &scanResolution);
162
171 &imageData);
172
179
180 private:
181 /*
182 * Items for the Image: Data, resolution, etc.
183 */
184 Image::Size _imageSize{};
185 Image::Resolution _imageResolution{};
186 Image::Resolution _scanResolution{};
187 Memory::AutoArray<uint8_t> _imageData;
189 _compressionAlgorithm{};
190 uint32_t _imageColorDepth{};
191
192 };
193 }
194}
195#endif /* __BE_VIEW_VIEW_H__ */
196
A class to represent single biometric element view.
Definition: be_view_view.h:31
uint32_t getImageColorDepth() const
Obtain the image color depth in bits-per-pixel.
void setImageResolution(const BiometricEvaluation::Image::Resolution &imageResolution)
Mutator for the image resolution.
void setImageSize(const BiometricEvaluation::Image::Size &imageSize)
Mutator for the image size.
void setCompressionAlgorithm(const Image::CompressionAlgorithm &ca)
Mutator for the compression algorithm.
Image::Resolution getImageResolution() const
Obtain the image resolution.
void setImageData(const BiometricEvaluation::Memory::uint8Array &imageData)
Mutator for the image data.
void setScanResolution(const BiometricEvaluation::Image::Resolution &scanResolution)
Mutator for the image scan resolution.
Image::Resolution getScanResolution() const
Obtain the image scan resolution.
Image::CompressionAlgorithm getCompressionAlgorithm() const
Obtain the compression algorithm used on the image.
Image::Size getImageSize() const
Obtain the image size.
void setImageColorDepth(uint32_t imageColorDepth)
Mutator for the image color depth.
std::shared_ptr< Image::Image > getImage() const
Obtain the image used for the biometric view in the format contained in the record (JPEG,...
CompressionAlgorithm
Image compression algorithms.
Definition: be_image.h:35
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