Repository navigation
Add Darken Slight Gradients Video Import filter - #22
Merged
Merged
Conversation
New first-class Filters registry skill (skill:darken_light_gradients), NumPy+Pillow only. One deterministic non-cascading pass reads an immutable snapshot and replaces each non-transparent pixel with the exact RGBA of its darkest 8-neighbour that is strictly but only slightly darker (maxLightnessDelta, default 16) and colour-similar (maxChromaDelta, default 32), flattening faint gradients without crossing real colour edges; edges use in-bounds neighbours only; alpha preserved; repeat as a stack step for more passes. Visible in Frames & Filters and available to the future Preprocessing stack via the same registry/materialization/provenance. 10 tests cover flat/eight-directions/threshold/darkest/colour-edge/alpha/no-cascade/tiny/determinism/registry. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New first-class Filters registry skill (NumPy+Pillow only): one deterministic non-cascading pass flattens faint gradients by adopting the darkest slightly-darker, colour-similar 8-neighbour, without crossing real colour edges. Available in Frames & Filters and to the future Preprocessing stack. 10 tests.
Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com