Add Nodes/Images/SingleChannelColor
parent
3b9410e119
commit
1e7e1a0c4e
40
Nodes%2FImages%2FSingleChannelColor.md
Normal file
40
Nodes%2FImages%2FSingleChannelColor.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Single Channel Color
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🔌 INPUT PORTS
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
|-----------------|-----------------|----------------------------------------------------|
|
||||||
|
| `Color` | `GreyscaleValue` | The greyscale value to be used as the color for each pixel. The value must be between 0 and 255. |
|
||||||
|
| `Width` | `int` | The width of the image (in pixels). |
|
||||||
|
| `Height` | `int` | The height of the image (in pixels). |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 📤 EXPORT PORTS
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
|-----------------|--------------------|-------------------------------------------------|
|
||||||
|
| `Color` | `SplitChannelData` | The output image data where all pixels are set to the input color. |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 📝 DESCRIPTION
|
||||||
|
|
||||||
|
The **Single Channel Color** node generates an image where all pixels are set to a single color, based on the input greyscale value. This node is useful for creating solid color images or channels in image processing workflows.
|
||||||
|
|
||||||
|
This node:
|
||||||
|
- Accepts a **greyscale value** to define the color. The **color value** must be an integer between **0** and **255**.
|
||||||
|
- Uses the **width** and **height** to define the output image dimensions.
|
||||||
|
|
||||||
|
This node is derived from [`BaseImageNode`](Nodes/BaseImageNode).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## ⚠️ KNOWN ISSUES
|
||||||
|
|
||||||
|
- The node assumes that valid values for width and height are provided. If either value is invalid or zero, the output may be incorrect or the node may fail to process the image.
|
||||||
|
- The **`GreyscaleValue`** input must be between **0** and **255** to ensure valid color representation. Values outside this range may cause unexpected behavior (While there is checks in place to stop this, it can sometimes occur during a domain reload).
|
||||||
|
|
||||||
|
---
|
Loading…
x
Reference in New Issue
Block a user