Dilates a region of interest within an ARGBFFFF source image using an M x N kernel.
- iOS 5.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A pointer to a vImage buffer structure that contains data for the source image.
A pointer to a vImage buffer data structure. You are responsible for filling out the
rowfields of this structure, and for allocating a data buffer of the appropriate size. On return, the data buffer pointed to by this structure contains the destination image data. When you no longer need the data buffer, you must deallocate the memory.
The size (number of rows and number of columns) of the destination buffer also specifies the size of the region of interest in the source buffer.
The horizontal offset, in pixels, to the upper-left pixel of the region of interest within the source image.
The vertical offset, in pixels, to the upper-left pixel of the region of interest within the source image.
A pointer to the kernel data, which must be a packed array without any padding.
The height of the kernel in pixels. This value must be odd.
The width of the kernel in pixels. This value must be odd.
The options to use when performing the morphological operation. Set the
kvflag if you plan to perform your own tiling or use multithreading. Set the
Image Do Not Tile
kvflag to specify that the alpha channel should be copied to the destination image unchanged.
Image Leave Alpha Unchanged
This function uses the same kernel is for all channels. In addition to supplying space for the destination image, the
dest parameter also specifies the size of the region of interest in within the source image. The region of interest has the same height and width (in pixels) as the destination buffer pointed to by dest.