Skip to content

ImageProcessing-ElectronicPublications/stbaithreshold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stbaithreshold

Adaptive Thresholding Using the Integral Image.

Based on https://github.com/rmtheis/bradley-adaptive-thresholding

Use the stb image library for processing, you can ignore it.

Build:

cmake .
make

Usage:

stbaithreshold [options] in.png out.png
options:
  -d NUM    delta local threshold (default 0)
  -e N.N    edgediv factor local threshold (default 0.0)
  -p NUM    count parts (default 8)
  -s N.N    scale factor local threshold (default 0.15)
  -w NUM    window size for edgediv (default 20)
  -h        show this help message and exit

Example:

  stbaithreshold images/image.png images/output.png

image.png

Image

output.png

Image