I'm curious to discus & learn what ImageMagick can do with regards to providing effects like https://www.lunapic.com/editor/index.ph ... ves] Waves
(& other Art effects) which I guess are using image templates as modifiers.
Though I've written a bit of shell script & am comfortable working at the terminal, image processing is a new area of research.
The intention for me is to be able to animate film footage, which I can later use for composite video....when the story is slow, or I'm looking to suggest a state of mind to a film audience that can't (reasonably) be done in camera. I'd been looking at automating the push of files to Lunapic for processing, particularly under the create your own template/stencil/effect, but it seems that Image Magick may be doing much of the work for Lunapic....many effects are very similar in appearance. The process of using Lunapic for animation seems very inefficient & may include some unwanted downsizing.
I've had a look at some of Fred's scripts, to produce effects such as hexagons, but would like to be able to (reasonably) take any image as a template for processing a series of images that I can import into a post-production tool to further tweak and stitch back into video.
I've also done some experiments overcranking when filming and using optical flow/motion blur to add extra frames to mimic high speed filming effects such as bullet time. What I've found with the the stock effects in Final Cut Pro is that rather than blending from one frame to the next, it seems to dissolve the image out to nothing, rather than attempting to add frames that morph to the next filmed frame. I'd guess there are vendors selling plugins with additional control surfaces to allow effects to be fine-tuned, but I'm keen to take a look under the hood, if anyone's got any insight to share....the creative misuse of tools is a nice area to consider.
Using Image Magic to produce effect like Lunapic's Waves.
-
- Posts: 8
- Joined: 2017-07-30T03:37:18-07:00
- Authentication code: 1151
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Using Image Magic to produce effect like Lunapic's Waves.
Any image processing can be applied to the frames of a video. I have a couple of examples on YouTube.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Using Image Magic to produce effect like Lunapic's Waves.
See more of this neural net painting references at https://github.com/jcjohnson/neural-sty ... ural-Style
-
- Posts: 8
- Joined: 2017-07-30T03:37:18-07:00
- Authentication code: 1151
Re: Using Image Magic to produce effect like Lunapic's Waves.
@snibgo Keen to understand how you've subtracted the background from the moving components to create an isolated layer of movement, which at times you've then added effects to and added back what I assume to be the previously removed layer. Is this anywhere near accurate on your process?
When I attempt to subtract a still of the background from a still containing the subject, I'm getting an unchanged image. (doh).
eg convert frame-025100.jpg subme.jpg -compose ChangeMask -composite overlay_removed_bg.jpg
@fmw42 Yeah that neural network stuff is fancy, though I guess trying to keep it relatively simple whilst taking the first few steps might help.
Lunapic allows the upload of a custom template to then process against an image (or images). What I found several weeks ago was that an image of multiple small spiderswebs used as the stencil for an image of city blocks from high above produced a decent effect....city blocks made of spiders web, rather than using large components (eg a single web) as template.
When I attempt to subtract a still of the background from a still containing the subject, I'm getting an unchanged image. (doh).
eg convert frame-025100.jpg subme.jpg -compose ChangeMask -composite overlay_removed_bg.jpg
@fmw42 Yeah that neural network stuff is fancy, though I guess trying to keep it relatively simple whilst taking the first few steps might help.
Lunapic allows the upload of a custom template to then process against an image (or images). What I found several weeks ago was that an image of multiple small spiderswebs used as the stencil for an image of city blocks from high above produced a decent effect....city blocks made of spiders web, rather than using large components (eg a single web) as template.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Using Image Magic to produce effect like Lunapic's Waves.
I use "-compose Difference", eg where "f0004.png" is a frame with people and "fBack.png" has no people:blinkybagger wrote:When I attempt to subtract a still of the background from a still containing the subject, I'm getting an unchanged image.
![Image](http://snibgo.com/imforums/f0004.jpg)
![Image](http://snibgo.com/imforums/fBack.jpg)
Code: Select all
convert fBack.png f0004.png -compose Difference -composite -level 3%,4% -colorspace Gray mask.png
![Image](http://snibgo.com/imforums/vd_mask.png)
Then I can put the people back in with transparency or a colour shift or whatever effect I want:
Code: Select all
convert backgrnd.png frame_0043_with_fx.png mask.png -compose Over -composite out_frame_0043.png
snibgo's IM pages: im.snibgo.com
-
- Posts: 8
- Joined: 2017-07-30T03:37:18-07:00
- Authentication code: 1151
Re: Using Image Magic to produce effect like Lunapic's Waves.
@snibgo And by generating a mask for each frame, we can isolate the movement we seek, which then can do as we please with.
I'm a bit distracted and short of sleep at the moment....when I get my head together, I'll have another attempt.
Thanks for the example!
I'm a bit distracted and short of sleep at the moment....when I get my head together, I'll have another attempt.
Thanks for the example!
-
- Posts: 8
- Joined: 2017-07-30T03:37:18-07:00
- Authentication code: 1151
Re: Using Image Magic to produce effect like Lunapic's Waves.
@snibgo And by generating a mask for each frame, we can isolate the movement we seek & then move onto the next frame. After, which then can do as we please with the isolated layer....I'd tried this with some Audio some months ago.
I'm a bit distracted and short of sleep at the moment....when I get my head together, I'll have another attempt.
Thanks for the example!
I'm a bit distracted and short of sleep at the moment....when I get my head together, I'll have another attempt.
Thanks for the example!