Merge or Split Image Channels

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Description

This Step is used to split a color image into three single-channel images, or merge three single-channel images into one color image.

Usage Scenario

This Step is applicable for converting between three-channel and single-channel images. For example, you can split a three-channel image into three single-channel images for viewing or processing the information of each channel separately, or you can merge the three single-channel images into one three-channel image for unified display or subsequent processing.

It can be used with Steps that perform functions related to image capturing, image reading, image enhancement, or segmentation.

Basic Concepts

  • Image Channel

    It refers to different components of each pixel in an image. Three-channel images usually consist of three channels, which can represent different color or feature components, such as three components in the color space of RGB, HSI, and HSV. Therefore, three-channel images are usually color images. A single-channel image only contains data from one channel, usually a grayscale image.

  • Channel Merge

    Group three single-channel images into one three-channel image in sequence for subsequent overall processing or display.

  • Channel Split

    Decompose one three-channel image into three single-channel images for independent analysis, processing, or feature extraction of each channel.

Workflow

The process of configuring this Step is shown below:

workflow
  1. Select the channel operation (Merge or Split).

  2. Input the corresponding image according to the operation type:

    • Merge: Input three single-channel images.

    • Split: Input a three-channel image.

  3. Run the Step and view the output.

Input Description

Operation Input Description

Merge

Input three single-channel images (grayscale images). Each pixel of each image contains only one grayscale value.

Split

Input a three-channel image (color image) containing three color channel values per pixel.

Parameter Description

Parameter Description

Channel Operation

Select the operations to be performed, including Merge and Split:

  • Merge: Merge three single-channel images into one three-channel image in the input order. After merging, the order of the channels corresponding to the input images in the result image is the same as the input order.

  • Split: Decompose a three-channel image into three single-channel images in the same order as the original three-channel images. The pixel values of each output image correspond to the pixel values in each channel of the original three-channel image.

Output Description

Operation Output Description

Merge

Outputs a three-channel image (color image) containing three color channel values per pixel.

Split

Output three single-channel images (grayscale images). Each pixel of each image contains only one grayscale value.

Troubleshooting

  • For common errors, see Error Code List.

  • If the error code is inconsistent with the error message, please contact Technical Support for help.

Unable to Split Channels

Symptom:

After the Step was run, an error message “Cannot split image channels: The input image is not a three-channel image”.

Possible Cause:

The input images are of one channel or more than three channels, which does not satisfy the requirements of the depalletizing operation.

Solution:

Please check the input image and make sure it is a standard three-channel color image (such as RGB).

Unable to Merge Channels

Symptom:

After the Step is run, the following error message appears: “Unable to merge channels....”

Possible cause:

The input three single-channel images are of different sizes, and thus the channels cannot be merged.

Solution:

Please check the input three single-channel images and make sure they are of the same size. If the images are of different sizes, they can be merged after being resized to the same size in Crop or Resize.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.