-
Notifications
You must be signed in to change notification settings - Fork 209
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
Complete Edge Detect Module #771
Complete Edge Detect Module #771
Conversation
Signed-off-by: tech4GT <varun.gupta1798@gmail.com> dist update Revert "dist update" This reverts commit 9ee2a98.
Conflicts: dist/image-sequencer-ui.min.js dist/image-sequencer.js dist/image-sequencer.min.js src/modules/PaintBucket/info.json src/modules/Rotate/info.json
Bumps [looks-same](https://github.com/gemini-testing/looks-same) from 5.0.2 to 6.0.0. - [Release notes](https://github.com/gemini-testing/looks-same/releases) - [Changelog](https://github.com/gemini-testing/looks-same/blob/master/CHANGELOG.md) - [Commits](gemini-testing/looks-same@v5.0.2...v6.0.0) Signed-off-by: dependabot[bot] <support@dependabot.com>
* default sequencer ui test * default step ui test suite * intermediate step ui test * preview ui test suite * url methods test suite * add set url params method test suite * argument call tests * test directory refactor * travis fix
* CLI refactor * es6 rollback * Travis fix * syntax fix * clustered require statements * travis debug * travis debug
* WIP * module testing harness * adjustments
* Fix choose file option * changes
* changes * changes * changes * changes * changes * changes
Ah, did you manage to add the addition so that hysteresis defaults to false, and is an option (with checkbox?) Thank you!!! |
I will add everything as soon as I get time so I was asking for all the required suggestions. |
Please try to merge this before the others. Thank you! |
Oh yea, please be sure to clear the cache. |
An updated link demo will be available here. Sorry for the inconvenience. |
Hey Harsh the UI looks different in mobile. |
Hello harshith, try clearing the cache and do not use the new UI. And css will be fixed by @aashna27 |
EDIT: image removed as it covers the whole screen |
If you want I can make the changes in css. |
Atleast not now. As I turned off my pc and won't be able to do anything. You can open a pr in my gh-pages branch if you want |
This current PR focuses on edgeDetect so css isn't much important. If you still want to improve the demo, you can. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great; I did find a small typo. Did you want to add a quick test to this using looks-like
to protect it against future bugs? I think that's a really good idea now that the project is becoming more complex. Thanks!
And noting that it passed in almost the same amount of time: this branch: Module edge-detect ran in: 2672 milliseconds |
It takes a lot less time without hysteresis. Maybe it ran faster here as there is no different gradient and there are less pixels to be preserved. I.e binary image. I'm not sure though. |
For the tests, maybe we can open an issue for creation of looks-same tests for all modules. |
Hi Harsh, i'm OK with merging this without a test, but I think in general we should be transitioning to requiring a test with every module before merging it, rather than doing it in follow-up, as a matter of policy. What do you think? |
Yes sure. Thanks. I can add tests to all the remaining modules once I am free and maybe add the new policy to the contributing file. |
Great, thank you! Really nice work here! |
Thanks a lot!!! @harshithpabbati this was just merged. Try running tge update script when you get time. Let's see if the changes are visible there. |
Sure @harshkhandeparkar I will run it now. |
Fixes #176
It Works!!
Old:

New:

Note: The default high and low threshold ratio values are not necessarily meant to be the best. They are to be found empirically for different cases.
Note: Higher high threshold takes less time to process but it's lossier (some edges are neglected).
Note: Lower low/high threshold takes very long to process and can render a browser unresponsive.
Note: Low threshold ratio can be greater than the high threshold ratio since it is multiplied to the high threshold value. i.e
low_threshold_ratio = low_threshold_value/high_threshold_value
andhigh_threshold_ratio = high_threshold_value/maximum_gradient
Note: Here value is the actual value which is compared to the gradients and ratio is a relative ratio of different values.
It is slow though
It takes very long to iterate through all the edges. This algorithm/module should be mainly used on servers. This can benefit a lot from the REST API project which is under development.
@publiclab/is-reviewers @jywarren
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
npm test
@publiclab/reviewers
and@publiclab/is-reviewers
for help, in a comment belowThanks!