Simd Library Documentation.

Home | Release Notes | Download | Documentation | Forum | SourceForge | GitHub

24-bit HSV pixel. More...

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 Hsv24At (const View< A > &view, ptrdiff_t col, ptrdiff_t row)
 
template<template< class > class A>
static Hsv24At (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

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.
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.
SIMD_INLINE Hsv24 ( const Hsv24 p)

Creates a copy of 24-bit HSV pixel structure.

Parameters
[in]p- 24-bit HSV pixel.

Member Function Documentation

template< template< class > class A > static const Hsv24 & At ( const View< A > &  view,
ptrdiff_t  col,
ptrdiff_t  row 
)
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.
template< template< class > class A > static Hsv24 & At ( View< A > &  view,
ptrdiff_t  col,
ptrdiff_t  row 
)
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.