BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.23k stars 4.61k forks source link

change the direction of GPUImageTiltshiftFilter #229

Open haihw opened 12 years ago

haihw commented 12 years ago

I tried GPUImageTiltshiftFilter to make tilt-shift effect, but this filter seem only give me the effect in horizontal direction. So how could I apply this filter in the free direction. I mean user can change the direction by doing rotation gesture like the feature in Instagram? Thank you!

BradLarson commented 12 years ago

I'm working on having the user input two points for the tilt shift, instead of just a top and bottom position for the in-focus region. I'll see if can get this functional soon.

haihw commented 12 years ago

May you also make the radial tilt-shift function?

BradLarson commented 12 years ago

Take a look at the GPUImageGaussianSelectiveBlurFilter, which does this. One caveat (as mentioned in issue #216) is that my normalized coordinate system causes this to have more of an elliptical appearance than circular right now. I'm working on a fix for that, too.

haihw commented 12 years ago

thanks. i'll wait for your fix