SVD in Color Space - #10
Merged
Merged
Conversation
on hover over A
should remove math utils and event handler code
Moves all UI event handling and slider logic out of the rendering code into a new interaction handler class, improving separation of concerns and maintainability. Simplifies the main HTML by delegating UI wiring and state updates, paving the way for easier future enhancements and bug fixes.
Moves application setup, image generation, and SVD computation into a dedicated class to improve modularity and maintainability. Simplifies the interaction layer by consolidating regeneration and SVD logic, and updates the main HTML to use the new app entry point for cleaner initialization.
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.
This visualization presents the Singular Value Decomposition (SVD) of an image reshaped to (H×W)×3, illustrating how SVD disentangles color and form. Each principal color direction (V) represents a distinct axis in RGB color space, while the corresponding spatial activation maps (UΣ) show where those color modes appear in the image.
Because this representation treats each pixel as a 3D color vector, the decomposition’s rank is at most 3 — it explains variation in color rather than spatial complexity.
