Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: adding EDGE option to filter() for edge detection #2747
Edge detection could be interesting to create interactive experiments with the webcam. This would provide an easy way to locate stuff in the webcam feet.
This could be added to the list of options of the
I am not sure about implementation details though. I can start investigate.
Nature of issue?
Most appropriate sub-area of p5.js?
New feature details:
Some infos and implementations of edge detection
Thanks! In this case I think it is better to keep a simple implementation to stay consistent with the rest of the filters.
Here is the standard method of edge detection:
Consequently most of the process is already implemented as filters. I propose to do the following:
This way a user would have the option to use
What do you think ? Also: what are the requirements in term of performance? I fear that applying 4 filters in succession will be quite demanding cpu-wise.
I created a toy example implementing the proposed method of chaining filters. Please try it out and let me know what you think.
I could also try to use the
Also I found interesting that