Contents

init(coder:device:)

Creates a Euclidean distance transform that uses a specified decoder for your data and runs on a specified device.

Declaration

init?(coder aDecoder: NSCoder, device: any MTLDevice)

Parameters

  • aDecoder:

    The decoder for your data.

  • device:

    The device that the filter runs on.

Discussion

Use this initializer to specify the location of your data; otherwise, the framework may guess incorrectly.

See Also

Creating a Euclidean distance transform