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.

../../../../_images/input_and_output21.png

Parameter Description

Color Space

Parameter description: This parameter specifies the color space of the input image.
Value list: RGB, HSV, HSI, 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): The three letters stand for hue, saturation, and value. A color space that aligns with the way human vision perceives color-making attributes.

  • HSI (hue, saturation, intensity): A color space that aligns with the way human describes and explains colors.

  • 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, 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 3 channels: red, green, and blue, which correspond to the first, second, and third channels respectively.

Hint

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