Tilt Shift Miniaturization : Blur effect

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

Tilt Shift Miniaturization : Blur effect

Post by dognose »

I'm wondering if there's an easy way to create the Tilt Shift effect?

http://tiltshiftmaker.com/tilt-shift-photo-gallery.php

It seems it can be done just by blurring parts of the photo, and maybe upping the colors?

Here is the photoshop tutorial.

http://www.tiltshiftphotography.net/pho ... torial.php
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Tilt Shift Miniaturization : Blur effect

Post by fmw42 »

dognose wrote:I'm wondering if there's an easy way to create the Tilt Shift effect?

http://tiltshiftmaker.com/tilt-shift-photo-gallery.php

It seems it can be done just by blurring parts of the photo, and maybe upping the colors?

Here is the photoshop tutorial.

http://www.tiltshiftphotography.net/pho ... torial.php

Should be pretty easy if that is all it is. Just make a mask image (you may have to manually trace it out elsewhere). Then make a blurred copy of the image and then just composite the two together using the mask. You may want to feather the outline of the mask ( ramp it by blurring ) so that transition is not too sudden and you may want to change the brightness and contrast of the two (darken and/or decrease contrast on the blurred background and lighten and/or increase contrast and/or saturation of the foreground unblurred image. -modulate can be used to adjust the brightness and saturation and -contrast can be used for the contrast, if that is desired).

Do you have a good image that you want to try it on? If so, post it.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Tilt Shift Miniaturization : Blur effect

Post by anthony »

The problem with shift-tilt is that is isn't as straight forward as a composition of the image with its blurred self.

Shift-tilt is a variable blur, with heavy blur at the top, zero in the lower-middle and medium blur at the bottom.

Fred I believe you already have a script that generates N blurred images of variable amounts then combines them to produce a rough variable blurred image. That will do the task.
Hmmm
http://www.fmwconcepts.com/imagemagick/ ... /index.php

All you need is to use a vertical gradient masking image.

ASIDE: variable blur is something I have been wanting built into IM for a long time. But then the whole specialize blurs needs to be overhauled in terms of API handling.

PPS; it should be posible to now implement a variable blur, basied on the area resampling filter code that is implemented for General distortions!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Tilt Shift Miniaturization : Blur effect

Post by dognose »

It does seem like you could use a more complicated mask to create the effect.

Here is one I found a neat version of the

eiffel tower: http://www.flickr.com/photos/arnarbi/50 ... otostream/

using this mask: http://www.flickr.com/photos/arnarbi/50 ... otostream/

I am wondering how much of a difference the easy and hard versions are ..
that is
blend normal image and fully burred image based on mask
vs
fully variable blur based on mask
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Tilt Shift Miniaturization : Blur effect

Post by fmw42 »

That is a nice example and his blurring is done via a pseudo-depth mask. But in order to try anything we need a good example of the raw image and a version of the final image to try to match to.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Tilt Shift Miniaturization : Blur effect

Post by anthony »

How about just trying to generate a spreading shadow.

For example take the sheared shadow compound font Image
and try to make that shadow more fuzzy at the bottom than at the top.

If you can do that you can do tiltshift as it is the same effect.

I tried in the past to blend a single blur method, and it just does not work!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply