Skip to content

Add SVG filters to smooth spectrograms#251

Closed
naglepuff wants to merge 1 commit intomainfrom
spectro-smoothing
Closed

Add SVG filters to smooth spectrograms#251
naglepuff wants to merge 1 commit intomainfrom
spectro-smoothing

Conversation

@naglepuff
Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines +762 to +765
// Knobs for testing blur filters
const contrast = ref({slope: 1.2, intercept: -0.1});
const gaussianBlur = ref({ stdDeviation: 1.5 });
const convolutionMatrix = ref({ order: 5 });
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For anyone interested in exploring this branch, I've added this reactive state to the component for ease of testing changes.

/>
</feComponentTransfer>
</filter>
<filter id="spectro-smoothing-gaussian">
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that there are now 3 separate filters with unique ids. The filter that is currently applied is determined by code in the geoJSUtils file.

Comment on lines +124 to +127
// quadFeatureLayer.node().css("filter", "url(#apply-color-scheme)");
// quadFeatureLayer.node().css("filter", "url(#spectro-smoothing-gaussian)");
// quadFeatureLayer.node().css("filter", "url(#spectro-smoothing-convo)");
quadFeatureLayer.node().css("filter", "url(#spectro-smoothing-combined)");
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented-out lines here refer to other filters. Currently the filter combines both techniques (gaussian blur and convolution matrix). For those interested, you can pick a different filter to use to compare.

@BryonLewis
Copy link
Copy Markdown
Collaborator

I believe this can be closed due to the batbot masking and the contour generation.
integrated in #311

@BryonLewis BryonLewis closed this Feb 12, 2026
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.

2 participants