Skip to content

Commit

Permalink
i.segment: Move unused variable value into a code comment (#4153)
Browse files Browse the repository at this point in the history
* remove unused variable

* Specify old ideas in the comment explicitly

---------

Co-authored-by: Vaclav Petras <[email protected]>
  • Loading branch information
ShubhamDesai and wenzeslaus authored Sep 17, 2024
1 parent 95c123d commit 826ab62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imagery/i.segment/mean_shift.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 826ab62

Please sign in to comment.