Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added image.entropy() method #3530

Closed
wants to merge 3 commits into from

Commits on Jan 2, 2019

  1. Added image.entropy() method

    This calculates the entropy for the image, based on the histogram.
    Because this uses image histogram data directly, the existing C
    function underpinning the `image.histogram()` method was abstracted
    into a macro, and a new C function was added that uses this macro.
    The new `image.entropy()` method is based on `image.histogram()`,
    and will accept the same arguments to calculate the histogram
    data it will use to assess the entropy of the image.
    The algorithm and methodology is based on existing Python code:
        https://git.io/fhmIU
    ... A test case in the `Tests/` directory, and doctest lines in
    `selftest.py`, have both been added and checked.
    
    Subsequent commits:
    * Using assertAlmostEqual() in entropy tests
    * Added description of `extrema` arguments.
    * Only test seven digits of float returned by im.entropy()
    fish2000 committed Jan 2, 2019
    Configuration menu
    Copy the full SHA
    4ce620c View commit details
    Browse the repository at this point in the history
  2. Removed log2

    radarhere committed Jan 2, 2019
    Configuration menu
    Copy the full SHA
    2ec7484 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2019

  1. Merge pull request #1 from radarhere/image-entropy-method

    Removed log2
    fish2000 committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    6cc7a99 View commit details
    Browse the repository at this point in the history