24-bit HSV pixel. More...
#include <SimdPixel.hpp>
Public Member Functions | |
Hsv24 (const uint8_t &gray=uint8_t(0)) | |
Hsv24 (const uint8_t &h, const uint8_t &s, const uint8_t &v) | |
Hsv24 (const Hsv24 &p) | |
Static Public Member Functions | |
template<template< class > class A> | |
static const Hsv24 & | At (const View< A > &view, ptrdiff_t col, ptrdiff_t row) |
template<template< class > class A> | |
static Hsv24 & | At (View< A > &view, ptrdiff_t col, ptrdiff_t row) |
Data Fields | |
uint8_t | hue |
8-bit hue channel 24-bit HSV pixel. | |
uint8_t | saturation |
8-bit saturation channel 24-bit HSV pixel. | |
uint8_t | value |
8-bit value channel 24-bit HSV pixel. | |
Detailed Description
24-bit HSV pixel.
Provides manipulation of 24-bit HSV (Hue, Saturation, Value) pixels of the View struct.
Constructor & Destructor Documentation
◆ Hsv24() [1/3]
SIMD_INLINE Hsv24 | ( | const uint8_t & | gray = uint8_t(0) | ) |
Creates a new 24-bit HSV pixel structure with specified channel values.
- Parameters
-
[in] gray - initial value for value channel. It is equal to 0 by default.
◆ Hsv24() [2/3]
SIMD_INLINE Hsv24 | ( | const uint8_t & | h, |
const uint8_t & | s, | ||
const uint8_t & | v | ||
) |
Creates a new 24-bit HSV pixel structure with specified channel values.
- Parameters
-
[in] h - initial value for hue channel. [in] s - initial value for saturation channel. [in] v - initial value for value channel.
◆ Hsv24() [3/3]
Creates a copy of 24-bit HSV pixel structure.
- Parameters
-
[in] p - 24-bit HSV pixel.
Member Function Documentation
◆ At() [1/2]
|
static |
Gets constant reference to the pixel with specific coordinates at the image view.
- Parameters
-
[in] view - an image view of 24-bit HSV pixel format. [in] col - x-coordinate of the pixel. [in] row - y-coordinate of the pixel.
- Returns
- a constant reference to the pixel.
◆ At() [2/2]
|
static |
Gets reference to the pixel with specific coordinates at the image view.
- Parameters
-
[in] view - an image view of 24-bit HSV pixel format. [in] col - x-coordinate of the pixel. [in] row - y-coordinate of the pixel.
- Returns
- a reference to the pixel.