151 std::ostream &stream,
170 const uint32_t
xSize = 0,
171 const uint32_t
ySize = 0);
235 const double xRes = 0.0,
236 const double yRes = 0.0,
340 const uint8_t bitDepth,
341 const std::vector<bool> &components);
405 BE_Image_CompressionAlgorithm_EnumToStringMap);
409 BE_Image_PixelFormat_EnumToStringMap);
413 BE_Image_Resolution_Units_EnumToStringMap);
BE_FRAMEWORK_ENUMERATION_DECLARATIONS(BiometricEvaluation::Image::CompressionAlgorithm, BE_Image_CompressionAlgorithm_EnumToStringMap)
Represent attributes common to all images.
A Lossless JPEG-encoded image.
std::vector< Image::Coordinate > CoordinateSet
BiometricEvaluation::Memory::uint8Array removeComponents(const BiometricEvaluation::Memory::uint8Array &rawData, const uint8_t bitDepth, const std::vector< bool > &components)
Remove components from a decompressed image's raw byte representation.
bool operator==(const Coordinate &lhs, const Coordinate &rhs)
PixelFormat
Image pixel formats.
@ MonoWhite
1 bit/pixel, 0 is white, 1 = black
@ MonoBlack
1 bit/pixel, 0 is black, 1 = white
bool operator!=(const Coordinate &lhs, const Coordinate &rhs)
CompressionAlgorithm
Image compression algorithms.
const double CentimetersPerInch
Number of centimeters in one inch.
float distance(const Coordinate &p1, const Coordinate &p2)
Calculate the distance between two points.
std::ostream & operator<<(std::ostream &, const Coordinate &)
std::string to_string(const Coordinate &c)
Convert Coordinate to std::string.
const double MillimetersPerInch
Number of millimeters in one inch.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...
A structure to contain a two-dimensional coordinate without a specified origin.
float yDistance
Y-coordinate distance from origin.
Coordinate(const uint32_t x=0, const uint32_t y=0, const float xDistance=0, const float yDistance=0)
Create a Coordinate struct.
float xDistance
X-coordinate distance from origin.
A structure to represent a region of interest (ROI), which is a bounding box and a set of coordinates...
ROI()
Create an empty ROI object.
ROI(const Size size, const uint32_t horzOffset, const uint32_t vertOffset, const CoordinateSet &path)
Create a ROI object with the given parameters.
A structure to represent the resolution of an image.
Units
Possible representations of the units in a Resolution struct.
Units units
Units in which xRes and yRes are represented.
Resolution(const double xRes=0.0, const double yRes=0.0, const Units units=Units::PPI)
Create a Resolution struct.
double yRes
Resolution along the Y-axis.
double xRes
Resolution along the X-axis.
Resolution toUnits(const Units &units) const
Obtain alternate representations of this resolution.
A structure to represent the size of an image, in pixels.
Size(const uint32_t xSize=0, const uint32_t ySize=0)
Create a Size struct.
uint32_t xSize
Number of pixels on the X-axis.
uint32_t ySize
Number of pixels on the Y-axis.