init(values:width:height:)
Returns a new convolution kernel structure with the width and height you specify.
Declaration
init(values: [ComponentType], width: Int, height: Int)Parameters
- values:
The kernel weights or structuring element values that must contain
height * widthelements. - width:
The width of the kernel that must be a positive, odd number.
- height:
The height of the kernel that must be a positive, odd number.