Page 1 of 1
Tilt-Shift Effect
Posted: 2012-12-26T05:08:12-07:00
by goldskif
http://www.imagemagick.org/Usage/photos/#tilt_shift
Tried to do this effect, but in the Central part of the (black map) will still get a slight blur. (((
How to leave a sharp image on the black map?
Re: Tilt-Shift Effect
Posted: 2012-12-26T11:23:25-07:00
by fmw42
You mask must be pure black in the area you do not want to blur. Check your mask to see what values you have in it.
Re: Tilt-Shift Effect
Posted: 2012-12-26T13:22:33-07:00
by goldskif
I tried it was given in the link example. The black part of the still slightly blurred .
Re: Tilt-Shift Effect
Posted: 2012-12-26T14:14:06-07:00
by fmw42
I followed the example and got a good result just as shown in the example without the center being blurry. I am using IM 6.8.1.3 Q16 Mac OSX Snow Leopard.
What version of IM and platform are you using?
Post a link to your brightened input image and to your gradient image so we can see if they are created correctly.
Alternately, use
compare -metric rmse exampleimage yourimage null:
on each of the input and gradient images to see what the differences are.
Re: Tilt-Shift Effect
Posted: 2012-12-26T14:59:08-07:00
by goldskif
Linux Ubuntu 12.04
Version: ImageMagick 6.6.9-7 2012-08-17 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
convert beijing_contrast.jpg beijing_blurmap.jpg -compose Blur -set option:compose:args 10 -composite 1_test.jpg
main result
Re: Tilt-Shift Effect
Posted: 2012-12-26T16:24:24-07:00
by fmw42
I would actually need to see your input image and gradient mask, unless you used the ones create in Anthony's example rather than creating them from his code.
The same command using Anthony's example images works fine for me.
My guess is that your gradient mask is not going to full black. Try this and see if it makes a difference.
convert beijing_contrast.jpg \( beijing_blurmap.jpg -auto-level \) -compose Blur -set option:compose:args 10 -composite 1_test.jpg
If this does not work or change the result, then perhaps you need to upgrade IM as it is over 100 versions old. You may have a version that has some bug.
Re: Tilt-Shift Effect
Posted: 2013-01-03T21:02:05-07:00
by anthony
There was some bugs (and probably still is) in the variable blur. Especially for the 'low blur' parts.
Best test is with a gradient against a half black half white test image and looking at the results at a pixel level.
See Variable Blur Examples
http://www.imagemagick.org/Usage/mapping/#blur
Specifically the thrid example.
Code: Select all
convert blur_map_bool.gif blur_map_gradient.gif \
-compose blur -define compose:args=15 -composite \
blur_edge_gradient.gif
-->
Use a smaller argument for micro blur testing.