Skip to content

This is a script for dividing the histogram of Grayscale image into N intervals (shades of gray).

Notifications You must be signed in to change notification settings

haalogen/hist_divider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

hist_divider

This is a script for dividing the histogram of Grayscale image into N intervals ("shades of gray"), by the means of integral sums of the histogram.

####Idea: All intervals should have approximately equal integral sums.

####Input:

  • img_fname -- Image filename
  • N -- Wanted number of intervals

####Output:

  • intervals -- array (of pairs) of shape (N, 2); each pair: [left_margin, right_margin]

About

This is a script for dividing the histogram of Grayscale image into N intervals (shades of gray).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages