toGrayF64
Converts this ColorBuffer to a grayscale image represented as a GrayF64 object. The red channel of the color buffer is used to calculate the grayscale values.
Return
A GrayF64 instance containing the grayscale representation of the ColorBuffer.
Parameters
target
An optional GrayF64 instance to store the result. If not provided, a new instance will be created.