toGrayscale

expect fun toGrayscale(): LiteRtImage

Converts the image to grayscale.

Return

A new LiteRtImage in grayscale format (typically 1 channel).