Merge
Merge allows you to layer multiple images together. When using this node, you need to select a compositing algorithm that determines how the pixel values from one input are calculated with the pixel values from the other to create the new pixel values that are output as the merged image.
This node has an equivalent in Nuke.
Inputs and Controls
|
Connection Type |
Connection Name |
Function |
|
Input |
src0 |
The image sequence to merge with input scr1. |
|
src1 |
The image sequence to merge with input src0. |
|
| mask | An optional image to use as a mask. By default, the merge is applied according to the value in the alpha channel of the mask. |
|
Control (UI) |
Knob (Scripting) |
Default Value |
Function |
|||
|
Type name |
TypeName |
Merge |
The node type. |
|||
| Enabled | Enabled | ticked | If unchecked, this node will be omitted from the compiled image processing graph. Any incoming connections will be forwarded to the first output port, if any. | |||
| Label | Label | N/A | An optional label to display on the node. | |||
| Parameters | ||||||
|
Reset parameters to default value using the reset icon: |
||||||
| Mode | Mode |
Over |
Non the below algorithms, src0 = A and src1 = B Sets the Merge algorithm to use: • Atop - Shows the shape of image B, with A covering B where the images overlap. Algorithm: Ab+B(1-a) • Average - The average of the two images. The result is darker than the original images. Algorithm: (A+B)/2 • Color-burn - Image B gets darker based on the luminance of A. Algorithm: darken B towards A • Color-dodge - Image B gets brighter based on the luminance of A. Algorithm: brighten B towards A • Conjoint over - Similar to the over operation, except that if a pixel is partially covered by both a and b, conjoint-over assumes a completely hides b. For instance, two polygons where a and b share some edges but a completely overlaps b. Normal over produces a slightly transparent seam here. Algorithm: A+B(1-a)/b, A if a>b • Copy - Only shows image A. This is useful if you also set the mix or mask controls so that some of B can still be seen. Algorithm: A • Difference - How much the pixels differ. Algorithm: abs(A-B) • Disjoint over - Similar to the over operation, except that if a pixel is partially covered by both a and b, disjoint-over assumes the two objects do not overlap. For instance, two polygons that touch and share an edge. Normal over produces a slightly transparent seam here. Algorithm: A+B(1-a)/b, A+B if a+b<1 • Divide - Divides the values but stops two negative values from becoming a positive number. Algorithm: A/B, 0 if A<0 and B<0 • Exclusion - A more photographic form of difference. Algorithm: A+B-2AB • From - Image A is subtracted from B. Algorithm: B-A • Geometric - Another way of averaging two images. Algorithm: 2AB/(A+B) • Hard light - Image B is lit up by a very bright and sharp light in the shape of image A. Algorithm: multiply if A<.5, screen if A>.5 • Hypot - Resembles the plus and screen operations. The result is not as bright as plus, but brighter than screen. Hypot works with values above 1. Algorithm: diagonal sqrt(A*A+B*B) • In - Only shows the areas of image A that overlap with the alpha of B. Algorithm: Ab • Mask - This is the reverse of the in operation. Only shows the areas of image B that overlap with the alpha of A. Algorithm: Ba • Matte - Premultiplied over. Use unpremultiplied images with this operation. Algorithm: Aa+B(1-a) (unpremultiplied over) • Max - Takes the maximum values of both images. Algorithm: max(A,B) • Min - Takes the minimum values of both images. Algorithm: min(A,B) • Minus - Subtracts B from A. Algorithm: A-B • Multiply - Multiplies the values but stops two negative values from becoming a positive number. Algorithm: AB, A if A<0 and B<0 • Out - Only shows the areas of image A that do not overlap with the alpha of B. Algorithm: A(1-b) • Over - This is the default operation. Layers image A over B according to the alpha of image A. Algorithm: A+B(1-a) • Overlay - Image A brightens image B. Algorithm: multiply if B<.5, screen if B>.5 • Plus - The sum of image A and B. Note that the plus algorithm may result in pixel values higher than 1.0. Algorithm: A+B • Screen - If A or B is less than or equal to 1 the screen, else use the maximum example. Similar to plus. Algorithm: A+B-AB if A and B between 0-1, else A if A>B else B • Soft light - Image B is lit up. Similar to hard-light, but not as extreme. Algorithm: B(2A+(B(1-AB))) if AB<1, 2AB otherwise • Stencil - This is the reverse of the out operation. Only shows the areas of image B that do not overlap with the alpha of A. Algorithm: B(1-a) • Under - This is the reverse of the over operation. Layers image B over A according to the matte of image B. Algorithm: A(1-b)+B • Xor - Shows both image A and B where the images do not overlap. Algorithm: A(1-b)+B(1-a) |
|||