Skip to content

About

The DeBlur filter is an iterative UnSharp of an image.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stbideblur

DeBlur filter based of Gauss blur. Used:

The DeBlur filter is an iterative UnSharp of an image.

O = I
iterations{
    B = blur(O)
    D = I - B
    U = O + D
    O = U
}

This filter was first applied in STEX (2026) in a single-component version (Y, the values of the color components were aligned in accordance with the brightness values before and after the filter).

Here this filter is implemented in a full-color version.

Examples

hollywood

./stbideblur ./images/hollywood.jpg ./images/hollywood-deblur-s5-i5.png

hollywood-deblur

Usage

./stbideblur [-h] [-s sigma] [-i count] [-m mixed] [-a axel] input-file output.png

-s sigma The sigma of the gauss normal distribution (number >= 0.5). Larger values result in a stronger blur.

-i count The count iters.

-m mixed The mixed coefficient.

-a axel The axeleration coefficient.

-h display this help and exit.

You can use either sigma to specify the strengh of the blur.

The performance is independent of the blur strengh (sigma). This tool is an implementation of the paper "Recursive implementaion of the Gaussian filter" by Ian T. Young and Lucas J. van Vliet.

stb_image and stb_image_write by Sean Barrett and others is used to read and write images.

Installation

  • Clone the repo or download the source git clone --recurse-submodules https://github.com/ImageProcessing-ElectronicPublications/stbicomix
  • Execute make
  • Done. Either use the stbideblur executable directly or copy it somewhere in your PATH.

Links

About

The DeBlur filter is an iterative UnSharp of an image.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages