Skip to content

Clamp abyss policy for filter3x3#2874

Open
RunDevelopment wants to merge 1 commit intoimage-rs:mainfrom
RunDevelopment:clamp-filter3x3
Open

Clamp abyss policy for filter3x3#2874
RunDevelopment wants to merge 1 commit intoimage-rs:mainfrom
RunDevelopment:clamp-filter3x3

Conversation

@RunDevelopment
Copy link
Member

This adds the clamp/replicate abyss policy to filter3x3. This is consistent with blur and fast_blur.

Why is this necessary?
Previously, filter3x3 would leave a 1-pixel border around the filtered image. This made the function a lot less useful. This PR fixes this defect by applying the filter to all pixels of the image.


As the TODO says, this function is currently slower than it has to be. This can be addressed in future PRs. I focused on making it correct for now.

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