FUSION · FULL ARTICLE
BoundingBox
Analyzes a selected source channel, finds the occupied area above Threshold and generates a controllable rectangular RGBA box with Lock, Extend and Color controls.
Overview
Blackmagic describes Krokodove Bounding Box as a tool that draws a rectangle from a selected channel, with Threshold controls determining the rectangle size. Treat it as channel analysis plus rectangle generation, not as AI detection, Crop or a manually drawn Rectangle mask.
The main Input is a normal 2D RGBA image. BoundingBox analyzes that stream and returns a new image/RGBA result containing the generated rectangular area; the source pixels are not simply passed through as the output.
Channel selects the signal used to find occupied content. The bundled dropdown capture confirms Red, Green, Blue, Alpha and Luminance. The selected channel can radically change the bounds.
Alpha is usually the clearest starting point for isolated transparent graphics. Luminance measures visible brightness instead, so it can behave very differently on opaque dark backgrounds or bright RGB content with partial transparency.
Red, Green and Blue are useful for technical maps and channel-coded sources. On ordinary footage they may produce surprising bounds because background color and noise can become part of the selected signal.
Threshold defines how strong a selected-channel value must be before it contributes to the rectangle. A very low threshold can allow weak noise, glow, premultiplied fringe or a single stray pixel to expand the bounds dramatically.
A threshold that is too high can remove a soft edge, shadow or dim subject region that should have counted as occupied. Tune it on the actual chosen channel and inspect multiple frames rather than copying one number as a preset.
Lock shows three choices: All Sides, Vert./Horiz. and None. A menu alone does not establish the complete field-linkage behavior. Compare the modes on a stationary shape while changing only Extend padding, then record the available fields and observed changes to the sides.
Do not rely on Lock as a guaranteed temporal stabilization control. If the bounds jitter, first inspect changing selected-channel pixels, source-matte noise and Threshold.
Extend adds working margin around the detected area. It is most useful after detection is already correct, for example before blur, glow or another downstream utility operation that should not touch the subject edge tightly.
Extend does not repair poor detection. If one remote noise pixel already enlarges the box, padding only enlarges the mistake further.
Color controls the generated rectangle appearance. The expanded captured control shows Red, Green, Blue and Alpha, each at 1.0 in the illustrated state.
Output RGB and the analyzed source Channel are independent stages. You can analyze Luminance and still generate an opaque white rectangle, or analyze Alpha and generate a tinted semi-transparent diagnostic plate.
Output Alpha controls transparency of the generated rectangle. It is not the same as selecting source Alpha for detection and should be inspected independently in the Alpha Viewer when the result is used as a technical matte.
An optional Effect Mask remains a spatial operation gate rather than a replacement for the primary Input or the Channel selector. Feeding a mask there is conceptually different from analyzing that mask as the main source image.
BoundingBox is often most useful as a utility stage: detect occupied area, generate a rectangular plate, then optionally convert that image to a true mask with Bitmap before sending it into a blue Effect Mask socket downstream.
Do not confuse BoundingBox with Crop. Crop changes image-domain boundaries; BoundingBox generates a rectangle based on channel analysis. Use a dedicated Crop or domain tool when the goal is to change canvas boundaries.
Do not confuse it with Rectangle Mask either. Rectangle is user-drawn geometry; BoundingBox derives geometry from image data and therefore can change as the source changes.
Soft mattes, glow, motion blur and shadows can legitimately enlarge the detected region when the selected Channel and Threshold still consider those pixels active. That is source-data behavior, not necessarily a bug.
For temporal work, validate several frames and playback. A box that is perfect on one still can chatter when noise or soft-edge values move around Threshold.
The three bundled captures are the UI anchors for this article: full Controls, the Channel menu and the Lock menu. They verify current labels while hidden Settings fields, exact Lock math and Effect Mask application order remain live-verification items.
For clean diagnosis, start with a synthetic Background constrained by a Rectangle mask, then feed that image into BoundingBox. This isolates Channel, Threshold and Extend behavior from footage noise.
When to use it
- Automatic rectangular matte around an alpha-isolated subject
- Technical bounds around a luminance-active region
- Padded work areas using Extend before downstream processing
- Diagnosing stray alpha or luminance pixels
- Generating a utility plate that can be converted to a mask with Bitmap
- Channel-specific bounds from Red, Green or Blue control maps
- Checking temporal stability of changing mattes
- Automatic work regions for motion-graphics elements whose size changes over time
Article screenshots
Inputs & outputs
BoundingBox: image Input plus optional Effect Mask → generated RGBA rectangle
BoundingBox analyzes one primary image Input, computes occupied rectangular bounds from Channel/Threshold and returns a new RGBA image. Effect Mask is an optional gate, not a second source or Channel selector.
Measures the selected source channel, computes rectangular bounds, applies Lock/Extend and generates a rectangle with the chosen Color/RGBA.
Inputs
- Input
What is analyzed
Receives: A 2D RGBA image, matte-like image, procedural/control map or graphic branch.
Inside the node: BoundingBox reads the selected Channel and computes a rectangular occupied area using Threshold.
Typical sources: MediaIn · Background/graphic · keyed/roto image · Fast Noise/control map · Merge result
On fully opaque footage, Channel=Alpha is often active across the whole frame; choose the signal deliberately.
- Effect Mask
Where the tool contributes
Receives: Single-channel coverage from Rectangle/Ellipse/Polygon/B-Spline/Bitmap.
Inside the node: Limits spatial contribution according to host masking behavior; it is not the analyzed Channel.
Typical sources: Rectangle · Ellipse · Polygon · B-Spline · Bitmap
Live-check exact Krokodove Effect Mask ordering and do not confuse this socket with the primary Input.
Outputs and destination
Output
Generated 2D RGBA image containing the rectangle computed from Channel/Threshold and styled with Color/RGBA.
Next step: Viewer/MediaOut · Bitmap.Image · Merge.Foreground · utility image branch · diagnostic overlay
This is image/RGBA data, not a mask type and not an automatically cropped source image.
- Output
- Generated 2D RGBA image containing the rectangular BoundingBox result.
Processing order
- Input supplies a 2D RGBA source.
- Channel selects Red/Green/Blue/Alpha/Luminance for analysis.
- Threshold defines active pixels.
- Lock determines which Extend fields are linked.
- Extend adds padding around detected bounds.
- Color/RGBA define the generated rectangle.
- An optional Effect Mask limits node contribution without replacing Input.
- Output sends a normal RGBA image.
- Add Bitmap when separate channel and threshold controls are needed. It is optional for a standard Effect Mask.
- Use Crop/AutoDomain when the canvas/domain must actually change.
Alpha bounds as a mask
Keyed image → BoundingBox.Input → Bitmap.Image · Bitmap.Mask → downstream Effect Mask
BoundingBox creates a rectangular image; in this example Bitmap explicitly extracts its channel and allows separate matte processing before Effect Mask.
Input = what to analyze; Channel/Threshold = what counts as active; Lock/Extend = bounds; Color/RGBA = what to generate; Effect Mask = where; Output = image, not Crop and not semantic detection.
Parameters
BoundingBox · complete Inspector reference
Read BoundingBox as five sequential decisions: Input supplies data, Channel selects the measured signal, Threshold defines active pixels, Lock/Extend shape the geometry, and Color/RGBA define the generated output. Keep detection separate from appearance.
- Source
- RGBA Input
- Detect
- Channel → Threshold
- Bounds
- Lock → Extend
- Generate
- Color / RGBA
- Output
- 2D RGBA image
Detection channel · Channel
Red/Green/Blue/Alpha/Luminance decide which source values participate in occupied-area detection.
- Channel
Detection channel > ChannelChooses Red, Green, Blue, Alpha or Luminance for detection. The bundled menu capture verifies exactly these five choices. Detection channel and generated box color are separate decisions.
Check / distinguish: Start with Alpha for transparent graphics and Luminance for brightness-driven maps.
- Channel is detection, not color
Controls > ChannelChannel selects source data for geometry; Color below defines generated output.
Check / distinguish: Change output Color; bbox geometry should not depend on generated hue.
- Alpha baseline
Controls > Channel > AlphaAlpha is usually the best starting point for keyed/roto/transparent graphics.
Check / distinguish: Open the Alpha Viewer and compare active pixels with the bbox.
- Luminance is brightness
Controls > Channel > LuminanceLuminance measures RGB brightness rather than transparency coverage.
Check / distinguish: Compare an opaque black background in Alpha and Luminance.
- RGB channel maps
Controls > Channel > Red/Green/BlueIndividual RGB channels are useful on technical maps but ordinary footage backgrounds may also be active.
Check / distinguish: View each channel separately before choosing.
- Opaque footage alpha trap
Controls > Channel > AlphaOn fully opaque footage Alpha is often active across the whole frame, so the bbox may become full-frame.
Check / distinguish: If you need the bright object, compare Luminance.
- Dark object luminance trap
Controls > Channel > LuminanceA dark but opaque subject can nearly disappear from luminance detection.
Check / distinguish: Compare Alpha or a relevant RGB channel.
- Detection before appearance
ControlsSolve geometry (Channel/Threshold/Lock/Extend) before Color/RGBA.
Check / distinguish: Keep output white and opaque while tuning detection.
- Source contract first
InputBefore tuning BoundingBox, define what an active pixel means in the upstream pipeline.
Check / distinguish: Document the key/matte/control-map contract next to the preset.
- No semantic understanding
DetectionBoundingBox has no concept of faces, logos or subjects; it sees channel values only.
Check / distinguish: Use a different tool/workflow for semantic detection.
Detection threshold · Threshold
Threshold separates meaningful signal from weak fringe/noise.
- Threshold
Detection threshold > ThresholdSets the minimum selected-channel strength counted as occupied content. Lower values include weak fringe/noise; higher values can trim soft or dim areas.
Check / distinguish: Raise Threshold until stray pixels stop controlling the bounds, then verify that desired soft edges remain.
- Threshold defines occupied pixels
Controls > ThresholdThreshold decides which selected-channel values participate in the bounds.
Check / distinguish: Change only Threshold on one frame.
- Low threshold catches fringe
Controls > ThresholdA threshold that is too low captures glow/noise/premult fringe and expands the bbox.
Check / distinguish: Find the weakest pixel that should still count as subject.
- High threshold trims soft detail
Controls > ThresholdA threshold that is too high removes soft edges, shadows or dim subject regions.
Check / distinguish: A/B the edge itself, not only rectangle size.
- Threshold is source-specific
Controls > ThresholdThe same number does not transfer reliably across keyers, maps or exposure levels.
Check / distinguish: Save presets only with their expected source contract.
- Single-pixel expansion
Controls > ThresholdOne distant active pixel can expand the rectangle all the way to it.
Check / distinguish: Inspect at 100% and locate stray pixel/channel noise.
- Glow inclusion is a design decision
Controls > ThresholdGlow may be intended occupied area or unwanted fringe; that is a design decision, not a node bug.
Check / distinguish: Decide whether glow should count before tuning Threshold.
- Motion blur inclusion
Controls > ThresholdMotion-blurred edges can change bbox over time.
Check / distinguish: Check playback on fast motion.
- Playback threshold QC
Controls > ThresholdNoise near Threshold can make bbox sides chatter frame to frame.
Check / distinguish: Play the difficult section rather than checking only a reference still.
Bounds constraint · Lock
Captured menu: All Sides, Vert./Horiz., None; exact target-build semantics remain live-verification territory.
- Lock
Bounds constraint > LockSelects the padding-control mode around the detected region. The Lock menu shows All Sides, Vert./Horiz. and None. First establish the bounds with Extend = 0, then vary one padding control on a stationary rectangle and observe which fields and sides change together. The screenshot confirms the menu choices; verify the exact field linkage in the installed version with this comparison.
Check / distinguish: Compare All Sides, Vert./Horiz. and None on one stationary shape with Channel and Threshold held fixed.
- Captured Lock menu
Controls > LockThe UI confirms All Sides, Vert./Horiz. and None.
Check / distinguish: Compare against the bundled Lock screenshot.
- Do not guess Lock math
Controls > LockThe Lock menu shows All Sides, Vert./Horiz. and None. First establish the bounds with Extend = 0, then vary one padding control on a stationary rectangle and observe which fields and sides change together. The screenshot confirms the menu choices; verify the exact field linkage in the installed version with this comparison.
Check / distinguish: Change one side padding on a still shape; source animation is unnecessary.
- Lock is not matte cleanup
Controls > LockLock does not replace a clean source matte and correct Threshold.
Check / distinguish: Clean the source upstream and compare again.
- Linked Extend test
Controls > LockAfter changing Lock, inspect the available Extend fields. If separate Left, Right, Top and Bottom fields appear, give them different values and compare the sides; if fields remain linked, record that linkage for the installed version.
Check / distinguish: Change one side padding on a still shape; source animation is unnecessary.
- Asymmetric source test
Controls > LockUse a stationary shape and vary one padding control at a time, keeping source motion out of the comparison.
Check / distinguish: Compare two values of one Extend control while keeping source geometry, Channel and Threshold fixed.
- Record target-build behavior
Controls > LockFor production docs, record the live result of each mode separately.
Check / distinguish: Save the test comp and Resolve build number.
Padding · Extend
Extend is added after correct detection and should not compensate for a bad Threshold.
- Extend
Padding > ExtendAdds margin around the detected rectangle. Use it only after detection is stable so padding remains a deliberate downstream allowance.
Check / distinguish: Threshold first, Extend second.
- Extend is post-detection padding
Controls > ExtendExtend adds margin after occupied-area detection.
Check / distinguish: Return to 0, tune detection, then raise it.
- Padding cannot fix a false hit
Controls > ExtendA remote noise pixel must be fixed with Threshold/source cleanup, not padding.
Check / distinguish: Inspect the bbox at Extend 0.
- Downstream safety margin
Controls > ExtendA small margin is useful before blur/glow/utility operations.
Check / distinguish: Add only the margin needed downstream.
- Resolution context
Controls > ExtendA numeric Extend value should not be treated as a universal visual preset across resolutions.
Check / distinguish: Judge it at final output size.
- Negative or extreme values need live verification
Controls > ExtendThe capture confirms the control but not every range or edge case.
Check / distinguish: Verify extreme/negative values live before documenting them.
- Crop is a different operation
DownstreamBoundingBox generates a rectangle and does not inherently change image domain.
Check / distinguish: Use Crop/AutoDomain when the canvas/domain must actually change.
Generated color · Color
Color defines generated-rectangle appearance and does not change detection channel.
- Color
Generated color > ColorControls the generated rectangle color. Expands to RGBA output controls and does not change source-channel detection.
Check / distinguish: Opaque white is a useful diagnostic baseline.
- Color is generated appearance
Controls > ColorColor does not affect the selected source Channel.
Check / distinguish: Change white to red and compare the bounds.
- Diagnostic tint
Controls > ColorA contrasting tint helps reveal the box over the source during debugging.
Check / distinguish: After diagnosis return to technical white/alpha for matte workflows.
Generated RGBA · Red / Green / Blue / Alpha
RGBA are generated-output components; output Alpha is not the same as source Alpha detection.
- Red
Generated RGBA > RedRed component of the generated rectangle. Captured baseline is 1.0.
Check / distinguish: Do not confuse output Red with Channel = Red.
- Green
Generated RGBA > GreenGreen component of the generated rectangle. Captured baseline is 1.0.
Check / distinguish: Keep RGB simple when the output is intended as a control plate.
- Blue
Generated RGBA > BlueBlue component of the generated rectangle. Captured baseline is 1.0.
Check / distinguish: Output color does not change box geometry.
- Alpha
Generated RGBA > AlphaOpacity of the generated rectangle. Captured baseline is 1.0. This is output alpha, not the source Alpha detector setting.
Check / distinguish: Inspect the Alpha Viewer separately for mask-like workflows.
- Red output component
Controls > RedRed is a component of the generated rectangle.
Check / distinguish: Do not confuse it with Channel = Red.
- Green output component
Controls > GreenGreen is a component of the generated rectangle.
Check / distinguish: Inspect appearance only.
- Blue output component
Controls > BlueBlue is a component of the generated rectangle.
Check / distinguish: Inspect appearance only.
- Alpha is generated opacity
Controls > AlphaOutput Alpha sets box opacity and is not source-analysis Alpha.
Check / distinguish: Compare Alpha Viewer at 1 and 0.5.
- White matte baseline
Controls > RGBAWhite 1/1/1/1 is convenient for technical matte/debug work.
Check / distinguish: Start with neutral white before artistic tint.
- Semi-transparent debug
Controls > AlphaA semi-transparent output is useful as an overlay but RGB preview can hide alpha issues.
Check / distinguish: Open the Alpha Viewer separately.
- Image output is not mask type
OutputBoundingBox returns an RGBA image. Bitmap is useful for separate matte processing; an ordinary Effect Mask can also read a selected channel of that image directly.
Check / distinguish: Check Flow type and use Bitmap.
- Premultiplication awareness
OutputA semi-transparent generated output can enter premultiplied composites like any RGBA image.
Check / distinguish: Inspect RGB/Alpha separately before Merge.
Settings · Settings tab
The tab is visible but hidden fields are not captured and are intentionally not invented.
- Settings tab
Settings > Settings tabStandard Fusion tool settings tab. The tab is visible in the capture but its hidden fields are not captured, so this article does not invent target-build labels.
Check / distinguish: Re-check the UI capture before documenting future Resolve changes.
- Settings are uncaptured
SettingsHidden Settings controls are not listed without a capture.
Check / distinguish: Do not copy labels from another Resolve version.
- Effect Mask order needs live verification
Flow / Effect MaskThe article contract retains the optional Effect Mask, but exact Krokodove processing order should be live-checked.
Check / distinguish: Compare masked/unmasked output on a synthetic source.
Before adjusting the node
- Choose Channel first, then Threshold; do not change both at once.
- Treat Alpha and Luminance as different signals rather than interchangeable choices.
- Tune Extend only after detection is stable.
- When changing Lock, inspect available Extend fields and their value links on a static source.
- Generated Color/RGBA does not affect what was detected.
- If bounds chatter, inspect source matte/noise and Threshold first.
- For an ordinary Effect Mask, select the image channel in the receiver’s Settings or process it separately with Bitmap.
- Verify exact Lock semantics and Effect Mask order live on the target build.
Reference documentation
- Komkom Doorn — Krokodove 8.30 distribution archive
Historical Krokodove distribution. The archive alone does not establish the internal mathematics of Lock in the installed Resolve version.
Examples
Alpha baseline on a clean shape
Observe the clean Channel → Threshold → bbox chain without footage noise.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; BoundingBox labels/menu choices are anchored to the three bundled Resolve Inspector captures and Blackmagic's Resolve 21 Krokodove description. · DaVinci Resolve / Fusion Studio 21 · Cross-platform editorial reference; exact Lock pixel behavior is pending live target-workstation validation
1920 × 1080 · 24 fps · 120 frames · 2D RGBA input analysis followed by generated rectangular RGBA output. BoundingBox is not semantic detection and is not a Crop/domain operator.
- BoundingBox
- Background
- Rectangle
- Bitmap
- MediaIn
- MediaOut
Nodes and connections
RECT— SOURCE SHAPE · RectangleMaskBG— SOURCE IMAGE · BackgroundBOX— BOUNDING BOX · BoundingBoxOUT— OUTPUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE SHAPE (RECT)Mask | SOURCE IMAGE (BG)EffectMask | mask |
SOURCE IMAGE (BG)Output | BOUNDING BOX (BOX)Input | image |
BOUNDING BOX (BOX)Output | OUTPUT (OUT)Input | image |
Graph output: OUTPUT (OUT)
Parameter values
- BOUNDING BOX (BOX) / Controls / Channel
"Alpha"Use the synthetic source alpha as the detection signal.
- BOUNDING BOX (BOX) / Controls / Threshold
0.01Keep the threshold low enough to include the hard synthetic shape.
- BOUNDING BOX (BOX) / Controls / Lock
"All Sides"Use this captured Lock choice as the initial comparison state; no claim about its relative constraints is made.
- BOUNDING BOX (BOX) / Controls / Extend
0Start with no padding.
- BOUNDING BOX (BOX) / Controls / Color RGBA
[1,1,1,1]Use an opaque white generated box for easy inspection.
Reproduce the example
- Build Rectangle → Background.EffectMask → BoundingBox → MediaOut.
A synthetic source provides a predictable hard alpha edge.
Check: Background shows only the rectangular source shape.
- Choose Alpha and Threshold 0.01 while keeping Extend at 0.
This makes the bbox follow source transparency without padding.
Check: The generated box encloses the occupied alpha area.
- Raise Extend and compare only the box size.
Extend should remain a separate post-detection decision.
Check: The box grows while source detection stays conceptually unchanged.
Expected result
- OUTPUT (OUT) · frame 48
A clean white RGBA box around source alpha with an obvious Extend effect.
Alpha: Generated-box alpha comes from the output Alpha control; it is not a copy of source alpha.
When the result differs
- The bbox fills the whole frame
Cause: The source Background may be opaque outside the shape or the wrong channel is being analyzed.
Correction: Inspect Background alpha/mask and confirm Channel = Alpha.
References
- Blackmagic Design — DaVinci Resolve 21: Krokodove / Bounding Box
Krokodove Nodes > Image Tools: Bounding Box draws a rectangle from a selected channel; Threshold controls determine rectangle size. Current labels are anchored to bundled Resolve captures.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image flow, Background/Rectangle masking and MediaOut fundamentals used by the exercises.
Threshold versus weak fringe plus Extend
Learn to clean detection with Threshold first and add padding only afterward.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; BoundingBox labels/menu choices are anchored to the three bundled Resolve Inspector captures and Blackmagic's Resolve 21 Krokodove description. · DaVinci Resolve / Fusion Studio 21 · Cross-platform editorial reference; exact Lock pixel behavior is pending live target-workstation validation
1920 × 1080 · 24 fps · 120 frames · 2D RGBA input analysis followed by generated rectangular RGBA output. BoundingBox is not semantic detection and is not a Crop/domain operator.
- BoundingBox
- Background
- Rectangle
- Bitmap
- MediaIn
- MediaOut
Source material
- SRC
A clip/graphic with a clearly distinguishable alpha or luminance region.
Any source where weak fringe/noise around the main subject is easy to inspect.
Nodes and connections
SRC— SOURCE · MediaInBOX— BOUNDING BOX · BoundingBoxOUT— OUTPUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE (SRC)Output | BOUNDING BOX (BOX)Input | image |
BOUNDING BOX (BOX)Output | OUTPUT (OUT)Input | image |
Graph output: OUTPUT (OUT)
Parameter values
- BOUNDING BOX (BOX) / Controls / Channel
"Luminance"Use luminance for a footage/control-map diagnostic.
- BOUNDING BOX (BOX) / Controls / Threshold
0.1Reject very weak luminance noise/fringe.
- BOUNDING BOX (BOX) / Controls / Extend
0.03Add a small working margin after detection is stable.
- BOUNDING BOX (BOX) / Controls / Color RGBA
[1,0.2,0.2,0.8]Use a visible diagnostic plate.
- BOUNDING BOX (BOX) / Controls / Lock
"All Sides"Apply the shared Extend value to every side.
Reproduce the example
- Choose Luminance and find a frame with weak noise around the main active region.
This makes it obvious why a low threshold expands the bbox.
Check: At a low threshold, weak pixels influence the bounds.
- Raise Threshold until stray fringe no longer defines the bbox.
Threshold fixes detection; Extend should not compensate for a bad source selection.
Check: The box follows the main region rather than isolated weak pixels.
- Only then add a small Extend value.
Padding is now deliberately added to correct geometry.
Check: A margin appears without reintroducing stray detection.
Expected result
- OUTPUT (OUT) · frame 48
A stable bbox around the main luminance region with a small technical margin.
Alpha: Color/Alpha define the generated plate; source transparency is not simply copied.
When the result differs
- A desired soft edge disappears
Cause: Threshold is too high.
Correction: Lower Threshold and decide whether the soft edge should count as occupied area.
References
- Blackmagic Design — DaVinci Resolve 21: Krokodove / Bounding Box
Krokodove Nodes > Image Tools: Bounding Box draws a rectangle from a selected channel; Threshold controls determine rectangle size. Current labels are anchored to bundled Resolve captures.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image flow, Background/Rectangle masking and MediaOut fundamentals used by the exercises.
Linked and independent box padding
Compare All Sides and None on one stationary asymmetric shape.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; BoundingBox labels/menu choices are anchored to the three bundled Resolve Inspector captures and Blackmagic's Resolve 21 Krokodove description. · DaVinci Resolve / Fusion Studio 21 · Cross-platform editorial reference; exact Lock pixel behavior is pending live target-workstation validation
1920 × 1080 · 24 fps · 120 frames · 2D RGBA input analysis followed by generated rectangular RGBA output. BoundingBox is not semantic detection and is not a Crop/domain operator.
- BoundingBox
- Background
- Rectangle
- Bitmap
- MediaIn
- MediaOut
Nodes and connections
RECT— SOURCE SHAPE · RectangleMaskBG— SOURCE IMAGE · BackgroundBOX— BOUNDING BOX · BoundingBoxOUT— OUTPUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE SHAPE (RECT)Mask | SOURCE IMAGE (BG)EffectMask | mask |
SOURCE IMAGE (BG)Output | BOUNDING BOX (BOX)Input | image |
BOUNDING BOX (BOX)Output | OUTPUT (OUT)Input | image |
Graph output: OUTPUT (OUT)
Parameter values
- SOURCE SHAPE (RECT) / Controls / Center
[0.4,0.55]An offset rectangle supplies a recognizable reference.
- SOURCE SHAPE (RECT) / Controls / Width
0.3Set source width.
- SOURCE SHAPE (RECT) / Controls / Height
0.2Set source height.
- SOURCE IMAGE (BG) / Controls / Color
[1,1,1,1]A white image receives Rectangle Alpha.
- BOUNDING BOX (BOX) / Controls / Channel
"Alpha"Detect the opaque shape.
- BOUNDING BOX (BOX) / Controls / Threshold
0.01Exclude zero coverage.
- BOUNDING BOX (BOX) / Controls / Lock
"All Sides"Initial state for comparing available padding controls.
- BOUNDING BOX (BOX) / Controls / Extend
0.03Positive padding value for the comparison.
- BOUNDING BOX (BOX) / Controls / Lock
"None"Second state: check whether separate side controls are available in this version.
- BOUNDING BOX (BOX) / Controls / Extend Left
0.08Suggested value if a separate Extend Left control is available.
- BOUNDING BOX (BOX) / Controls / Extend Right
0.01Suggested value if a separate Extend Right control is available.
- BOUNDING BOX (BOX) / Controls / Extend Top
0.04Suggested value if a separate Extend Top control is available.
- BOUNDING BOX (BOX) / Controls / Extend Bottom
0.02Suggested value if a separate Extend Bottom control is available.
Reproduce the example
- Set a stationary Rectangle and white Background, retaining the shown connections.
Keep geometry fixed while comparing padding.
Check: Alpha contains one off-center rectangle.
- Choose All Sides with Extend = 0.03, then switch to None and inspect the available fields. If separate side controls exist, compare Left = 0.08, Right = 0.01, Top = 0.04 and Bottom = 0.02. Otherwise continue with shared Extend and record the interface difference.
A stationary shape isolates field linkage and padding changes from source motion.
Check: Record which fields and sides change together. If independent controls are available, verify whether distinct values produce distinct side padding.
Expected result
- OUTPUT (OUT) · frame 0
The comparison establishes which Extend fields exist and how they are linked in the installed version. Independent four-side padding is confirmed only after observing that result.
Alpha: Alpha follows the generated BoundingBox rectangle; the source shape is used for analysis.
When the result differs
- Four Extend fields are not visible.
Cause: The fields may depend on Lock mode or differ between versions.
Correction: Compare None and All Sides. If only shared Extend controls are available, use them and record the actual interface; do not address missing fields through guessed identifiers.
References
- Blackmagic Design — DaVinci Resolve 21: Krokodove / Bounding Box
Krokodove Nodes > Image Tools: Bounding Box draws a rectangle from a selected channel; Threshold controls determine rectangle size. Current labels are anchored to bundled Resolve captures.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image flow, Background/Rectangle masking and MediaOut fundamentals used by the exercises.
Other outlines from the article
Alpha bounds
Detect an isolated subject from source alpha, reject weak fringe with Threshold and add controlled padding with Extend.
- Graphic → BoundingBox
- Channel = Alpha
- BoundingBox → Viewer / Bitmap
Luminance bounds
Build a rectangle around the meaningful bright region of a control map.
- Control Map → BoundingBox
- Channel = Luminance
- Threshold A/B
Image-to-mask workflow
Convert the generated white rectangle to a true mask stream with Bitmap before a downstream Effect Mask socket.
- BoundingBox.Output → Bitmap.Image
- Bitmap.Mask → Effect Mask
Padded utility region
Use Extend after clean detection to create working margin for a downstream utility branch.
- Source → BoundingBox
- Extend → utility branch
Linked and independent padding
On one static source, compare None with Left = 0.02, Right = 0.08, Top = 0.03, Bottom = 0.06 against All Sides with uniform Extend = 0.02.
- Source
- BoundingBox
- MediaOut
Mistakes
- Treating BoundingBox as semantic object detection or AI tracking
- Using Luminance when source transparency actually defines the subject
- Using Alpha on fully opaque footage and expecting a box around only the bright object
- Leaving Threshold so low that one weak pixel expands the bounds
- Setting Threshold so high that desired soft edges disappear
- Changing Channel and Threshold together and losing A/B causality
- Using Extend to compensate for bad detection
- Confusing generated Color with the analyzed source Channel
- Confusing output Alpha with source Alpha selection
- Reading the wrong image channel in an Effect Mask or assuming that a specialized matte socket has the same contract
- Expecting BoundingBox to crop the image domain
- Confusing BoundingBox with a manually drawn Rectangle Mask
- Treating Lock as a universal jitter fix without checking the source matte
- Judging animated bounds from one still frame
- Ignoring glow, motion blur or fringe that legitimately expands occupied area
- Using a color channel on footage without checking background contribution
- Copying Threshold or Extend values between unrelated sources
- Documenting hidden Settings controls or exact Lock math without live evidence
Tips
- A Background constrained by Rectangle is the cleanest training source for this node.
- Start with Alpha for keyed or roto elements, but inspect premultiplied fringe separately.
- Tune Threshold before Extend; this is the fastest route to stable bounds.
- Compare Alpha and Luminance in separate Viewer/channel inspections.
- For temporal QC, watch the movement of box edges during playback, not just the final image.
- If bounds jitter, inspect source-matte stability and Threshold first. Compare Lock separately on a stationary shape.
- Select the generated image channel in a receiving Effect Mask, or add Bitmap for separate matte processing.
- Use a strong diagnostic output color only while troubleshooting; white/alpha is easier for technical matte checks.
- A stray bright pixel is easier to locate by temporarily raising Threshold aggressively, then backing it down.
- Decide whether glow or shadow should count as occupied area before tuning Threshold.
- Use Crop or a domain tool when you actually need to change canvas bounds.
- To inspect Lock, change one Extend value and observe which linked fields and sides change with it.
- Inspect the Alpha Viewer because RGB can hide a semi-transparent result.
- Bundled captures are the source of truth for current labels; live Resolve is the source of truth for exact pixel behavior.
Workflow order
- Connect the source image to BoundingBox.Input and temporarily bypass unrelated downstream effects.
- Decide which source signal actually defines the subject: Alpha, Luminance or one RGB channel.
- Start with Alpha for transparent graphics or Luminance for brightness maps.
- Use a low Threshold first and inspect whether noise, glow, shadow or fringe expands the rectangle.
- Raise Threshold gradually while keeping Channel and frame fixed.
- Check several frames because a stable still can become unstable in playback.
- Add Extend only after detection itself is correct.
- Compare All Sides, Vert./Horiz. and None while changing one available Extend control. Observe which sides and Inspector fields change together.
- Adjust Color/RGBA after box geometry is settled; appearance is not detection.
- For an Effect Mask, select the appropriate image channel in the receiver; add Bitmap when separate matte controls are useful.
- Use Effect Mask separately when the node operation itself needs spatial gating.
- If the box is unexpectedly huge, inspect source Channel and stray pixels before changing Extend.
- If the result needs a truly smaller canvas or domain, use a dedicated Crop/domain tool.
- Bypass the node and verify that downstream tools are meant to consume the generated box rather than the original source pixels.
- Inspect RGB and Alpha independently when using semi-transparent output.
- Before shipping presets, live-check exact Lock behavior and Effect Mask ordering on the target Resolve build.
