Box Blur Spatial Photo Filter

This filter applies a box-shaped blur to an image. It is useful for creating a simple, uniform blur effect.

Box Blur
Tap on the image above and select 'View Spatial Photo' (only works in Vision Pro Safari).

Parameters

  • Radius: The radius of the blur effect. This parameter controls the extent of the blur applied to the image

PIPELINE Node Source Code

CIFilter : CIBoxBlur


override func getCIFilter(_ ciImage: CIImage)->CIFilter
{
    
    var currentCIFilter: CIFilter
    if ciFilter != nil {
        currentCIFilter = ciFilter!
    } else {
        currentCIFilter = CIFilter(name: type)!
        ciFilter=currentCIFilter
        
    }
    
    currentCIFilter.setValue(ciImage, forKey: kCIInputImageKey)
    currentCIFilter.setValue(radius, forKey: kCIInputRadiusKey)
    return currentCIFilter
    
}