We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Offending lines-
Canny calls _traverseEdge.
Canny.prototype._traverseEdge = function(current, imgData, threshold, traversed) { ... var neighbors = getEdgeNeighbors(current, imgData, threshold, traversed); ... };
Which called getEdgeNeighbors in the helpers.
exports.getEdgeNeighbors = function(i, imgData, threshold, includedEdges) { var neighbors = [], pixel = new Pixel(i, imgData.width, imgData.height); for(var j = 0; j < pixel.neighbors.length; j++) if(imgData.data[pixel.neighbors[j]] >= threshold && (includedEdges === undefined || includedEdges.indexOf(pixel.neighbors[j]) === -1)) neighbors.push(pixel.neighbors[j]); return neighbors; };
Which constructs a new pixel with the pixel index, and the x/y coords. This is defined in cabbage.min.js (which is minified! why??)
And blows up on e.shift
e.shift
function b(a,b,e){var f=this;this.x=a,this.y=b,this.neighbors={},e&&d.forEach(function(a){f[a]=e.shift()}),
b is the Pixel constructor. a is the pixel index, b is the x coord, and e is the y coord.
b
a
e
Foreach item in d ('r', 'g', 'b', 'a') it calls e.shift- which is a number and does not have a shift method.
d
Could you tell me where the source to this stuff is? Minified code makes it difficult to debug :)
The text was updated successfully, but these errors were encountered:
(e instanceof Array) && d.forEach(function(a) { f[a] = e.shift() });
Sorry, something went wrong.
No branches or pull requests
Offending lines-
Canny calls _traverseEdge.
Which called getEdgeNeighbors in the helpers.
Which constructs a new pixel with the pixel index, and the x/y coords. This is defined in cabbage.min.js (which is minified! why??)
And blows up on
e.shift
b
is the Pixel constructor.a
is the pixel index,b
is the x coord, ande
is the y coord.Foreach item in
d
('r', 'g', 'b', 'a') it calls e.shift- which is a number and does not have a shift method.Could you tell me where the source to this stuff is? Minified code makes it difficult to debug :)
The text was updated successfully, but these errors were encountered: