10 #ifndef KJB_I_CPP_HSV_H
11 #define KJB_I_CPP_HSV_H
13 #include <i/i_float.h>
14 #include <i/i_float_io.h>
81 extra.alpha = p.extra.alpha;
95 PixelHSVA(
float hh,
float ss,
float vv,
float aa = 1.0f );
99 void get_hsv(
float*,
float*,
float* )
const;
Alternative Pixel using hue, saturation, value, and opacity (alpha).
Definition: i_hsv.h:59
float get_hue() const
get hue (in range 0-1) but please consider using get_hsv().
Definition: i_hsv.h:103
r
Definition: APPgetLargeConnectedEdges.m:127
float get_value() const
get value (in range 0-1) but please consider using get_hsv().
Definition: i_hsv.h:119
function straight edges straight lines(nlines,[x1 x2 y1 y2 theta r])%%To display result ss
Definition: APPgetLargeConnectedEdges.m:20
Vector hsluma_space(const kjb_c::Pixel &p)
Compute the spatial coordinates of a pixel in HSY color space.
Definition: i_hsv.cpp:172
float get_saturation() const
get saturation (in range 0-1) but please consider get_hsv().
Definition: i_hsv.h:111
PixelHSVA(const kjb_c::Pixel &p)
This builds a valid pixel from another.
Definition: i_hsv.h:76
Code for a wrapper class around the C struct Pixel.
PixelHSVA()
Default ctor, which leaves all fields uninitialized.
Definition: i_hsv.h:65
kjb_c::Pixel get_pixel_from_hsluma_space(const Vector &vhsy)
This clampfully transforms a point in HSY space to RGB.
Definition: i_hsv.cpp:200
void get_hsv(float *, float *, float *) const
get hue, saturation, value (each in range 0-1 if 0<=r,g,b<=255).
Definition: i_hsv.cpp:133