ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: e930bc1bbaca8df7b3c1b146bb7def3424200dd6
Parent: 3b3aec3f666b5eecc311a99b5f712bfa8431412e
Author: Randy Palamar
Date:   Wed, 24 Jul 2024 12:51:27 -0600

ensure scale bar line count is finite

Diffstat:
Mbeamformer.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/beamformer.c b/beamformer.c @@ -468,8 +468,8 @@ do_beamformer(BeamformerCtx *ctx, Arena arena) v2 line_step_mm = {.x = 3, .y = 5}; uv2 line_count = { - .x = output_dim.x * 1e3/line_step_mm.x + 1, - .y = output_dim.y * 1e3/line_step_mm.y + 1, + .x = ABS(output_dim.x) * 1e3/line_step_mm.x + 1, + .y = ABS(output_dim.y) * 1e3/line_step_mm.y + 1, }; s8 txt = s8alloc(&arena, 64);