ios - Create a tilt-shift filter like instagram in objective C -


i trying create tilt-shift filter of image instagram or idarkroom in ios.

my proposed method use different gaussian blur levels partial image. don't known how control area apply different gaussian blur levels, when user can change effect area rotate, scale, etc.

sorry complex presentation simply, want create tilf-shift tool ios in instagram.

i search , found powerful framework https://github.com/bradlarson/gpuimage, it's not solution if include huge framework tiny apps

i found solution:

use filter gpuimagegaussianselectiveblurfilter , change computing distancefromcenter on code:

distancefromcenter = abs((texturecoordinate2.x - excludecirclepoint.x) * aspectratio*cos(angle) + (texturecoordinate2.y-excludecirclepoint.y)*sin(angle)); 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -