Skip to content

Conversation

@naglepuff
Copy link
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
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
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
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.

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