What is the best way to smudge an image programmatically?

I was messing around with image manipulation, mostly using Python. I'm not too worried about performance right now, as I'm just doing it for fun. So far I can upload bitmap images, combine them (according to some function) and do some REALLY crude analysis (find the brightest / darkest points, such things).

I would like to be able to take an image, create a set of control points (which I can more or less do now), and then blur the image, starting from the control point and moving in a certain direction. What I'm not sure about is the lubrication process itself. What is a good algorithm for this?

+3
source share
5 answers

Try PythonMagick (ImageMagick library bindings for Python). If you cannot find it in your distribution repositories, go here: http://www.imagemagick.org/download/python/

It has more effect functions than you can shake a stick.

+2
source

One method is to apply Gaussian blur (or some other blur) for each point in the region defined by your point control.

+1
source

, , .

+1

, , .

0

, , , , -. "smudge", Imagick for PHP, , . , : Magickpaint

0

Source: https://habr.com/ru/post/1710169/


All Articles