An open API service indexing awesome lists of open source software.

https://github.com/karpeleslab/mblur

golang port of imagemagick's motionBlur function
https://github.com/karpeleslab/mblur

Last synced: 12 months ago
JSON representation

golang port of imagemagick's motionBlur function

Awesome Lists containing this project

README

          

[![GoDoc](https://godoc.org/github.com/KarpelesLab/mblur?status.svg)](https://godoc.org/github.com/KarpelesLab/mblur)

# mblur

Multi-threaded motion blur adapted from ImageMagick.

```
% MotionBlurImage() simulates motion blur. We convolve the image with a
% Gaussian operator of the given radius and standard deviation (sigma).
% For reasonable results, radius should be larger than sigma. Use a
% radius of 0 and MotionBlurImage() selects a suitable radius for you.
% Angle gives the angle of the blurring motion.
%
% Andrew Protano contributed this effect.
%
% The format of the MotionBlurImage method is:
%
% Image *MotionBlurImage(const Image *image,const double radius,
% const double sigma,const double angle,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o image: the image.
%
% o radius: the radius of the Gaussian, in pixels, not counting
% the center pixel.
%
% o sigma: the standard deviation of the Gaussian, in pixels.
%
% o angle: Apply the effect along this angle.
```