CIUnsharpRadius crashes on big InputRadius values

Hi all,


I use CoreImage and CIUnsharpMask filter to create clarity effect.

The problem I'm facing is that CIContext's createCGIImage method crashes on big InputRadius values.

For example, if I apply input radius of 300 to image with size 1100x1100 everything works fine but if I apply the same radius to panoramic picture taken on iPhone, it crashes.

Apple's documentation doesn't specify a range of valid values for inputRadius and it just says that its default value is 2.50: https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIUnsharpMask

Does it mean I have to find values for input radius by trial and error or is there more information about this problem somewhere?


Thanks in advance!

CIUnsharpRadius crashes on big InputRadius values
 
 
Q