🖥
🖥
🖥
🖥
AugeLab Studio Manual
English
K
Comment on page

# Color Density Percentage

## Color Density Percentage Node Documentation

The Color Density Percentage node in AugeLab Studio calculates the color density percentage for each color channel in an input image.

### Node Overview

The Color Density Percentage node takes an input image and calculates the percentage of color density for the red, green, and blue channels. It provides the percentage values as well as the corresponding color intensity values for each channel.

### Node Properties

• Node Title: Color Density Percentage
• Node ID: OP_NODE_COLOR_DENS_PERC

### Inputs

The Color Density Percentage node has the following input socket:
• ImageAny: The input image for which the color density percentages are calculated.

### Outputs

The Color Density Percentage node has the following output sockets:
• Number: The percentage of color density for the red channel.
• Number: The intensity value of the red channel.
• Number: The percentage of color density for the blue channel.
• Number: The intensity value of the blue channel.
• Number: The percentage of color density for the green channel.
• Number: The intensity value of the green channel.

### Usage

1. 1.
Drag and drop the Color Density Percentage node from the node library onto the canvas in AugeLab Studio.
2. 2.
Connect the input image to the ImageAny input socket of the Color Density Percentage node.
3. 3.
Run the pipeline.
4. 4.
The Color Density Percentage node will calculate the color density percentages for the red, green, and blue channels of the input image.
5. 5.
Retrieve the output values from the corresponding output sockets for further processing or visualization.

### Notes

• The Color Density Percentage node calculates the color density percentage for each color channel by dividing the sum of the color values by the sum of the intensity values.
• The input image should be in the BGR color space.
• The output values represent the percentage of color density for each channel and the corresponding intensity values.
• The intensity value is extracted from the first pixel of each channel.
• The percentage values are rounded to the nearest integer.
• The intensity values are truncated to integers.
• The output values provide insights into the color distribution and density within the image.
That concludes the documentation for the Color Density Percentage node in AugeLab Studio. This node allows you to calculate the color density percentages for the red, green, and blue channels of an input image and extract corresponding intensity values for each channel.