Skip to content
  • Robert Sachunsky's avatar
    sauvola-ms*: fix passing k parameter(s) consistently... · 28495c94
    Robert Sachunsky authored and Edwin Carlinet's avatar Edwin Carlinet committed
    - avoid using global (header) constants:
      always pass k functionally in internal
      routines
    - define macro constants for default k
      at all scales (original 0.2 / 0.3 / 0.5
      scheme)
    - use these macro defaults in both API
      (header-defined defaults) and CLIs
      (unit-defined defaults) for all
      variants (sauvola-ms/-fg/-split/-debug)
    - in the CLIs, avoid setting the default
      via option parser (which would not be
      distinguishable from an override setting);
      instead, merely hint at the defaults in
      the description string, and also repair
      option priority (defaults < all-k < k2/k3/k4
      override)
    28495c94