CVBpy 14.0
RGBConversion Class Reference

Available conversion modes from Bayer patterns to RGB images. More...

Inherits object.

Static Public Attributes

int HalfResolution = 3
 This method is provided primarily for display. More...
 
int Linear = 1
 This method offers the highest accuracy, but also the slowest speed. More...
 
int NearestNeighbor = 2
 This method offers the fastest speed for a full resolution image, but the color accuracy is not as high as the cvb.foundation.RGBConversion.Linear method. More...
 

Detailed Description

Available conversion modes from Bayer patterns to RGB images.

Member Data Documentation

◆ HalfResolution

int HalfResolution = 3
static

This method is provided primarily for display.

This method creates an RGB image with half the height and half the width of the source image, the color accuracy is the same as the cvb.foundation.RGBConversion.NearestNeighbor method, but half the spacial accuracy is lost. If the user needs a fast display for focusing or setup of the camera, then this method will allow higher frame rates on a suitable PC.

◆ Linear

int Linear = 1
static

This method offers the highest accuracy, but also the slowest speed.

Interpolation of the nearest pixels is used to calculate the two unknown color values for each position. Depending on the position of the pixel either two or four pixels are used for the interpolation. In this mode full spatial resolution is maintained.

◆ NearestNeighbor

int NearestNeighbor = 2
static

This method offers the fastest speed for a full resolution image, but the color accuracy is not as high as the cvb.foundation.RGBConversion.Linear method.

The color from a neighbor pixel is used for the two unknown color values. This makes the conversion faster, because there is no need for interpolation. In this method full spatial resolution is maintained.