Yotsuba Games
Back to Node List

Channel Merge

channel_merge

Builds a color image from separate grayscale component images.

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
A / L / H
a
Image
Required
่‰ฒใ‚’ไฝœใ‚‹ใŸใ‚ใฎ็™ฝ้ป’ๆˆๅˆ†็”ปๅƒใงใ™ใ€‚ๆ˜Žใ‚‹ใ„ใปใฉใใฎๆˆๅˆ†ใŒๅผทใใชใ‚Šใพใ™ใ€‚
B / C / S
b
Image
Required
่‰ฒใ‚’ไฝœใ‚‹ใŸใ‚ใฎ็™ฝ้ป’ๆˆๅˆ†็”ปๅƒใงใ™ใ€‚ๆ˜Žใ‚‹ใ„ใปใฉใใฎๆˆๅˆ†ใŒๅผทใใชใ‚Šใพใ™ใ€‚
C / H / V
c
Image
Required
่‰ฒใ‚’ไฝœใ‚‹ใŸใ‚ใฎ็™ฝ้ป’ๆˆๅˆ†็”ปๅƒใงใ™ใ€‚ๆ˜Žใ‚‹ใ„ใปใฉใใฎๆˆๅˆ†ใŒๅผทใใชใ‚Šใพใ™ใ€‚
ใ‚ขใƒซใƒ•ใ‚ก
alpha
Image
่‰ฒใ‚’ไฝœใ‚‹ใŸใ‚ใฎ็™ฝ้ป’ๆˆๅˆ†็”ปๅƒใงใ™ใ€‚ๆ˜Žใ‚‹ใ„ใปใฉใใฎๆˆๅˆ†ใŒๅผทใใชใ‚Šใพใ™ใ€‚

Output Ports

NameTypeDescription
็”ปๅƒ
output
Image
ๅ…ฅๅŠ›ใ—ใŸๆˆๅˆ†ใ‹ใ‚‰ไฝœใฃใŸใ‚ซใƒฉใƒผ็”ปๅƒใงใ™ใ€‚

Parameters

NameTypeDefaultRangeDescription / Options
่‰ฒ็ฉบ้–“
space
Enum
OKLCHโ€”

A/B/C ใฎๅ…ฅๅŠ›ใ‚’ใฉใ†่ชญใ‚€ใ‹ใงใ™ใ€‚Channel Split ใจๅŒใ˜่จญๅฎšใซใ™ใ‚‹ใจๅ…ƒใฎ็”ปๅƒใซๆˆปใ—ใ‚„ใ™ใใชใ‚Šใพใ™ใ€‚

  • OKLCHOKLCH
    ่ฆ‹ใŸ็›ฎใฎๆ˜Žใ‚‹ใ•ใƒป้ฎฎใ‚„ใ‹ใ•ใƒป่‰ฒๅ‘ณใ‚’ๅŸบๆบ–ใซๅ‡ฆ็†ใ—ใพใ™ใ€‚่‡ช็„ถใซ่ฆ‹ใˆใ‚‹่ชฟๆ•ดใซๅ‘ใ„ใฆใ„ใพใ™ใ€‚
  • HSVHSV
    ่‰ฒ็›ธใƒปๅฝฉๅบฆใƒปๆ˜Žๅบฆใงๅ‡ฆ็†ใ—ใพใ™ใ€‚ไธ€่ˆฌ็š„ใช่‰ฒ่ชฟๆ•ดใฎๆ„Ÿ่ฆšใงๆ“ไฝœใ—ใŸใ„ๆ™‚ใซไฝฟใ„ใพใ™ใ€‚
  • RGBRGB
    ่ตคใƒป็ท‘ใƒป้’ใฎๆ•ฐๅ€คใ‚’็›ดๆŽฅๅ‡ฆ็†ใ—ใพใ™ใ€‚ใƒใƒฃใƒณใƒใƒซใ‚’ๅŽณๅฏ†ใซๆ‰ฑใ„ใŸใ„ๆ™‚ใซไฝฟใ„ใพใ™ใ€‚

Overview

Combines separate grayscale component images into a color image. Use it to restore components split by Channel Split after processing them, or to assemble colors from mask images.

In each input, white means a stronger component and black means a weaker one.

Examples

  • Strengthen only the lightness from Channel Split with Levels, then restore the color with Channel Merge.
  • Use grayscale noise as the equivalent of an OKLCH-C input to vary chroma.
  • Connect a mask to alpha to cut out the assembled color.

Usage tips

  • The standard pattern is a round trip through channel_split: split โ†’ process components โ†’ merge again.
  • A, B, and C are required. Every component image, including a connected Alpha input, must have the same dimensions or evaluation returns a NodeError. Only Alpha may be left unconnected, in which case it defaults to fully opaque.
  • Port labels follow the selected space: L/C/H for OKLCH, H/S/V for HSV, and R/G/B for RGB.
  • Inventing color from grayscale sources is also powerful. For example, use noise for lightness and a gradient for hue to build a procedural color image.

Related nodes

  • channel_split โ€” the matching node for decomposition
  • mask โ€” a focused alternative for cutting out by an alpha component
  • gradient_map โ€” a simpler route from one component to color
Back to Node List
Channel Merge โ€” PixPipeline Node Reference