2.15.13 cvsplit


Menu Information

Image: Split Color Image

Brief Information

Split color image into separate grayscale images

Additional Information

Minimum Origin Version Required: 2022

Command Line Usage

1. cvSplit img:=[Image1]1! order:="R" nav:=1;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Image img

Input/Output

ImageLayer

<active>
Specify the source image to manipulate.
Chanel Order order

Input

String

Specifies the chanels of Red, Green, Blue, and Alpha to be output and split them in order. By default, "RGB" chanels will be output, and image frames are entitled of Red, Green, and Blue respectively.
Show Thumbnails nav

Input

Int

0
Specify whather to show thumbnails for the split image window: 0 = false, 1 = true.

Description

This function separates a color image into Red, Green, Blue, and Alpha channels. See document for details.

Examples

Example 1. Split the color image into separate channels

  1. When the image is active, select Image: Split Color Image....
  2. In the dialog, leave the settings as default and click OK.
    Split dia.png

The image is split as follow.

Split 1.png
The original image
Split 2.png Split 4.png Split 3.png
Red Channel
Green Channel
Blue Channel

Algorithm

The computation uses split() function from OpenCV Main API. Please refer to the OpenCV Main API Help file, Version 2.4.11.0 and read imgproc. Image Processing topic. See also mixChannels(), Merge() and Mat::reshape() function.

References

OpenCV Main API Help file, Version 2.4.11.0

Related X-Functions

CvMerge