From a962ba9c853a797e9a41b2830ec0181b167d8cd9 Mon Sep 17 00:00:00 2001 From: gennyble Date: Sun, 10 Sep 2023 02:44:01 -0500 Subject: reorg --- lri-proto/proto/distortion.proto | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lri-proto/proto/distortion.proto (limited to 'lri-proto/proto/distortion.proto') diff --git a/lri-proto/proto/distortion.proto b/lri-proto/proto/distortion.proto new file mode 100644 index 0000000..cdd8f33 --- /dev/null +++ b/lri-proto/proto/distortion.proto @@ -0,0 +1,31 @@ +syntax = "proto2"; + +package ltpb; + +import "point2f.proto"; +import "rectanglei.proto"; + +message Distortion { + optional Polynomial polynomial = 1; + message Polynomial { + required Point2F distortion_center = 1; + required Point2F normalization = 2; + repeated float coeffs = 3 [packed = true]; + optional float fit_cost = 4; + optional RectangleI valid_roi = 5; + } + + optional CRA cra = 2; + message CRA { + required Point2F distortion_center = 1; + required float sensor_distance = 2; + required float exit_pupil_distance = 3; + required float pixel_size = 4; + repeated Point2F cra = 5; + repeated Point2F coeffs = 6; + optional float fit_cost = 7; + optional RectangleI valid_roi = 8; + optional float lens_hall_code = 9; + optional float distance_hall_ratio = 10; + } +} -- cgit 1.4.1-3-g733a5