M6.7: roto brush segmentation + propagation

Graph-cut segmentation (Boykov-Kolmogorov max-flow, GrabCut GMMs, coarse
to fine), optical-flow propagation with band re-segmentation, correction
strokes, Roto Brush & Refine Edge effect with content-keyed derived cache,
roto.* commands (stroke/propagate/span/freeze/unfreeze/clearStrokes/
cancel/options/status), refine-edge matting (guided filter + closed-form)
and decontamination, Freeze job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-02 22:20:25 -04:00
co-authored by Claude Opus 5.5
parent e911cc5c93
commit 07330bca6b
19 changed files with 4565 additions and 4 deletions
+5 -1
View File
@@ -31,6 +31,7 @@ pub mod paint;
mod perspective;
mod perspective2;
pub mod puppet;
pub mod roto;
mod sim;
mod sim2;
mod stylize2;
@@ -354,6 +355,7 @@ pub fn registry() -> &'static [EffectSpec] {
v.extend(paint::specs());
v.extend(puppet::specs());
v.extend(warp_stab::specs());
v.extend(roto::specs());
v.sort_by(|a, b| a.category.cmp(b.category).then(a.name.cmp(b.name)));
for s in v.iter_mut() {
if GPU_EFFECTS.contains(&s.id) {
@@ -426,7 +428,7 @@ pub fn instantiate(spec: &EffectSpec, ids: &mut Ids, instance_name: &str, layer_
/// Display names of nested parameter groups by match id.
fn group_name(m: &str) -> &str {
warp_stab::GROUPS.iter().find(|(id, _)| *id == m).map(|(_, n)| *n).unwrap_or(m)
warp_stab::GROUPS.iter().chain(roto::GROUPS).find(|(id, _)| *id == m).map(|(_, n)| *n).unwrap_or(m)
}
/// The nested group at `path` (`borders/autoScale`) under `g`, created on first use.
@@ -494,6 +496,8 @@ pub const TIME_DEPENDENT: &[&str] = &[
"ec.time.pixelmotionblur",
// Each frame gets its own stabilizing warp.
warp_stab::ID,
// Each frame has its own segmentation.
roto::ID,
];
/// See [`TIME_DEPENDENT`].