¡@

Home 

2014/10/15 ¤U¤È 10:10:27

iphone Programming Glossary: inputimagetexture

How do I modify a GPUImageGaussianSelectiveBlurFilter to operate over a rectangle instead of a circle?

http://stackoverflow.com/questions/12257429/how-do-i-modify-a-gpuimagegaussianselectiveblurfilter-to-operate-over-a-rectangl

has the following code varying highp vec2 textureCoordinate varying highp vec2 textureCoordinate2 uniform sampler2D inputImageTexture uniform sampler2D inputImageTexture2 uniform lowp float excludeCircleRadius uniform lowp vec2 excludeCirclePoint uniform.. vec2 textureCoordinate varying highp vec2 textureCoordinate2 uniform sampler2D inputImageTexture uniform sampler2D inputImageTexture2 uniform lowp float excludeCircleRadius uniform lowp vec2 excludeCirclePoint uniform lowp float excludeBlurSize uniform.. uniform lowp float excludeBlurSize uniform highp float aspectRatio void main lowp vec4 sharpImageColor texture2D inputImageTexture textureCoordinate lowp vec4 blurredImageColor texture2D inputImageTexture2 textureCoordinate2 highp vec2 textureCoordinateToUse..

How do I perform a fast pixellation filter on an image?

http://stackoverflow.com/questions/5049041/how-do-i-perform-a-fast-pixellation-filter-on-an-image

is the result of a fragment shader with the following GLSL code varying highp vec2 textureCoordinate uniform sampler2D inputImageTexture uniform highp fractionalWidthOfPixel void main highp vec2 sampleDivisor vec2 fractionalWidthOfPixel highp vec2 samplePos.. highp vec2 samplePos textureCoordinate mod textureCoordinate sampleDivisor gl_FragColor texture2D inputImageTexture samplePos In my benchmarks GPU based filters like this perform 6 24X faster than equivalent CPU bound processing routines..