Function

vImageDestroyResamplingFilter(_:)

Disposes of a resampling filter object.

Declaration

func vImageDestroyResamplingFilter(_ filter: ResamplingFilter!)

Parameters

filter

The resampling filter object to dispose of.

Discussion

This function deallocates the memory associated with a resampling filter object that was created by calling the function vImageNewResamplingFilter(_:_:). Do not directly deallocate this memory yourself.

Do not pass this function a resampling filter object created by the function vImageNewResamplingFilterForFunctionUsingBuffer(_:_:_:_:_:_:). You are responsible for deallocating the memory associated with resampling filter objects created by that call yourself.

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 vImageGetResamplingFilterSize(Float, ((UnsafePointer<Float>?, UnsafeMutablePointer<Float>?, UInt, UnsafeMutableRawPointer?) -> Void)!, Float, vImage_Flags) -> Int

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