Skip to content

Implement the Gaussian Blur node - #933

Merged
TrueDoctor merged 11 commits into
masterfrom
blur
Dec 31, 2022
Merged

TrueDoctor merged 11 commits into
masterfrom
blur

Conversation

@TrueDoctor

Copy link
Copy Markdown
Member

Closes #911

This implements the blur node in a modular fashion which allows for easy modification

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 30, 2022

Copy link
Copy Markdown

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4baaa9f
Status: ✅  Deploy successful!
Preview URL: https://4088e913.graphite.pages.dev
Branch Preview URL: https://blur.graphite.pages.dev

View logs

properties: node_properties::gpu_map_properties,
},
DocumentNodeType {
name: "Blur",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Gaussian Blur

@Keavon Keavon changed the title Implement Blur node Implement the Gaussian Blur node Dec 30, 2022
identifier: NodeIdentifier::new("graphene_core::raster::BlurNode", &[]),
inputs: &[
DocumentInputType::new("Image", TaggedValue::Image(Image::empty()), true),
DocumentInputType::new("Radius", TaggedValue::U32(3), false),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use F64 (and round the value) and add a TODO to change this back to U32 once we have a working dynamic type system. But also this should probably be allowed to be a decimal value anyways, I think that's mathematically possible. (For example, in the FFT -> Blur in Frequency Domain -> IFFT approach, that should allow a decimal blur radius, and surely there's an equivalent for the spatial domain blur approach.)

@0HyperCube 0HyperCube left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Exciting to have some image filters in the editor.

Comment thread node-graph/gstd/src/any.rs Outdated
Comment thread node-graph/gstd/src/memo.rs
Comment thread node-graph/interpreted-executor/src/node_registry.rs
@TrueDoctor
TrueDoctor merged commit 2c7131a into master Dec 31, 2022
@TrueDoctor
TrueDoctor deleted the blur branch December 31, 2022 20:12
Keavon pushed a commit that referenced this pull request Jan 1, 2023
Keavon pushed a commit that referenced this pull request Feb 8, 2023
Keavon pushed a commit that referenced this pull request Jul 30, 2023
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.

Gaussian Blur and kernel-based nodes

3 participants