Dyn Object Masks
Generate dynamic-object binary masks after global motion compensation, output CSR sparse format.
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill dyn-object-masksgit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/dynamic-object-aware-egomotion/environment/skills/dyn-object-masks ~/.claude/skills/dyn-object-masksPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# When to use
- Detect moving objects in scenes with camera motion; produce sparse masks aligned to sampled frames.
# Workflow
1) **Global alignment**: warp previous gray frame to current using estimated affine/homography.
2) **Valid region**: also warp an all-ones mask to get `valid` pixels, avoiding border fill.
3) **Difference + adaptive threshold**: `diff = abs(curr - warp_prev)`; on `diff[valid]` compute median + 3×MAD; use a reasonable minimum threshold to avoid triggering on noise.
4) **Morphology + area filter**: open then close; keep connected components above a minimum area (tune as fraction of image area or a fixed pixel threshold).
5) **CSR encoding**: for final bool mask
- `rows, cols = nonzero(mask)`
- `indices = cols.astype(int32)`; `data = ones(nnz, uint8)`
- `counts = bincount(rows, minlength=H)`; `indptr = cumsum(counts, prepend=0)`
- store as `f_{i}_data/indices/indptr`
# Code sketchDetails
- Skill name
dyn-object-masks- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/dynamic-object-aware-egomotion/environment/skills/dyn-object-masks/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Dyn Object Masks skill do?
Generate dynamic-object binary masks after global motion compensation, output CSR sparse format.
How do I install the Dyn Object Masks skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill dyn-object-masks. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Dyn Object Masks popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Economic Dispatch
49UCSB-NLP-Chang/Skill-Usage
Generator economic dispatch and cost optimization for power systems. Use when minimizing generation costs, computing optimal generator setpoints, calculating operating margins, or working with generator cost functions.
Dc Power Flow
49UCSB-NLP-Chang/Skill-Usage
DC power flow analysis for power systems. Use when computing power flows using DC approximation, building susceptance matrices, calculating line flows and loading percentages, or performing sensitivity analysis on transmission networks.
Egomotion Estimation
49UCSB-NLP-Chang/Skill-Usage
Estimate camera motion with optical flow + affine/homography, allow multi-label per frame.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.