Merge or Split Image Channels

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

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

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.

Input and Output

Input

Input port Data type Description

Three-Channel Image

Image

A color image where each pixel contains three color channel values.

Output

Output port Data type Description

Single-Channel Image

Image

Grayscale image, each pixel contains only one grayscale value.

Single-Channel Image

Image

Grayscale image, each pixel contains only one grayscale value.

Single-Channel Image

Image

Grayscale image, each pixel contains only one grayscale value.

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.

Troubleshooting

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.