Skip to content

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)

Run the filter in two passes, one horizontal and one vertical to go
from O(N^2) performance 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.

1 participant