Method EnsureColorCopy
EnsureColorCopy(IplImage, IplImage)
Copies the original image pixels into a cached image buffer, with optional color conversion in the case where the original image is grayscale.
public static IplImage EnsureColorCopy(IplImage output, IplImage image)
Parameters
output
IplImageThe current cached image buffer. If the value is null, or if the cached image parameters do not match the size of the source image, a new image buffer will be allocated.
image
IplImageThe image storing the original pixel values.