Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dilate/Erode node #1845

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

ThomasWilshaw
Copy link
Collaborator

Adds a dilate erode node to the filter category. Mainly useful for masks and other grey scale images.

Only controversial issue is that the Gaussian erode does an inversion via 1.0 - col.rgb which isn't really okay colour management wise. Is there a better way to do this? It may be okay in this case as this node will only really be used for masks or it may be better to wait until we have implemented an OCIO node so this operation can be done in screen space if required.

@ThomasWilshaw
Copy link
Collaborator Author

All that is left here is to optimise the shader to run in two passes, horizontal and vertical. This would change the run time from O(n^2) to O(n)

@ThomasWilshaw
Copy link
Collaborator Author

I think this is complete now @itsmattkc

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.

None yet

1 participant