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

Contrast-reduced Pyramid selection #19

Open
tokee opened this issue Jul 13, 2016 · 0 comments
Open

Contrast-reduced Pyramid selection #19

tokee opened this issue Jul 13, 2016 · 0 comments
Assignees

Comments

@tokee
Copy link
Owner

tokee commented Jul 13, 2016

The typical greyscale newspaper page has a histogram with some black/dark-grey and a lot of near-white:

             *
             *
             *
             *
             *
  **         *
 *****      **
****************

This means that the average for the whole page will be around light-grey for most of the pages. As each pixel on a page is to be paired up with a fitting average for another page, this means that there are few candidates around the two intensities that has few pixels: Dark-grey and light-grey. A histogram of the averages of a 1000 pages sample looks roughly like this:






      *****
    *********
  ************

The use of dynamic filling (see issue #18) extends the amount of candidates, but still the visual result has poor contrast, especially for dark-grey areas found in some images.

Perhaps the selection of Pyramids could be done using a formula, that squashes the range 0-255 into a tighter range, that better matches the histogram for the averages? The transformed mapping-pixels would then form this histogram:

           *
           *
           *
           *
      *    *
      *    *
     **** **
   ***********

Together with dynamic fills extending the amount of candidates, this should make it possible to adequately represent the transformed pixels. It would result in a lower contrast image, but the different greys within the range would be more distinct.

@tokee tokee self-assigned this Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant