51 explicit operator bool()
84 const std::underlying_type_t<BitsPerPixel> i);
112 const std::underlying_type_t<BitsPerChannel> i);
163 const uint16_t
width,
169 const std::vector<std::byte> &
pixels);
242 const uint32_t x = {},
243 const uint32_t y = {});
250 using Segment = std::tuple<Coordinate, Coordinate>;
279 std::optional<CBEFFIdentifier>
cbeff{};
291 #ifdef NIST_EXTERN_FRIFTE_API_VERSION
311 static_assert(std::is_same_v<std::underlying_type_t<std::byte>,
312 uint8_t>,
"std::byte not represented as unsigned 8 bit type");
uint16_t API_MINOR_VERSION
API minor version number.
std::tuple< Coordinate, Coordinate > Segment
Line segment.
uint16_t API_PATCH_VERSION
API patch version number.
uint16_t API_MAJOR_VERSION
API major version number.
Pixel location in an image.
bool operator==(const Coordinate &) const
uint32_t x
X coordinate in pixels.
uint32_t y
Y coordinate in pixels.
auto operator<=>(const Coordinate &) const
Coordinate(const uint32_t x={}, const uint32_t y={})
Coordinate constructor.
uint16_t height
Height of the image.
BitsPerPixel bpp
Number of bits comprising a single pixel.
BitsPerPixel
Number of bits comprising a single image pixel.
uint16_t ppi
Resolution of the image in pixels per inch.
std::vector< std::byte > pixels
Raw pixel data of image.
uint16_t width
Width of the image.
void sanityCheck() const
Validate that the properties of this Image appear to correspond to valid image data.
static BitsPerPixel toBitsPerPixel(const std::underlying_type_t< BitsPerPixel > i)
Convert integer to enumerated type.
@ Grayscale
Single channel (shades of gray).
Colorspace colorspace
Representation of color in each byte within pixels.
BitsPerChannel
Number of bits comprising a single color channel of a single pixel.
BitsPerChannel bpc
Number of bits used by each color component.
static BitsPerChannel toBitsPerChannel(const std::underlying_type_t< BitsPerChannel > i)
Convert integer to enumerated type.
uint8_t identifier
An identifier for this image.
CBEFF information registered with and assigned by IBIA.
auto operator<=>(const CBEFFIdentifier &) const
uint16_t owner
CBEFF Product Owner of the product.
std::optional< uint16_t > algorithm
CBEFF Algorithm Identifier of the product.
bool operator==(const CBEFFIdentifier &) const
Identifying details about algorithm components for documentation.
auto operator<=>(const ProductIdentifier &) const
std::optional< CBEFFIdentifier > cbeff
CBEFF information about the product.
std::optional< std::string > marketing
Non-infringing marketing name of the product.
bool operator==(const ProductIdentifier &) const
Information about the result of calling a FRIF TE API function.
Result result
The result of the operation.
Result
Possible outcomes when performing operations.
@ Success
Successfully performed operation.
@ Failure
Failed to perform operation.
std::optional< std::string > message
Information about the result.