Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

contour.js not correct #135

Open
gcmartijn opened this issue Jun 12, 2015 · 1 comment
Open

contour.js not correct #135

gcmartijn opened this issue Jun 12, 2015 · 1 comment

Comments

@gcmartijn
Copy link

I get a incorrect outline that is 1px to wide at the right side.

The image i'm testing is this:
http://i.imgur.com/gIXu6GS.png

The image contour must be 140px not 141px

Using this:
http://jsfiddle.net/5v5hmo62/11/

@Breslov
Copy link

Breslov commented Feb 26, 2018

I too encounter contour.js algorithm inaccuracies.

The values of algorithm's x and y arguments could reach a negative value (of exactly -1), or exceed canvas' width or height (by exactly 1).

Allowed x value-range: [0, Width - 1]
Allowed y value-range: [0, Height - 1]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants