SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
hue_saturation.h
Go to the documentation of this file.
1#pragma once
2
7
8#include "image.h"
9
10namespace satdump
11{
12 namespace image
13 {
14 enum HueRange
15 {
16 HUE_RANGE_ALL,
17 HUE_RANGE_RED,
18 HUE_RANGE_YELLOW,
19 HUE_RANGE_GREEN,
20 HUE_RANGE_CYAN,
21 HUE_RANGE_BLUE,
22 HUE_RANGE_MAGENTA
23 };
24
30 struct HueSaturation
31 {
32 double hue[7];
33 double saturation[7];
34 double lightness[7];
35
36 double overlap;
37
38 HueSaturation();
39 };
40
52 void hue_saturation(Image &image, HueSaturation hueSaturation);
53
57 void rgb_to_hsl(double r, double g, double b, double &h, double &s, double &l);
58
62 void hsl_to_rgb(double h, double s, double l, double &r, double &g, double &b);
63 } // namespace image
64} // namespace satdump
Definition image.h:17
Core Image class.
Hue/Saturation settings. Each array should be access using HueRange enum values.
Definition hue_saturation.h:31