Count Color Info

Function

After a color or gray image is input and a color space is selected, this Step will calculate the mean value, standard deviation, maximum, and minimum of the pixel values in the specified channel.

Usage Scenario

This Step is generally used to evaluate the image color or grayscale in measurement scenarios.

Input and Output

If the pixel values of the first channel in the RGB color space is input, the output data is as follows:

  • The mean value of the pixel values of the first channel in the RGB color space

  • The standard deviation of the pixel values of the first channel in the RGB color space

  • The maximum of the pixel values of the first channel in the RGB color space

  • The minimum of the pixel values of the first channel in the RGB color space

The input and output of this Step are shown as below.

count color info input and output

Parameter Description

Color Space

Parameter description: This parameter specifies the color space of the input image.

Value list: RGB, HSV, HSI, and Gray.

  • RGB (red, green, blue): A commonly used color space. This type of color space is based on red, green, and blue (primary colors), and the three primary colors are added together in various ways to reproduce a broad array of colors.

  • HSV (hue, saturation, value): A color space that aligns with the way human vision perceives color-making attributes. The three letters stand for hue, saturation, and value.

  • HSI (hue, saturation, intensity): A color space that aligns with the way people describe and explain color. The three letters stand for hue, saturation, and intensity.

  • Gray: A most basic color space. When the image only contains luminance information without color information, the gray color space can be used.

Default value: RGB

Channel

Parameter description: This parameter is used to select in which channel of the color space the color information will be calculated.

Value list: First, Second, and Third.

Default value: First.

Notes: The sequence of the channels corresponds to the sequence of the letters in the color space name. For example, the RGB color space has three channels, i.e., red, green, and blue, which correspond to the first, second, and third channels, respectively.

When the Color Space is set to Gray, there is only one channel, and therefore you do not need to set the Channel parameter.

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.