Function

vImageGetResamplingFilterSize(_:_:_:_:)

Returns the minimum size, in bytes, for the buffer needed by the function vImageNewResamplingFilterForFunctionUsingBuffer.

Declaration

func vImageGetResamplingFilterSize(_ scale: Float, _ kernelFunc: ((UnsafePointer<Float>?, UnsafeMutablePointer<Float>?, UInt, UnsafeMutableRawPointer?) -> Void)!, _ kernelWidth: Float, _ flags: vImage_Flags) -> Int

Parameters

scale

The scale factor that you plan to pass to the function vImageNewResamplingFilterForFunctionUsingBuffer.

kernelFunc

The function pointer that you plan to pass to the function vImageNewResamplingFilterForFunctionUsingBuffer.

userData

The user data pointer that you plan to pass to the function vImageNewResamplingFilterForFunctionUsingBuffer.

kernelWidth

The kernel width that you plan to pass to the function vImageNewResamplingFilterForFunctionUsingBuffer.

flags

The flags that you plan to pass to the function vImageNewResamplingFilterForFunctionUsingBuffer.

Return Value

The minimum size, in bytes, of the buffer.

See Also

Resampling Filters

func vImageNewResamplingFilter(Float, vImage_Flags) -> ResamplingFilter!

Creates a resampling filter object that corresponds to the default kernel supplied by the vImage framework.

func vImageGetResamplingFilterExtent(ResamplingFilter, vImage_Flags) -> vImagePixelCount

Returns the maximum sampling radius for a resampling filter.

func vImageDestroyResamplingFilter(ResamplingFilter!)

Disposes of a resampling filter object.