GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

GPUImageGaussianSelectiveBlurFilter excludeCirclePoint axes are off

Open joshholat opened this issue 14 years ago • 1 comments

It appears as if some of the recent changes to the orientation filter of the camera threw off the excludeCirclePoint for the GPUImageGaussianSelectiveBlurFilter. For instance, the code below places the exclude point in the top right of the screen (with stillCamera.outputImageOrientation set to UIInterfaceOrientationPortrait). Shouldn't it be in the upper left corner of the screen?

After messing with it a little bit more, it appears as if it is just rotated 90 degrees to the right (i.e. setting it to the top right moves it to the bottom right, setting it to the bottom right moves it to the bottom left).

[radialBlurFilter setExcludeCirclePoint:CGPointMake(0.1, 0.1)];

This occurred in my app and also occurs in the FilterShowcase example app with the latest version of the code.

joshholat avatar May 10 '12 17:05 joshholat

Good catch. This wasn't just a problem with that filter, so I went through and corrected a bunch of others that used in-image coordinates of some kind.

I believe the latest commit should fix all of these issues.

BradLarson avatar May 10 '12 19:05 BradLarson