Skip to content

SVD in Color Space - #10

Merged
roomrys merged 27 commits into
mainfrom
svd-image-colors
Oct 18, 2025
Merged

SVD in Color Space#10
roomrys merged 27 commits into
mainfrom
svd-image-colors

Conversation

@roomrys

@roomrys roomrys commented Oct 16, 2025

Copy link
Copy Markdown
Owner

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.
image

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.
@roomrys
roomrys merged commit ce4ad47 into main Oct 18, 2025
3 checks passed
@roomrys
roomrys deleted the svd-image-colors branch October 18, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant