ConvertColorSpaceToMono Method (Image, MonochromeConversion)

CVB.Net Documentation
Convert the input image to mono.

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image ToMono(
	Image img,
	MonochromeConversion conversion
)

Parameters

img
Type: Stemmer.CvbImage
Image to be converted.
conversion
Type: Stemmer.CvbMonochromeConversion
Weighting method to apply

Return Value

Type: Image
New converted image.
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed
Remarks

If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
See Also

Reference