From 5007578cacbc64d4b9854d1cfde857c00647eb35 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 11 Mar 2022 12:38:56 -0500 Subject: Improve stereo image separation --- src/spatial.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/spatial.c b/src/spatial.c index b764a03..c79b8e8 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -270,11 +270,19 @@ ssize_t scene_fill(xas_spatial_scene *scene, value_r = sample_scale(src[i], obj->distance_r); if (!within_cone(obj->point, cone_l)) { - value_l /= 3.0f; + if (within_cone(obj->point, cone_r)) { + value_l /= 8.0f; + } else { + value_l /= 3.0f; + } } if (!within_cone(obj->point, cone_r)) { - value_r /= 3.0f; + if (within_cone(obj->point, cone_l)) { + value_r /= 8.0f; + } else { + value_r /= 3.0f; + } } if (buffer->index == buffer->size) { -- cgit v1.2.3