oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Color Space Conversions

Functions

Image oevislib_net.Image.ConvertColorSpace (ColorConversionCode inConversionCode)
 Convert the image color space depending on the conversion code specified.
Image oevislib_net.Image.ConvertToGrayscale (Optional< Region > inRoi=null)
 Convert the image to grayscale (luminance).
Image oevislib_net.Image.ConvertBayerToRgb (DebayeringMethod inDebayeringMethod, BayerType inBayerType)
 Converts a Bayer-encoded color image into RGB.
Array< Imageoevislib_net.Image.SplitBayer ()
 Splits the image into four Bayer images, one for each of the four colors.

Detailed Description

Function Documentation

◆ ConvertBayerToRgb()

Image oevislib_net.Image.ConvertBayerToRgb ( DebayeringMethod inDebayeringMethod,
BayerType inBayerType )
inline

Converts a Bayer-encoded color image into RGB.

Parameters
inDebayeringMethodDebayering method (bilinear or using VNG).
inBayerTypeType of Bayer-encoding.
Returns
RGB image.

◆ ConvertColorSpace()

Image oevislib_net.Image.ConvertColorSpace ( ColorConversionCode inConversionCode)
inline

Convert the image color space depending on the conversion code specified.

Parameters
inConversionCodeColor space conversions code.
Returns
Output image.

◆ ConvertToGrayscale()

Image oevislib_net.Image.ConvertToGrayscale ( Optional< Region > inRoi = null)
inline

Convert the image to grayscale (luminance).

Calls Image::averageChannels functions with the proper weights for every channel (0.2126 for R, 0.7152 for G and 0.0722 for B). If the image already has only 1 channel, the same image is return as output.

Parameters
inRoiRegion of interest.
Returns
Grayscale image.

◆ SplitBayer()

Array< Image > oevislib_net.Image.SplitBayer ( )
inline

Splits the image into four Bayer images, one for each of the four colors.

Returns
Bayer images.