uiimage-dsp icon indicating copy to clipboard operation
uiimage-dsp copied to clipboard

Gaussian blur that's a multiple of 10 will skew the image.

Open jawngee opened this issue 13 years ago • 6 comments

Any blur that's a multiple of 10 skews the image 45 degrees.

jawngee avatar Sep 01 '11 05:09 jawngee

weird, do you know if it's only multiples of 10? I'll have a look and see if I can figure out what's going on.

gdawg avatar Sep 01 '11 23:09 gdawg

whoops - accidently closed instead of just commenting.

gdawg avatar Sep 01 '11 23:09 gdawg

Yeah it's any multiple of 10. I'm not a math guy, but my only guess is the kernel size?

jawngee avatar Sep 02 '11 06:09 jawngee

still haven't had a chance to look at this, been super busy and am on holidays for the next month, perhaps in nov ;(

gdawg avatar Sep 27 '11 06:09 gdawg

Well, it seems it also happen with other radius values that are not odd. Based on some testing with different image sizes, the images can get skewed if the radius is not odd.

ThaiSeb avatar Nov 14 '11 17:11 ThaiSeb

can either of you provide a radius which will cause the example to skew on an actual device?

I've done some testing this morning and can't find any radius which causes skewing on a phone. The simulator skews with radius 10 but I believe this to be a bug in the simulator code.

You can easily try different radius by modifying the switch statement for the "advanced" section in the example

gdawg avatar Nov 15 '11 00:11 gdawg