From e92c6a0a847b9f672ebde43a337e9d1c64f1303d Mon Sep 17 00:00:00 2001 From: Jan Kowalczyk Date: Tue, 11 Jun 2024 11:45:57 +0200 Subject: [PATCH] added horizontal scale parameter --- tools/render2d.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/render2d.py b/tools/render2d.py index 2d3d6db..a1b2d8a 100644 --- a/tools/render2d.py +++ b/tools/render2d.py @@ -64,6 +64,7 @@ def render_2d_images( roi_angle_start: float, roi_angle_width: float, vertical_scale: int, + horizontal_scale: int, ) -> list[Path]: rendered_images = [] @@ -99,7 +100,7 @@ def render_2d_images( colormap_name, missing_data_color, reverse_colormap, - horizontal_resolution=roi_index_width if roi_angle_width != 360 else horizontal_resolution, + horizontal_resolution=(roi_index_width if roi_angle_width != 360 else horizontal_resolution) * horizontal_scale, vertical_resolution=(pc.data['ring'].max() + 1) * vertical_scale ) @@ -205,6 +206,12 @@ def main() -> int: type=positive_int, help="multiplier for vertical scale, for better visualization", ) + parser.add_argument( + "--horizontal-scale", + default=1, + type=positive_int, + help="multiplier for horizontal scale, for better visualization", + ) args = parser.parse_args() @@ -231,6 +238,7 @@ def main() -> int: args.roi_angle_start, args.roi_angle_width, args.vertical_scale, + args.horizontal_scale, ) if args.output_video: