Contents

init(device:kernelDiameter:)

Initializes a filter for a particular kernel size and device.

Declaration

init(device: any MTLDevice, kernelDiameter: Int)

Parameters

  • device:

    The Metal device the filter will run on.

  • kernelDiameter:

    The diameter of the median filter, in pixels. Must be an odd number.

Return Value

An initialized median filter object.

See Also

Methods