FUSION · FULL ARTICLE
ColorMatrix
Precise RGBA transforms with a 5×5 matrix for channel mixing, swapping, Add offsets and invertible operations.
Overview
ColorMatrix [CMx] is a standard Fusion 2D color node for numerical Red, Green, Blue and Alpha channel transforms. Unlike a LUT or artistic grade, it explicitly combines input components into each output channel using coefficient rows.
The preserved original Inspector shows a five-by-five numeric grid, Update Lock and Invert. No other open menus are captured. The searchable matrix-cell names [row,column] in this guide are editorial coordinates, not invented labels claimed to appear inside the application.
The starting state is a 5×5 identity. The first four rows send R, G, B and A to matching outputs. The final row [0,0,0,0,1] represents the homogeneous coordinate, not a fifth image channel.
Horizontal rows correspond to outputs and vertical columns to input contributions. The fifth column called Add provides the per-channel constants for R, G, B and A. The bottom row is not the ordinary Add-offset row.
For red the model is R_out = m11×R_in + m12×G_in + m13×B_in + m14×A_in + m15. Green, Blue and Alpha each use their own corresponding row. Setting an individual cell to zero or one affects that contribution, not the global tool state.
To exchange red and blue, set the Red output to the Blue input and the Blue output to the Red input, keeping Green and Alpha at identity. Applying the same channel swap twice can restore the original RGB because the transformation is invertible.
For monochrome, repeat an identical input RGB blend in each output color row. A sample 0.2126/0.7152/0.0722 weighting can illustrate a suitable linear RGB pipeline; it is not automatically accurate physical luminance on arbitrary gamma-encoded footage.
A photographic negative uses the separate 1−RGB formula: set the RGB diagonal entries to -1, their Add constants to +1, and preserve Alpha. Intermediate or downstream float values may be negative or above unity even when the eventual display looks clipped.
The Invert checkbox computes the inverse matrix; it is NOT the same as the RGB negative effect. A red scale of 1.25 followed by the same coefficients with Invert on should undo the scale when the matrix is invertible. Singular configurations such as a zero row have no inverse.
Update Lock stops ColorMatrix rendering while several entries are being edited. Release it before comparing the Viewer and exporting; the checkbox is neither a pixel freeze nor a safety lock preventing a user from changing a value.
Alpha is another matrix output like R/G/B. Editing the alpha row changes transparency; using alpha as an input to RGB can change colors near premultiplied edges. On sensitive alpha workflows consider explicit AlphaDivide and AlphaMultiply stages, and inspect edges over contrasting backgrounds.
The optional blue Effect Mask is different from the matrix alpha row: it restricts where the completed transformation appears. A Rectangle mask can isolate a local negative while keeping the matrix alpha row at identity.
Matrix arithmetic can generate values outside the nominal 0…1 interval. Floating-point processing, the Viewer LUT, scopes and export bit depth may display or clamp them differently. Judge the transform using values and scopes, not only the monitor appearance.
This matrix is linear/affine with respect to channel values; it does not replace nonlinear gamma curves, hue operations, HSL qualification or spatial effects. Color Corrector and Color Gain are better for many intuitive creative operations; ColorMatrix is for explicit channel math.
For a reliable test use reference color bars, a gray ramp, a simple spatial mask, the Alpha view and two sequential inverse operations. Change one cell or output row at a time and document numbers to keep the procedure reproducible.
The lesson Flow diagrams are editorial type-checked image/mask connections, not importable .comp files or a native Resolve render. The saved Inspector confirms visible controls, and Blackmagic documentation establishes the transform semantics; a live Resolve 21 verification remains pending.
When to use it
- Fix swapped red/blue source passes
- Produce weighted RGB-to-grayscale output
- Build an RGB negative while preserving alpha
- Add a constant bias to a single channel via Add
- Mix input alpha into a selected RGB channel for a diagnostic pass
- Undo an invertible matrix with an inverse operation
- Inspect specific channels or a technical matte pass
- Restrict a technical correction with an Effect Mask
Article screenshots
Inputs & outputs
ColorMatrix [CMx] · image + optional Effect Mask → image
Blackmagic documents an orange required 2D Input and optional blue Effect Mask; the output is an image. The local capture shows the Inspector rather than sockets.
Computes four output channels using matrix coefficients plus the Add column, with an optional spatial restriction.
Inputs
- Input
Required 2D image
Receives: MediaIn, Loader, Background or upstream 2D image.
Inside the node: The matrix produces four RGBA output channels from source RGBA.
Typical sources: MediaIn · Loader · Background · ColorCorrector
The 5×5 Inspector is documented; verify the working transfer/gamma for numerical examples.
- Effect Mask
Optional spatial mask
Receives: Rectangle.Mask, Ellipse.Mask, Polygon.Mask or Bitmap.Mask.
Inside the node: Restricts the effect spatially without replacing the matrix alpha row.
Typical sources: Rectangle · Ellipse · Polygon · Bitmap
A standard Effect Mask can read a selected image channel directly. Check Channel on the receiving node; Bitmap is useful for separate matte extraction and processing.
Outputs and destination
Output
2D RGBA image after matrix processing.
Next step: MediaOut · Merge → Foreground · ColorCorrector · Viewer
The image output contains RGBA; it is not a dedicated mask-type output.
- Output
- 2D RGBA image after the transform, including the calculated output Alpha.
Processing order
- Connect MediaIn.Output to ColorMatrix.Input, then Output to MediaOut.
- Open the preserved Inspector and confirm the 5×5 identity grid.
- Decide whether the experiment is swap, grayscale, negative or inverse.
- Enable Update Lock temporarily if editing several cells.
- Record the four main output rows and the fifth Add column first.
- Edit only the coefficients needed for the intended output row.
- For restoration use an invertible matrix and a second instance with Invert on.
- Keep the bottom homogeneous row [0,0,0,0,1] unchanged in basic lessons.
- For a localized result wire Rectangle.Mask into the blue EffectMask port.
- Release Update Lock and let the node render.
- Inspect source and output on color bars and a gray ramp.
- View Alpha separately, especially at soft edges and mask borders.
- Check multiple frames and export handling of values outside 0…1.
Local RGB negative via Rectangle
MediaIn.Output → ColorMatrix.Input; Rectangle.Mask → ColorMatrix.EffectMask; ColorMatrix.Output → MediaOut.Input
Negative RGB diagonals and Add=1 yield a masked negative while alpha output remains identity.
Invert calculates the inverse matrix when possible; a negative is separate math. Add is column five.
Parameters
ColorMatrix · 37 topics + 15 checks
Rows 1–4 output RGBA, columns 1–4 input RGBA, column 5 is Add. Invert computes the inverse matrix.
- 01 · Identity
- Begin at identity and the Add column.
- 02 · Channel swap
- Swap R/B via two output rows.
- 03 · RGB grayscale
- Align RGB weights with the working color space.
- 04 · Negative
- Negative coefficients + Add=1; not Invert.
- 05 · Inverse
- An invertible matrix and a second instance with Invert.
- 06 · Alpha and mask
- Separate numeric alpha output from the blue Effect Mask.
Basics / 5×5 · Concept and controls
Every coefficient contributes to a selected output; all remaining cells in its row matter.
- Update Lock
Basics / 5×5 > Update LockStops ColorMatrix from rendering while its coefficients are being edited. This is not a coefficient lock or a reliable cached-freeze feature: while checked, the tool does not render. Disable it before evaluating the Viewer and exporting the composition.
Check / distinguish: Enter several values, release Update Lock, then compare the rendered result.
- Matrix · 5×5 identity
Basics / 5×5 > Matrix · 5×5 identityThe 5×5 identity matrix leaves R, G, B and A unchanged. The saved Inspector displays five ones on the diagonal, all other coefficients zero. The last one represents the homogeneous Add coordinate; it is not a fifth image channel.
Check / distinguish: Record the identity baseline before making the first edit.
- Rows → R/G/B/A outputs
Basics / 5×5 > Rows → R/G/B/A outputsThe first four horizontal rows define the R, G, B and A outputs. Each output row multiplies input R/G/B/A by its four coefficients and adds the fifth Add-column constant. Editing the red output row need not alter green, blue or alpha.
Check / distinguish: Edit one row at a time and record the resulting formula.
- Columns → R/G/B/A inputs
Basics / 5×5 > Columns → R/G/B/A inputsThe first four vertical columns describe input-channel contributions. One input column can affect multiple output rows: e.g. feeding the same grayscale mix into all three RGB rows. Confusing rows and columns produces a channel remap, not a color-profile conversion.
Check / distinguish: Choose the output row first, then the input column.
- Column 5 · Add
Basics / 5×5 > Column 5 · AddAdds a constant term to each of the four output channels. The fifth column enables operations such as a 1 − RGB negative or fixed per-channel offsets. Add is neither alpha nor a fifth image plane, and is not the entire bottom row.
Check / distinguish: For a negative use -1 on RGB diagonals and +1 in their Add cells.
- Row 5 · homogeneous baseline
Basics / 5×5 > Row 5 · homogeneous baselineHolds the homogeneous row of the affine matrix representation. The default bottom row 0,0,0,0,1 belongs to the homogeneous affine representation. It is not a creative offset row: standard RGBA adds belong to the fifth column of the first four rows.
Check / distinguish: Leave the bottom row unchanged in all four lessons.
- Invert · inverse matrix
Basics / 5×5 > Invert · inverse matrixApplies the mathematical inverse of the matrix when one exists. Invert does NOT mean photographic negative. A matrix that scales red by 1.25 can be reversed by another instance using the same matrix with Invert enabled. A zeroed row or other singular configuration cannot be meaningfully inverted.
Check / distinguish: Compare two instances using an invertible 1.25, 1, 1, 1 scaling matrix.
- Output precision / clipping
Basics / 5×5 > Output precision / clippingThe matrix can produce results below zero or above one. Negative and superwhite floats are not necessarily clamped by ColorMatrix itself: viewer transforms, downstream nodes, bit depth and output formats can behave differently. Check pixel values and scopes, not just a display LUT.
Check / distinguish: Inspect negative values before adding 1 on a float ramp.
- Alpha / premultiplication
Basics / 5×5 > Alpha / premultiplicationMixing Alpha into RGB requires explicit premultiplication checks. The alpha output row changes opacity and the alpha input column can affect RGB. Soft-edge RGB may already be premultiplied by A. ColorMatrix is not automatically an unpremultiply processor; use AlphaDivide / AlphaMultiply when required by the pipeline.
Check / distinguish: Test edges over black and white Merge backgrounds and inspect the Alpha view.
- Effect Mask vs Alpha row
Basics / 5×5 > Effect Mask vs Alpha rowThe blue Effect Mask limits the adjustment; it is not the matrix alpha-output row. Rectangle.Mask restricts where the finished matrix operation is applied. Editing the fourth matrix row changes numeric output-alpha pixels instead. Use a mask for local RGB inversion and the alpha row only when an actual alpha transform is needed.
Check / distinguish: For the negative lesson leave the alpha row at identity and connect Rectangle.Mask.
- Negative RGB ≠ Invert checkbox
Basics / 5×5 > Negative RGB ≠ Invert checkboxA photographic RGB negative needs negative coefficients and Add=1. To compute R_out=1−R_in, G_out=1−G_in, B_out=1−B_in, set RGB diagonal entries to -1, their Add entries to 1, and keep Alpha at identity. Do not confuse the effect with the Invert inverse-matrix checkbox.
Check / distinguish: Ensure Invert is unchecked before running the negative lesson.
- Grayscale matrix / RGB weights
Basics / 5×5 > Grayscale matrix / RGB weightsGrayscale duplicates a weighted RGB mix across all three RGB output rows. For a suitable linear RGB working space, a common example is 0.2126, 0.7152, 0.0722; their physical meaning depends on primaries and transfer characteristics. The coefficients are not a universal luminance computation on arbitrary gamma-coded media.
Check / distinguish: Use identical RGB coefficients in rows R/G/B and leave alpha untouched.
- Identity baseline
Controls / 5×5 identityOnes at diagonal positions 1,1…5,5; other cells zero.
Check / distinguish: Capture the baseline before editing.
- Matrix inverse ≠ negative
Controls / InvertThe checkbox inverts the coefficient matrix, not 1−RGB.
Check / distinguish: Test a reversible nonzero Red scale.
- Inverse singular warning
Controls / InvertA zero row means the inverse matrix is undefined.
Check / distinguish: Do not expect grayscale to invert: channel information is lost.
- Update Lock is render stop
Controls / Update LockUpdate Lock stops rendering rather than protecting input fields.
Check / distinguish: Uncheck it before judging the Viewer.
- Float out of range
Output / numeric rangeThe matrix may create values below zero and above one.
Check / distinguish: Inspect Pixel Values/Scopes.
- Effect Mask versus Alpha
Flow / Effect MaskA mask limits effect application; alpha row changes numerical transparency.
Check / distinguish: Wire Rectangle.Mask to EffectMask, not Image Input.
- Gamma limitation
Color science / nonlinearThe matrix cannot reproduce arbitrary gamma curves or hue qualification.
Check / distinguish: Choose a suitable nonlinear node.
- Grayscale color-space scope
Color science / grayscaleWeighted grayscale coefficients assume a specific RGB working space.
Check / distinguish: Document primaries and transfer before testing.
- Native and editorial QA
Flow / native verificationThe local PNG shows Inspector, not sockets; two inputs are documented in the manual.
Check / distinguish: A native Flow capture and render are still pending.
Red / 5×5 · Red output row
Every coefficient contributes to a selected output; all remaining cells in its row matter.
- Matrix [1,1] · Red ← Red
Red / 5×5 > Matrix [1,1] · Red ← RedSets how much input Red contributes to output Red; the identity value is 1.0. This coefficient adds value × Red_in to Red_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [1,1] and compare Red before/after on reference color bars.
- Matrix [1,2] · Red ← Green
Red / 5×5 > Matrix [1,2] · Red ← GreenSets how much input Green contributes to output Red; the identity value is 0.0. This coefficient adds value × Green_in to Red_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [1,2] and compare Red before/after on reference color bars.
- Matrix [1,3] · Red ← Blue
Red / 5×5 > Matrix [1,3] · Red ← BlueSets how much input Blue contributes to output Red; the identity value is 0.0. This coefficient adds value × Blue_in to Red_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [1,3] and compare Red before/after on reference color bars.
- Matrix [1,4] · Red ← Alpha
Red / 5×5 > Matrix [1,4] · Red ← AlphaSets how much input Alpha contributes to output Red; the identity value is 0.0. This coefficient adds value × Alpha_in to Red_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [1,4] and compare Red before/after on reference color bars.
- Matrix [1,5] · Red ← Add
Red / 5×5 > Matrix [1,5] · Red ← AddConstant Add term for output Red; zero in the identity matrix. This cell makes Red_out += constant independent of source pixels. With an RGB diagonal of -1 and Add +1, the result is 1−channel. Adding to output alpha changes transparency and can drive it below zero or above one.
Check / distinguish: Test 0.0 then +0.1 for Red, then restore zero.
- Swap red/blue output
Matrix / Row RedFor red/blue swaps edit RGB output rows, not columns.
Check / distinguish: Use R_out=B_in and B_out=R_in.
Green / 5×5 · Green output row
Every coefficient contributes to a selected output; all remaining cells in its row matter.
- Matrix [2,1] · Green ← Red
Green / 5×5 > Matrix [2,1] · Green ← RedSets how much input Red contributes to output Green; the identity value is 0.0. This coefficient adds value × Red_in to Green_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [2,1] and compare Green before/after on reference color bars.
- Matrix [2,2] · Green ← Green
Green / 5×5 > Matrix [2,2] · Green ← GreenSets how much input Green contributes to output Green; the identity value is 1.0. This coefficient adds value × Green_in to Green_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [2,2] and compare Green before/after on reference color bars.
- Matrix [2,3] · Green ← Blue
Green / 5×5 > Matrix [2,3] · Green ← BlueSets how much input Blue contributes to output Green; the identity value is 0.0. This coefficient adds value × Blue_in to Green_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [2,3] and compare Green before/after on reference color bars.
- Matrix [2,4] · Green ← Alpha
Green / 5×5 > Matrix [2,4] · Green ← AlphaSets how much input Alpha contributes to output Green; the identity value is 0.0. This coefficient adds value × Alpha_in to Green_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [2,4] and compare Green before/after on reference color bars.
- Matrix [2,5] · Green ← Add
Green / 5×5 > Matrix [2,5] · Green ← AddConstant Add term for output Green; zero in the identity matrix. This cell makes Green_out += constant independent of source pixels. With an RGB diagonal of -1 and Add +1, the result is 1−channel. Adding to output alpha changes transparency and can drive it below zero or above one.
Check / distinguish: Test 0.0 then +0.1 for Green, then restore zero.
- Monochrome equal output
Matrix / RGB output rowsGrayscale needs an identical RGB weighted sum in each RGB output row.
Check / distinguish: Keep the alpha row intact.
Blue / 5×5 · Blue output row
Every coefficient contributes to a selected output; all remaining cells in its row matter.
- Matrix [3,1] · Blue ← Red
Blue / 5×5 > Matrix [3,1] · Blue ← RedSets how much input Red contributes to output Blue; the identity value is 0.0. This coefficient adds value × Red_in to Blue_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [3,1] and compare Blue before/after on reference color bars.
- Matrix [3,2] · Blue ← Green
Blue / 5×5 > Matrix [3,2] · Blue ← GreenSets how much input Green contributes to output Blue; the identity value is 0.0. This coefficient adds value × Green_in to Blue_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [3,2] and compare Blue before/after on reference color bars.
- Matrix [3,3] · Blue ← Blue
Blue / 5×5 > Matrix [3,3] · Blue ← BlueSets how much input Blue contributes to output Blue; the identity value is 1.0. This coefficient adds value × Blue_in to Blue_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [3,3] and compare Blue before/after on reference color bars.
- Matrix [3,4] · Blue ← Alpha
Blue / 5×5 > Matrix [3,4] · Blue ← AlphaSets how much input Alpha contributes to output Blue; the identity value is 0.0. This coefficient adds value × Alpha_in to Blue_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output color the other four cells in the output row still apply.
Check / distinguish: Change only [3,4] and compare Blue before/after on reference color bars.
- Matrix [3,5] · Blue ← Add
Blue / 5×5 > Matrix [3,5] · Blue ← AddConstant Add term for output Blue; zero in the identity matrix. This cell makes Blue_out += constant independent of source pixels. With an RGB diagonal of -1 and Add +1, the result is 1−channel. Adding to output alpha changes transparency and can drive it below zero or above one.
Check / distinguish: Test 0.0 then +0.1 for Blue, then restore zero.
- Negative with Add
Matrix / RGB diagonal / AddNegative: -1 on RGB diagonal and +1 in each RGB Add cell.
Check / distinguish: Leave Invert checkbox off.
Alpha / 5×5 · Alpha output row
Every coefficient contributes to a selected output; all remaining cells in its row matter.
- Matrix [4,1] · Alpha ← Red
Alpha / 5×5 > Matrix [4,1] · Alpha ← RedSets how much input Red contributes to output Alpha; the identity value is 0.0. This coefficient adds value × Red_in to Alpha_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output alpha the other four cells in the output row still apply.
Check / distinguish: Change only [4,1] and compare Alpha before/after on reference color bars.
- Matrix [4,2] · Alpha ← Green
Alpha / 5×5 > Matrix [4,2] · Alpha ← GreenSets how much input Green contributes to output Alpha; the identity value is 0.0. This coefficient adds value × Green_in to Alpha_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output alpha the other four cells in the output row still apply.
Check / distinguish: Change only [4,2] and compare Alpha before/after on reference color bars.
- Matrix [4,3] · Alpha ← Blue
Alpha / 5×5 > Matrix [4,3] · Alpha ← BlueSets how much input Blue contributes to output Alpha; the identity value is 0.0. This coefficient adds value × Blue_in to Alpha_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output alpha the other four cells in the output row still apply.
Check / distinguish: Change only [4,3] and compare Alpha before/after on reference color bars.
- Matrix [4,4] · Alpha ← Alpha
Alpha / 5×5 > Matrix [4,4] · Alpha ← AlphaSets how much input Alpha contributes to output Alpha; the identity value is 1.0. This coefficient adds value × Alpha_in to Alpha_out. Zero removes this contribution, one passes it through, negative numbers subtract it and values above one amplify it. For output alpha the other four cells in the output row still apply.
Check / distinguish: Change only [4,4] and compare Alpha before/after on reference color bars.
- Matrix [4,5] · Alpha ← Add
Alpha / 5×5 > Matrix [4,5] · Alpha ← AddConstant Add term for output Alpha; zero in the identity matrix. This cell makes Alpha_out += constant independent of source pixels. With an RGB diagonal of -1 and Add +1, the result is 1−channel. Adding to output alpha changes transparency and can drive it below zero or above one.
Check / distinguish: Test 0.0 then +0.1 for Alpha, then restore zero.
- Alpha identity
Matrix / Alpha rowKeep alpha row 0,0,0,1,0 in RGB-only tasks.
Check / distinguish: Compare over a contrasting background.
- Alpha to color
Matrix / Alpha columnFeeding alpha into RGB may alter premultiplied image edges.
Check / distinguish: Check an AlphaDivide/AlphaMultiply chain.
Homogeneous / 5×5 · Bottom homogeneous row
Every coefficient contributes to a selected output; all remaining cells in its row matter.
- Matrix [5,1] · Add (homogeneous) ← Red
Homogeneous / 5×5 > Matrix [5,1] · Add (homogeneous) ← RedHomogeneous bottom-row cell [5,1]; identity value 0.0. The bottom row belongs to the homogeneous 5×5 affine representation. Keep it at [0, 0, 0, 0, 1] for standard RGBA mixing; editing it is not equivalent to using the Add column. Non-standard bottom-row behavior has not been tested in Resolve.
Check / distinguish: Do not edit this coefficient in the lesson; compare it against the preserved Inspector screenshot.
- Matrix [5,2] · Add (homogeneous) ← Green
Homogeneous / 5×5 > Matrix [5,2] · Add (homogeneous) ← GreenHomogeneous bottom-row cell [5,2]; identity value 0.0. The bottom row belongs to the homogeneous 5×5 affine representation. Keep it at [0, 0, 0, 0, 1] for standard RGBA mixing; editing it is not equivalent to using the Add column. Non-standard bottom-row behavior has not been tested in Resolve.
Check / distinguish: Do not edit this coefficient in the lesson; compare it against the preserved Inspector screenshot.
- Matrix [5,3] · Add (homogeneous) ← Blue
Homogeneous / 5×5 > Matrix [5,3] · Add (homogeneous) ← BlueHomogeneous bottom-row cell [5,3]; identity value 0.0. The bottom row belongs to the homogeneous 5×5 affine representation. Keep it at [0, 0, 0, 0, 1] for standard RGBA mixing; editing it is not equivalent to using the Add column. Non-standard bottom-row behavior has not been tested in Resolve.
Check / distinguish: Do not edit this coefficient in the lesson; compare it against the preserved Inspector screenshot.
- Matrix [5,4] · Add (homogeneous) ← Alpha
Homogeneous / 5×5 > Matrix [5,4] · Add (homogeneous) ← AlphaHomogeneous bottom-row cell [5,4]; identity value 0.0. The bottom row belongs to the homogeneous 5×5 affine representation. Keep it at [0, 0, 0, 0, 1] for standard RGBA mixing; editing it is not equivalent to using the Add column. Non-standard bottom-row behavior has not been tested in Resolve.
Check / distinguish: Do not edit this coefficient in the lesson; compare it against the preserved Inspector screenshot.
- Matrix [5,5] · Add (homogeneous) ← Add
Homogeneous / 5×5 > Matrix [5,5] · Add (homogeneous) ← AddHomogeneous bottom-row cell [5,5]; identity value 1.0. The bottom row belongs to the homogeneous 5×5 affine representation. Keep it at [0, 0, 0, 0, 1] for standard RGBA mixing; editing it is not equivalent to using the Add column. Non-standard bottom-row behavior has not been tested in Resolve.
Check / distinguish: Do not edit this coefficient in the lesson; compare it against the preserved Inspector screenshot.
- Not an offset row
Matrix / Bottom rowThe homogeneous bottom row is not the fifth Add column.
Check / distinguish: Keep [0,0,0,0,1].
Before adjusting the node
- Start from the captured identity matrix.
- Distinguish output rows from input columns.
- Use the fifth Add column, not the bottom row, for offsets.
- Make negative with -1 and Add=1.
- Invert needs an invertible matrix and is not photographic negative.
- Disable Update Lock before rendering.
- A mask restricts the operation; alpha row changes opacity.
- Inspect out-of-range values, Alpha and native render.
Reference documentation
- Blackmagic Design · Fusion Visual Effects
Official Blackmagic learning material for Fusion logic, masks, compositing and core tools.
- Blackmagic Design · DaVinci Resolve support
Current Resolve/Fusion manuals and support material. Exact control names and placement can vary by version.
Examples
Swap Red and Blue while preserving Alpha
Start from identity, exchange two channels and verify using RGB color bars.
Starting conditions
DaVinci Resolve / Fusion 21 editorial target (native pixel result not tested) · Fusion 2D Color Matrix tool · Cross-platform editorial validation only
1920 × 1080 · 24 fps · 96 frames · 2D float RGBA assumed for numeric examples; working primaries/transfer not established
- DaVinci Resolve 21 for native verification
- RGB test bars, gray ramp and contrasting alpha background
- Preserved ColorMatrix Inspector screenshot
Source material
- SRC
An opaque test chart with a grayscale ramp, saturated RGB/CMY patches and sharp boundaries. A reference-matching exercise needs a second frame with the same content and a known color difference.
Download the test source or prepare your own matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 96 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— MediaIn / test bars · MediaInMAT— ColorMatrix / swap · ColorMatrixOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
MediaIn / test bars (SRC)Output | ColorMatrix / swap (MAT)Input | image |
ColorMatrix / swap (MAT)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- ColorMatrix / swap (MAT) / Controls / Matrix row 1 / Red [editorial coordinate labels]
[0,0,1,0,0]Five [R,G,B,A,Add] coefficient values for output row 1; enter into the actual numeric grid.
- ColorMatrix / swap (MAT) / Controls / Matrix row 2 / Green [editorial coordinate labels]
[0,1,0,0,0]Five [R,G,B,A,Add] coefficient values for output row 2; enter into the actual numeric grid.
- ColorMatrix / swap (MAT) / Controls / Matrix row 3 / Blue [editorial coordinate labels]
[1,0,0,0,0]Five [R,G,B,A,Add] coefficient values for output row 3; enter into the actual numeric grid.
- ColorMatrix / swap (MAT) / Controls / Matrix row 4 / Alpha [editorial coordinate labels]
[0,0,0,1,0]Five [R,G,B,A,Add] coefficient values for output row 4; enter into the actual numeric grid.
- ColorMatrix / swap (MAT) / Controls / Matrix row 5 / Add baseline [editorial coordinate labels]
[0,0,0,0,1]Five [R,G,B,A,Add] coefficient values for output row 5; enter into the actual numeric grid.
- ColorMatrix / swap (MAT) / Controls / Update Lock
falseDisable the rendering lock before checking the actual output.
- ColorMatrix / swap (MAT) / Controls / Invert
falseMathematical inverse is not required for this operation.
Reproduce the example
- Wire source, ColorMatrix and output; verify typed image connections.
A minimal Flow rules out unrelated processing.
Check: There is a continuous image path SRC→OUT.
- Before editing compare all 25 cells against the captured identity.
Identity provides a verifiable baseline.
Check: Bottom row 0,0,0,0,1 and Alpha row 0,0,0,1,0.
- Enter the documented row coefficients in the numeric grid, keeping column order.
Red output reads Blue input; Blue output reads Red input.
Check: All five coefficients [R,G,B,A,Add] match for every output row.
- Check Invert and Update Lock; ensure rendering is enabled.
Invert is matrix inversion and Update Lock stops rendering.
Check: The node is not locked and Invert is in its intended state.
- Compare input and output on color bars; inspect Alpha separately.
RGB view alone does not reveal alpha or numeric range issues.
Check: Red and blue color bars swap; green and alpha stay unchanged.
- Inspect first, middle and final frames, retain numeric settings and mark native QA as pending.
Static graph validation is not native rendering evidence.
Check: Alpha remains original; row four is unchanged.
Expected result
- MediaOut (OUT) · frame 48
Red and blue color bars swap; green and alpha stay unchanged.
Alpha: Alpha remains original; row four is unchanged.
When the result differs
- No color swap.
Cause: The grid is still identity or Update Lock is active.
Correction: Inspect [1,1],[1,3],[3,1],[3,3] and disable Update Lock.
- Green also changed.
Cause: The second output row was edited.
Correction: Restore Green row to 0,1,0,0,0.
- Composite disappeared.
Cause: The Alpha row was modified.
Correction: Restore Alpha row 0,0,0,1,0.
Files for the example
References
- Blackmagic Design · Fusion 9 Tool Reference / Color Matrix [CMx]
Official Color Matrix semantics: 5×5 coefficient grid, Add as fifth column, Update Lock stops render, Invert inverse matrix; local capture confirms Inspector numbers.
- Blackmagic Design · Fusion Visual Effects Guide / MediaIn, Mask and MediaOut
Conventional 2D image flow, Rectangle shape mask and image output semantics.
Weighted grayscale from RGB
Duplicate the same linear RGB mix across R/G/B outputs while preserving Alpha.
Starting conditions
DaVinci Resolve / Fusion 21 editorial target (native pixel result not tested) · Fusion 2D Color Matrix tool · Cross-platform editorial validation only
1920 × 1080 · 24 fps · 96 frames · 2D float RGBA assumed for numeric examples; working primaries/transfer not established
- DaVinci Resolve 21 for native verification
- RGB test bars, gray ramp and contrasting alpha background
- Preserved ColorMatrix Inspector screenshot
Source material
- SRC
An opaque test chart with a grayscale ramp, saturated RGB/CMY patches and sharp boundaries. A reference-matching exercise needs a second frame with the same content and a known color difference.
Download the test source or prepare your own matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 96 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— MediaIn / test bars · MediaInMAT— ColorMatrix / gray · ColorMatrixOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
MediaIn / test bars (SRC)Output | ColorMatrix / gray (MAT)Input | image |
ColorMatrix / gray (MAT)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- ColorMatrix / gray (MAT) / Controls / Matrix row 1 / Red [editorial coordinate labels]
[0.2126,0.7152,0.0722,0,0]Five [R,G,B,A,Add] coefficient values for output row 1; enter into the actual numeric grid.
- ColorMatrix / gray (MAT) / Controls / Matrix row 2 / Green [editorial coordinate labels]
[0.2126,0.7152,0.0722,0,0]Five [R,G,B,A,Add] coefficient values for output row 2; enter into the actual numeric grid.
- ColorMatrix / gray (MAT) / Controls / Matrix row 3 / Blue [editorial coordinate labels]
[0.2126,0.7152,0.0722,0,0]Five [R,G,B,A,Add] coefficient values for output row 3; enter into the actual numeric grid.
- ColorMatrix / gray (MAT) / Controls / Matrix row 4 / Alpha [editorial coordinate labels]
[0,0,0,1,0]Five [R,G,B,A,Add] coefficient values for output row 4; enter into the actual numeric grid.
- ColorMatrix / gray (MAT) / Controls / Matrix row 5 / Add baseline [editorial coordinate labels]
[0,0,0,0,1]Five [R,G,B,A,Add] coefficient values for output row 5; enter into the actual numeric grid.
- ColorMatrix / gray (MAT) / Controls / Update Lock
falseDisable the rendering lock before checking the actual output.
- ColorMatrix / gray (MAT) / Controls / Invert
falseMathematical inverse is not required for this operation.
Reproduce the example
- Wire source, ColorMatrix and output; verify typed image connections.
A minimal Flow rules out unrelated processing.
Check: There is a continuous image path SRC→OUT.
- Before editing compare all 25 cells against the captured identity.
Identity provides a verifiable baseline.
Check: Bottom row 0,0,0,0,1 and Alpha row 0,0,0,1,0.
- Enter the documented row coefficients in the numeric grid, keeping column order.
Same weighted sum is used for all RGB outputs; physical meaning depends on the working space.
Check: All five coefficients [R,G,B,A,Add] match for every output row.
- Check Invert and Update Lock; ensure rendering is enabled.
Invert is matrix inversion and Update Lock stops rendering.
Check: The node is not locked and Invert is in its intended state.
- Compare input and output on color bars; inspect Alpha separately.
RGB view alone does not reveal alpha or numeric range issues.
Check: R=G=B on reference pixels; Alpha remains unchanged.
- Inspect first, middle and final frames, retain numeric settings and mark native QA as pending.
Static graph validation is not native rendering evidence.
Check: Alpha remains original.
Expected result
- MediaOut (OUT) · frame 48
R=G=B on reference pixels; Alpha remains unchanged.
Alpha: Alpha remains original.
When the result differs
- Monochrome image has a tint.
Cause: R/G/B output rows differ.
Correction: Use the same five coefficients in all three RGB rows.
- Grayscale tones look unexpected.
Cause: Weights depend on primaries/transfer.
Correction: Record the working space and compare with another grayscale implementation.
- New transparent regions appear.
Cause: The alpha row was changed.
Correction: Restore alpha row 0,0,0,1,0.
Files for the example
References
- Blackmagic Design · Fusion 9 Tool Reference / Color Matrix [CMx]
Official Color Matrix semantics: 5×5 coefficient grid, Add as fifth column, Update Lock stops render, Invert inverse matrix; local capture confirms Inspector numbers.
- Blackmagic Design · Fusion Visual Effects Guide / MediaIn, Mask and MediaOut
Conventional 2D image flow, Rectangle shape mask and image output semantics.
Local photographic negative: -1 RGB plus Add=+1
Compute 1−RGB rather than toggling Invert, then limit the result using the blue Effect Mask.
Starting conditions
DaVinci Resolve / Fusion 21 editorial target (native pixel result not tested) · Fusion 2D Color Matrix tool · Cross-platform editorial validation only
1920 × 1080 · 24 fps · 96 frames · 2D float RGBA assumed for numeric examples; working primaries/transfer not established
- DaVinci Resolve 21 for native verification
- RGB test bars, gray ramp and contrasting alpha background
- Preserved ColorMatrix Inspector screenshot
Source material
- SRC
An opaque test chart with a grayscale ramp, saturated RGB/CMY patches and sharp boundaries. A reference-matching exercise needs a second frame with the same content and a known color difference.
Download the test source or prepare your own matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 96 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— MediaIn / test bars · MediaInMAT— ColorMatrix / negative-mask · ColorMatrixOUT— MediaOut · MediaOutROI— Rectangle / ROI · RectangleMask
| Source | Destination | Data |
|---|---|---|
MediaIn / test bars (SRC)Output | ColorMatrix / negative-mask (MAT)Input | image |
Rectangle / ROI (ROI)Mask | ColorMatrix / negative-mask (MAT)EffectMask | mask |
ColorMatrix / negative-mask (MAT)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- ColorMatrix / negative-mask (MAT) / Controls / Matrix row 1 / Red [editorial coordinate labels]
[-1,0,0,0,1]Five [R,G,B,A,Add] coefficient values for output row 1; enter into the actual numeric grid.
- ColorMatrix / negative-mask (MAT) / Controls / Matrix row 2 / Green [editorial coordinate labels]
[0,-1,0,0,1]Five [R,G,B,A,Add] coefficient values for output row 2; enter into the actual numeric grid.
- ColorMatrix / negative-mask (MAT) / Controls / Matrix row 3 / Blue [editorial coordinate labels]
[0,0,-1,0,1]Five [R,G,B,A,Add] coefficient values for output row 3; enter into the actual numeric grid.
- ColorMatrix / negative-mask (MAT) / Controls / Matrix row 4 / Alpha [editorial coordinate labels]
[0,0,0,1,0]Five [R,G,B,A,Add] coefficient values for output row 4; enter into the actual numeric grid.
- ColorMatrix / negative-mask (MAT) / Controls / Matrix row 5 / Add baseline [editorial coordinate labels]
[0,0,0,0,1]Five [R,G,B,A,Add] coefficient values for output row 5; enter into the actual numeric grid.
- ColorMatrix / negative-mask (MAT) / Controls / Update Lock
falseDisable the rendering lock before checking the actual output.
- ColorMatrix / negative-mask (MAT) / Controls / Invert
falseMathematical inverse is not required for this operation.
Reproduce the example
- Wire source, ColorMatrix and output; verify typed image connections.
A minimal Flow rules out unrelated processing.
Check: There is a continuous image path SRC→OUT.
- Before editing compare all 25 cells against the captured identity.
Identity provides a verifiable baseline.
Check: Bottom row 0,0,0,0,1 and Alpha row 0,0,0,1,0.
- Enter the documented row coefficients in the numeric grid, keeping column order.
Negative diagonal with +1 constant produces the photographic negative; the mask defines the region.
Check: All five coefficients [R,G,B,A,Add] match for every output row.
- Connect Rectangle.Mask into ColorMatrix.EffectMask and position a local region.
A mask restricts application independently of the alpha-output row.
Check: The blue socket receives mask; the orange socket receives image.
- Check Invert and Update Lock; ensure rendering is enabled.
Invert is matrix inversion and Update Lock stops rendering.
Check: The node is not locked and Invert is in its intended state.
- Compare input and output on color bars; inspect Alpha separately.
RGB view alone does not reveal alpha or numeric range issues.
Check: RGB is inverted inside Rectangle only, with original pixels outside and Alpha preserved.
- Inspect first, middle and final frames, retain numeric settings and mark native QA as pending.
Static graph validation is not native rendering evidence.
Check: Alpha comes from the unchanged fourth row; Effect Mask is not the alpha row.
Expected result
- MediaOut (OUT) · frame 48
RGB is inverted inside Rectangle only, with original pixels outside and Alpha preserved.
Alpha: Alpha comes from the unchanged fourth row; Effect Mask is not the alpha row.
When the result differs
- Image appears black.
Cause: RGB set to -1 but Add=1 was omitted.
Correction: Set each RGB row’s fifth Add cell to 1.
- Entire frame becomes negative.
Cause: Rectangle is not connected to EffectMask.
Correction: Inspect mask-type connection and Rectangle bounds.
- Invert checkbox does not restore the original negative.
Cause: Invert is the matrix inverse, not photographic negative.
Correction: Use -1 RGB and +1 Add with Invert off.
Files for the example
References
- Blackmagic Design · Fusion 9 Tool Reference / Color Matrix [CMx]
Official Color Matrix semantics: 5×5 coefficient grid, Add as fifth column, Update Lock stops render, Invert inverse matrix; local capture confirms Inspector numbers.
- Blackmagic Design · Fusion Visual Effects Guide / MediaIn, Mask and MediaOut
Conventional 2D image flow, Rectangle shape mask and image output semantics.
Reversible matrix: two ColorMatrix instances
Scale red in the first instance then restore RGBA through an inverse second matrix.
Starting conditions
DaVinci Resolve / Fusion 21 editorial target (native pixel result not tested) · Fusion 2D Color Matrix tool · Cross-platform editorial validation only
1920 × 1080 · 24 fps · 96 frames · 2D float RGBA assumed for numeric examples; working primaries/transfer not established
- DaVinci Resolve 21 for native verification
- RGB test bars, gray ramp and contrasting alpha background
- Preserved ColorMatrix Inspector screenshot
Source material
- SRC
An opaque test chart with a grayscale ramp, saturated RGB/CMY patches and sharp boundaries. A reference-matching exercise needs a second frame with the same content and a known color difference.
Download the test source or prepare your own matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 96 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— MediaIn / test bars · MediaInMAT— ColorMatrix / inverse · ColorMatrixOUT— MediaOut · MediaOutREV— ColorMatrix / inverse · ColorMatrix
| Source | Destination | Data |
|---|---|---|
MediaIn / test bars (SRC)Output | ColorMatrix / inverse (MAT)Input | image |
ColorMatrix / inverse (MAT)Output | ColorMatrix / inverse (REV)Input | image |
ColorMatrix / inverse (REV)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- ColorMatrix / inverse (MAT) / Controls / Matrix row 1 / Red [editorial coordinate labels]
[1.25,0,0,0,0]Five [R,G,B,A,Add] coefficient values for output row 1; enter into the actual numeric grid.
- ColorMatrix / inverse (MAT) / Controls / Matrix row 2 / Green [editorial coordinate labels]
[0,1,0,0,0]Five [R,G,B,A,Add] coefficient values for output row 2; enter into the actual numeric grid.
- ColorMatrix / inverse (MAT) / Controls / Matrix row 3 / Blue [editorial coordinate labels]
[0,0,1,0,0]Five [R,G,B,A,Add] coefficient values for output row 3; enter into the actual numeric grid.
- ColorMatrix / inverse (MAT) / Controls / Matrix row 4 / Alpha [editorial coordinate labels]
[0,0,0,1,0]Five [R,G,B,A,Add] coefficient values for output row 4; enter into the actual numeric grid.
- ColorMatrix / inverse (MAT) / Controls / Matrix row 5 / Add baseline [editorial coordinate labels]
[0,0,0,0,1]Five [R,G,B,A,Add] coefficient values for output row 5; enter into the actual numeric grid.
- ColorMatrix / inverse (MAT) / Controls / Update Lock
falseDisable the rendering lock before checking the actual output.
- ColorMatrix / inverse (MAT) / Controls / Invert
falseUse inverse only on REV.
- ColorMatrix / inverse (REV) / Controls / Matrix row 1 / Red [editorial coordinate labels]
[1.25,0,0,0,0]Five [R,G,B,A,Add] coefficient values for output row 1; enter into the actual numeric grid.
- ColorMatrix / inverse (REV) / Controls / Matrix row 2 / Green [editorial coordinate labels]
[0,1,0,0,0]Five [R,G,B,A,Add] coefficient values for output row 2; enter into the actual numeric grid.
- ColorMatrix / inverse (REV) / Controls / Matrix row 3 / Blue [editorial coordinate labels]
[0,0,1,0,0]Five [R,G,B,A,Add] coefficient values for output row 3; enter into the actual numeric grid.
- ColorMatrix / inverse (REV) / Controls / Matrix row 4 / Alpha [editorial coordinate labels]
[0,0,0,1,0]Five [R,G,B,A,Add] coefficient values for output row 4; enter into the actual numeric grid.
- ColorMatrix / inverse (REV) / Controls / Matrix row 5 / Add baseline [editorial coordinate labels]
[0,0,0,0,1]Five [R,G,B,A,Add] coefficient values for output row 5; enter into the actual numeric grid.
- ColorMatrix / inverse (REV) / Controls / Update Lock
falseDisable the rendering lock before checking the actual output.
- ColorMatrix / inverse (REV) / Controls / Invert
trueUse inverse only on REV.
Reproduce the example
- Wire source, ColorMatrix and output; verify typed image connections.
A minimal Flow rules out unrelated processing.
Check: There is a continuous image path SRC→OUT.
- Before editing compare all 25 cells against the captured identity.
Identity provides a verifiable baseline.
Check: Bottom row 0,0,0,0,1 and Alpha row 0,0,0,1,0.
- Enter the documented row coefficients in the numeric grid, keeping column order.
The first matrix is invertible; the second uses the same coefficients with Invert enabled.
Check: All five coefficients [R,G,B,A,Add] match for every output row.
- Enter the same 25 coefficients on the second ColorMatrix and enable Invert only there.
The second instance applies the inverse of the original transform.
Check: Both matrices match numerically and REV.Invert=true.
- Check Invert and Update Lock; ensure rendering is enabled.
Invert is matrix inversion and Update Lock stops rendering.
Check: The node is not locked and Invert is in its intended state.
- Compare input and output on color bars; inspect Alpha separately.
RGB view alone does not reveal alpha or numeric range issues.
Check: After REV, RGB matches SRC within precision and Alpha stays original.
- Inspect first, middle and final frames, retain numeric settings and mark native QA as pending.
Static graph validation is not native rendering evidence.
Check: Alpha stays unchanged through both matrices.
Expected result
- MediaOut (OUT) · frame 48
After the second node RGB should match original values in floating point, subject to rounding or upstream/downstream clipping.
Alpha: Alpha stays unchanged through both matrices.
When the result differs
- Red is still altered after the second matrix.
Cause: Matrices differ or Invert is off on the second.
Correction: Match all 25 coefficients and enable Invert only on the second.
- Grayscale cannot be reversed.
Cause: Equal RGB output rows destroy chromatic information: the matrix is singular.
Correction: Use a nonsingular diagonal scale such as Red×1.25.
- Recovered image differs slightly from original.
Cause: Viewer LUT, rounding or intermediate clamping.
Correction: Compare floating-point values before export and bypass other processing.
Files for the example
References
- Blackmagic Design · Fusion 9 Tool Reference / Color Matrix [CMx]
Official Color Matrix semantics: 5×5 coefficient grid, Add as fifth column, Update Lock stops render, Invert inverse matrix; local capture confirms Inspector numbers.
- Blackmagic Design · Fusion Visual Effects Guide / MediaIn, Mask and MediaOut
Conventional 2D image flow, Rectangle shape mask and image output semantics.
Other outlines from the article
Swap red and blue
Exchange red and blue while preserving Alpha; inspect color bars.
- MediaIn
- ColorMatrix
- MediaOut
Weighted grayscale
Repeat the same weighted RGB recipe in all output rows; state linear-space assumption.
- MediaIn
- ColorMatrix
- MediaOut
Local RGB negative
Use RGB diagonal=-1 and Add=+1; Rectangle isolates the effect.
- MediaIn
- ColorMatrix
- MediaOut
Inverse matrix
A second instance with Invert undoes a first invertible matrix.
- MediaIn
- ColorMatrix
- ColorMatrix
- MediaOut
Mistakes
- Confusing Invert with photographic RGB negative; it inverts the matrix, not 1−RGB automatically.
- Calling the bottom row the offset; the Add offset is the fifth column.
- Editing all 25 fields at once without an identity baseline.
- Leaving Update Lock enabled and assuming the Viewer is malfunctioning.
- Swapping input columns when output rows were intended.
- Zeroing output-alpha row and unexpectedly losing composited visibility.
- Mixing Alpha into premultiplied RGB without an edge test.
- Mistaking negative float values for a bug without checking the Viewer LUT.
- Expecting inverse-matrix math to work on a singular/zero-row matrix.
- Treating 0.2126/0.7152/0.0722 as exact scene luminance for any coded media.
- Confusing spatial Effect Mask with the numeric output alpha row.
- Describing an editorial graph as natively validated in Resolve without evidence.
Tips
- Save a coefficient snapshot before editing.
- Verify each row formula, not only the displayed image.
- Use reference RGB color bars when swapping channels.
- For inverse math avoid zero-diagonal or singular configurations.
- Make negatives with -1 and Add=1, not the Invert checkbox.
- For preserved opacity retain the identity alpha-output row.
- Check output values/scopes after technical transforms.
- Inspect soft edges over two contrasting backdrops.
- Rename the node to its purpose, e.g. SwapRB or NegRGB.
- Use a nonlinear tool when gamma is the actual requirement.
- Release Update Lock before final verification.
- Test explicit image and mask Flow port types.
- State transfer-function assumptions when teaching grayscale.
- After undoing a matrix, compare pixel values with the original.
Workflow order
- Connect MediaIn.Output to ColorMatrix.Input, then Output to MediaOut.
- Open the preserved Inspector and confirm the 5×5 identity grid.
- Decide whether the experiment is swap, grayscale, negative or inverse.
- Enable Update Lock temporarily if editing several cells.
- Record the four main output rows and the fifth Add column first.
- Edit only the coefficients needed for the intended output row.
- For swap set m11=0,m13=1,m31=1,m33=0.
- For grayscale repeat the same RGB weights in each RGB output row.
- For negative set RGB diagonal=-1 and RGB Add=+1, leaving Invert off.
- For restoration use an invertible matrix and a second instance with Invert on.
- Keep the bottom homogeneous row [0,0,0,0,1] unchanged in basic lessons.
- For a localized result wire Rectangle.Mask into the blue EffectMask port.
- Release Update Lock and let the node render.
- Inspect source and output on color bars and a gray ramp.
- View Alpha separately, especially at soft edges and mask borders.
- Check multiple frames and export handling of values outside 0…1.
