Giter Club home page Giter Club logo

exacthistogramspecification's Introduction

Exact Histogram Specification

This is a Python implementation of Exact Histogram Specification by Dinu Coltuc et al.

In contrast to traditional histogram matching algorithms which only approximate a reference histogram, this technique can match the exact reference histograms. This is accomplished by using several kernels which calculate the average of a neighbourhood. Thereby a pixel can not only be sorted after its value, but also after its average values in more than one neighbourhood. This helps to create a truely bijective function which is a prerequisite for exact histogram matching.

More information can be found in the original paper or in Digital Image Processing, 4th Edition, chapter 3.3 which describes the algorithm more concise.

exacthistogramspecification's People

Contributors

stefanod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

exacthistogramspecification's Issues

Adaptation for medical images

Hi,

I have been trying (unsuccessfully) to use your code for the histogram matching of medical images. I obtain as a result the exact same input image. I am passing a 120x120x100 matrix. Anyclue what can be happening?

Lower memory usage

Using numpy.lexsort() results in very high memory usage. If an image is too big, this can result in a signal 9 abort.
If someone really needs this implementation for production, than this issue has to be addressed.

Pull requests are welcome.

Image format

The package appears really nice. Do you know if and how this could work with svs images?

Too much white output

Hi sir, I am using your code but not getting the correct output. The output image is too much white.
please tell me if I am doing something wrong. Also, I have a deadline in two days. Please help me as early as possible. Thank you

Capture

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.