/stbidespeckle

Stb Image Despeckle.

Primary LanguageCThe UnlicenseUnlicense

stbidespeckle

Stb Image Despeckle.

origin despeckle stbimmetrics (vifp1)
(lossless) (default opts: radius = 5, coef. = 0.25) (black - bad, white - good)
orig despeckled metrics: vifp1

build

load submodules

submodules:

$ git submodule init
$ git submodule update

install dependencies

build dependencies:

  • build-essential
  • cmake
$ sudo apt-get install build-essential cmake

compilation

$ mkdir build
$ cd build
$ cmake ..
$ make

use

The first and second parameters specify the paths to the image and the result {PNG}. The -c option sets the despeckle factor. The -r option sets the radius despeckle.

./stbidespeckle [options] image_in image_out.png
options:
  -c N.N    coef (default 0.250000)
  -r NUM    radius (default 5)
  -h        show this help message and exit

structure

  • dependencies.c - API stb
  • despeckle.h - despeckle image.
  • stb/ - stb
  • stbidespeckle.c - CLI program.