From 826ab62d781b07ac456cf0056631f39882419859 Mon Sep 17 00:00:00 2001 From: ShubhamDesai <42180509+ShubhamDesai@users.noreply.github.com> Date: Mon, 16 Sep 2024 20:18:31 -0400 Subject: [PATCH] i.segment: Move unused variable value into a code comment (#4153) * remove unused variable * Specify old ideas in the comment explicitly --------- Co-authored-by: Vaclav Petras --- imagery/i.segment/mean_shift.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imagery/i.segment/mean_shift.c b/imagery/i.segment/mean_shift.c index 833ff5ca8a8..1d838335352 100644 --- a/imagery/i.segment/mean_shift.c +++ b/imagery/i.segment/mean_shift.c @@ -179,8 +179,9 @@ int mean_shift(struct globals *globals) hspec = globals->hr; if (hspec < 0 || hspec >= 1) { - hspec = sqrt(avgdiffavg / 10.0); - hspec = avgdiffavg; + // Other ideas how to compute this are: + // sqrt(avgdiffavg / 10.0) + // avgdiffavg (as is) hspec = mindiffzeroavg; if (do_progressive)