Light Effect.. from blur?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Light Effect.. from blur?

Post by dognose »

Hi,

I'm trying to make this image animation effect with IM:

Image

I know I'd have to do it frame by frame, probably from a script. I'm just wondering what command I could use. Is there a directional blur that would create this?

-d
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

That type of radial blruing is currently not implemented in IM yet :(

what is implemented is demonstrated in IM Examples, Specialized Blurs
http://www.cit.gu.edu.au/~anthony/graph ... cial_blurs

I have a proposal for a rearangement of the special blurs that would implement this and many other blur styles....
http://www.cit.gu.edu.au/~anthony/graph ... ture/#blur

I myself would like to have this blur implemented.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Post by dognose »

yeah, the "radial-blur" is really rotational blur..

It would be nice to have this blur added.
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Light Effect.. from blur?

Post by dognose »

I'm wondering if anyone has any new ideas on how to do this effect?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Light Effect.. from blur?

Post by fmw42 »

It is one of the effects that I had planned on implementing with my scripts (basically a single frame). But right now I don't have the time.

You can try to implement it with the use of a colored (binary?) mask image and iterate -distort SRT. Then composite that over the original image.

Basically you script each frame to do a different iterated affine blur changing the direction. See some similar ones that I generated as scripts using iterated affine blurs - zoomblur (just the scale part of SRT) and recursion (varies scale, rotation and translation). You will need to iterate on zoom and rotation with SRT.

I got the ideas from some free java code I found on the web. See http://www.jhlabs.com/ip/blurring.html at the bottom where he does Casting Rays (http://www.jhlabs.com/ip/RaysFilter.java). I then reverse-engineered the effects in IM as a script using -distort SRT.

He has a lot more filter effects at http://www.jhlabs.com/ip/filters/
Post Reply