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

Edge Detect Horizontal Edges Got Fixed #1696

Merged
merged 6 commits into from
Oct 17, 2020
Merged

Conversation

harshkhandeparkar
Copy link
Member

@harshkhandeparkar harshkhandeparkar commented Jul 12, 2020

Fixes #1632 (<=== Replace 0000 with the Issue Number)

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm run test-all
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!

@gitpod-io
Copy link

gitpod-io bot commented Jul 12, 2020

@harshkhandeparkar
Copy link
Member Author

Failing travis looks promising.

@harshkhandeparkar
Copy link
Member Author

One of the angle boundaries was weird. When the angle goes to pi it changes to -pi (our trigonometry is awesome). Because of the this, the second E-W boundary is angle > higher value || angle < lower value instead of lower value < angle < higher value

@harshkhandeparkar
Copy link
Member Author

It looks slightly smoother now but I'm not sure whether it has been completely rectified.

@rishabhshuklax
Copy link
Member

Screenshot from 2020-07-13 23-13-37
It looks slightly better than before, but lower right corner is still glitching

@harshkhandeparkar
Copy link
Member Author

The lower right corner has a different color, I don't it is glitching, what is really glitching are the THICK vertical edges.

@harshkhandeparkar
Copy link
Member Author

Ty for the img :)

@harshkhandeparkar
Copy link
Member Author

harshkhandeparkar commented Jul 13, 2020

Finally after almost a year!
edge-detect

@harshkhandeparkar
Copy link
Member Author

@jywarren @blurry-x-face @publiclab/is-reviewers !

Copy link
Member

@rishabhshuklax rishabhshuklax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow this looks so much better now!! 🎉
Screenshot from 2020-07-14 22-51-06

Screenshot from 2020-07-14 22-51-23

@harshkhandeparkar harshkhandeparkar changed the title Fingers Crossed: Edge Detect Horizontal Edges Got Fixed Edge Detect Horizontal Edges Got Fixed Jul 23, 2020
@jywarren
Copy link
Member

jywarren commented Aug 5, 2020

Great work @harshkhandeparkar !!! 🎉 and great persistence!

I'm going to try it in GitPod!!

@jywarren
Copy link
Member

jywarren commented Aug 5, 2020

Hmm, what's going on with the test, @harshkhandeparkar ?

Is this the right output? It seems to work!

Screen Shot 2020-08-05 at 4 44 32 PM

download (10)

Here's the QR code:

image

@jywarren
Copy link
Member

jywarren commented Aug 5, 2020

@harshkhandeparkar can you take a look at the tests to see what's going wrong?

image

@jywarren
Copy link
Member

jywarren commented Aug 5, 2020

Looks like, could it be due to syntax errors, or some ES6 issue? In module.js:

  lineNumber: 67,
  description: 'Unexpected token =>',
  index: 2050 }

@jywarren
Copy link
Member

jywarren commented Aug 5, 2020

Perhaps it just needs to be rebased?

@harshkhandeparkar
Copy link
Member Author

The test hasn't been updated to work with the new changes.

@jywarren
Copy link
Member

jywarren commented Aug 6, 2020

Ah ok! No rush then. Thanks, @harshkhandeparkar !!!

@harshkhandeparkar
Copy link
Member Author

@jywarren Finally pushed the new test.

@gitpod-io
Copy link

gitpod-io bot commented Oct 16, 2020

@harshkhandeparkar harshkhandeparkar requested review from rishabhshuklax and removed request for a team and rishabhshuklax October 16, 2020 08:07
@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #1696 into main will increase coverage by 10.31%.
The diff coverage is 64.31%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #1696       +/-   ##
===========================================
+ Coverage   55.11%   65.43%   +10.31%     
===========================================
  Files         117      133       +16     
  Lines        2344     2743      +399     
  Branches      360      439       +79     
===========================================
+ Hits         1292     1795      +503     
+ Misses       1052      948      -104     
Impacted Files Coverage Δ
examples/lib/scopeQuery.js 18.51% <ø> (ø)
src/Modules.js 100.00% <ø> (ø)
src/modules/WebglDistort/Module.js 2.29% <0.00%> (ø)
src/ui/SetInputStep.js 12.90% <0.00%> (-1.39%) ⬇️
src/modules/ColorHalftone/Module.js 3.63% <3.63%> (ø)
examples/lib/defaultHtmlStepUi.js 11.35% <4.08%> (-0.85%) ⬇️
examples/lib/intermediateHtmlStepUi.js 11.11% <5.55%> (+0.94%) ⬆️
examples/lib/insertPreview.js 13.15% <20.00%> (-0.36%) ⬇️
src/util/getImageDimensions.js 20.00% <20.00%> (ø)
src/util/isGif.js 20.00% <20.00%> (ø)
... and 102 more

@harshkhandeparkar
Copy link
Member Author

@publiclab/is-module-maintainers Tests Passing! 🎉

Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hooray!

@harshkhandeparkar
Copy link
Member Author

I think this should be merged now, for v3.6.0

@jywarren jywarren merged commit e1c8a5f into main Oct 17, 2020
@jywarren
Copy link
Member

Congrats!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edge Detect Possibly Glitching on Horizontal Edges
3 participants