-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathluv_space.h
More file actions
45 lines (37 loc) · 1.47 KB
/
luv_space.h
File metadata and controls
45 lines (37 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// luv_conversions.h
#pragma once
#ifndef LUV_CONVERSIONS_H
#define LUV_CONVERSIONS_H
// --- Start of "extern C" block ---
#ifdef __cplusplus
extern "C" {
#endif
#include "import_exports.h"
#include "color_types.h"
#include "white_points.h" // For white point definitions used in XYZ to Lab conversions.
/// <summary>
/// Converts a color from XYZ color space to Luv color space.<br/>
/// (Default: WP_D65_FULL white point is used for the conversion.)
/// </summary>
/// <param name="rgb">The color in XYZ color space to convert.</param>
/// <returns>The color converted to Luv color space.</returns>
COLORS_DEV_API LuvSpace XyzToLuv(XyzSpace xyz);
/// <summary>
/// Converts a color from XYZ color space to Luv color space using a specified white point.
/// </summary>
/// <param name="xyz">The color in XYZ color space to convert.</param>
/// <param name="wp">The white point type to use for the conversion.</param>
/// <returns>The color converted to LUV color space.</returns>
COLORS_DEV_API LuvSpace XyzToLuvEx(XyzSpace xyz, WhitePointType wp);
/// <summary>
/// Converts an RGB color to the XYZ Space then to CIE Luv color space.<br/>
/// (Default: WP_D65_FULL white point is used between XYZ to Luv for this conversion.)
/// </summary>
/// <param name="rgb">The RGB color to convert.</param>
/// <returns>The color represented in the CIE Luv color space.</returns>
COLORS_DEV_API LuvSpace RgbToLuv(RgbColor rgb);
// --- End of "extern C" block ---
#ifdef __cplusplus
}
#endif
#endif