added horizontal scale parameter

This commit is contained in:
Jan Kowalczyk
2024-06-11 11:45:57 +02:00
parent 7486e110ee
commit e92c6a0a84

View File

@@ -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: