diff options
author | gennyble <gen@nyble.dev> | 2023-09-10 02:44:01 -0500 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2023-09-10 02:44:01 -0500 |
commit | a962ba9c853a797e9a41b2830ec0181b167d8cd9 (patch) | |
tree | 7de53dfcaf87c5d4b43f2e8b38161eb193c136ad /lri-proto/proto/color_calibration.proto | |
parent | 70187683361d97a8b5a251567323c323c90302f2 (diff) | |
download | lri-rs-a962ba9c853a797e9a41b2830ec0181b167d8cd9.tar.gz lri-rs-a962ba9c853a797e9a41b2830ec0181b167d8cd9.zip |
reorg
Diffstat (limited to 'lri-proto/proto/color_calibration.proto')
-rw-r--r-- | lri-proto/proto/color_calibration.proto | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lri-proto/proto/color_calibration.proto b/lri-proto/proto/color_calibration.proto new file mode 100644 index 0000000..bef82f7 --- /dev/null +++ b/lri-proto/proto/color_calibration.proto @@ -0,0 +1,47 @@ +syntax = "proto2"; + +package ltpb; + +import "matrix3x3f.proto"; +import "point3f.proto"; +import "point2f.proto"; + +message ColorCalibration { + required IlluminantType type = 1; + enum IlluminantType { + A = 0; + D50 = 1; + D65 = 2; + D75 = 3; + F2 = 4; + F7 = 5; + F11 = 6; + TL84 = 7; + UNKNOWN = 99; + } + + required Matrix3x3F forward_matrix = 2; + required Matrix3x3F color_matrix = 3; + required float rg_ratio = 4; + required float bg_ratio = 5; + repeated Point3F macbeth_data = 6; + repeated Point2F illuminant_spd = 7; + + optional SpectralData spectral_data = 8; + message SpectralData { + required ChannelFormat format = 1; + enum ChannelFormat { + MONO = 0; + RGB = 1; + BAYER_RGGB = 2; + } + + repeated SpectralSensitivity channel_data = 2; + } + + message SpectralSensitivity { + required uint32 start = 1; + required uint32 end = 2; + repeated float data = 3 [packed = true]; + } +} |