ColorSpaceConversions
Image - ConvertBayerToRgb
Converts a Bayer-encoded color image into RGB.
IN
| Name | Type | Description |
|---|---|---|
| InImage | Image | The input Image |
| InDebayeringMethod | Enum < DebayeringMethod > | Debayering method (bilinear or using VNG). |
| InBayerType | Enum < BayerType > | Type of Bayer-encoding. |
| Name | String | Set the tool's name |
| Enable | Bool | Sets if current tool is enabled or not |
OUT
| Name | Type | Description |
|---|---|---|
| OutImage | Image | RGB image. |
| Error | ErrorState | Gets the execution error message |
Image - ConvertColorSpace
Convert the image color space depending on the conversion code specified.
IN
| Name | Type | Description |
|---|---|---|
| InImage | Image | The input Image |
| InConversionCode | Enum < ColorConversionCode > | Color space conversions code. |
| Name | String | Set the tool's name |
| Enable | Bool | Sets if current tool is enabled or not |
OUT
| Name | Type | Description |
|---|---|---|
| OutImage | Image | Output image. |
| Error | ErrorState | Gets the execution error message |
Image - ConvertToGrayscale
Convert the image to grayscale (luminance). Note: 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.
IN
| Name | Type | Description |
|---|---|---|
| InImage | Image | The input Image |
| Name | String | Set the tool's name |
| Enable | Bool | Sets if current tool is enabled or not |
OUT
| Name | Type | Description |
|---|---|---|
| OutImage | Image | Grayscale image. |
| Error | ErrorState | Gets the execution error message |
Image - SplitBayer
Splits the image into four Bayer images, one for each of the four colors.
IN
| Name | Type | Description |
|---|---|---|
| InImage | Image | The input Image |
| Name | String | Set the tool's name |
| Enable | Bool | Sets if current tool is enabled or not |
OUT
| Name | Type | Description |
|---|---|---|
| OutImage | ImageArray | Bayer images. |
| Error | ErrorState | Gets the execution error message |