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