about summary refs log tree commit diff
path: root/lri-proto/proto/color_calibration.proto
blob: bef82f7ef4e38ff378a7dfaddc467f9cc0a75770 (plain)
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
46
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];
    }
}