Skip to content

Commit

Permalink
v.0.9.5, fix a typo in connectedcomponents
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos M committed Aug 19, 2016
1 parent 1e7ae97 commit 760e529
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build/filter.bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/filter.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* FILTER.js
* @version: 0.9.5
* @built on 2016-08-18 00:57:47
* @built on 2016-08-19 21:27:37
* @dependencies: Classy.js, Asynchronous.js
*
* JavaScript Image Processing Library
Expand All @@ -27,7 +27,7 @@ else if ( !(name in root) ) /* Browser/WebWorker/.. */
*
* FILTER.js
* @version: 0.9.5
* @built on 2016-08-18 00:57:47
* @built on 2016-08-19 21:27:37
* @dependencies: Classy.js, Asynchronous.js
*
* JavaScript Image Processing Library
Expand Down
2 changes: 1 addition & 1 deletion build/filter.core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/filter.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3006,7 +3006,7 @@ FILTER.Create({
mode = self.mode||MODE.COLOR, invert = self.invert, color = self.color,
tolerance = min(0.999, max(0.0, self.tolerance||0.0)),
connectivity = 8 === self.connectivity ? 8 : 4,
K8_CONNECTIVITY = 8 === connectivity, d0 = K8_CONNECTIVITY ? -1 : 0, k0 = d0<<2,
K8_CONNECTIVITY = 8 === connectivity, d0 = K8_CONNECTIVITY ? -1 : 0, k0 = 4*d0,
mylab, c, r, d, row, labels, labelimg,
SIMILAR = null, memo = null, SIMILAR_TO = null, background_label = null,
need_match = null != color, highest, tag//, box
Expand Down Expand Up @@ -3045,7 +3045,7 @@ FILTER.Create({
labelimg[0] = need_match && !SIMILAR_TO(color, im, 0, tolerance, memo) ? background_label : new_label(0, 0, labels);

// label the first row.
for(c=1,i=4; c<w; c++,i+4)
for(c=1,i=4; c<w; c++,i+=4)
labelimg[c] = need_match && !SIMILAR_TO(color, im, i, tolerance, memo) ? background_label : (SIMILAR(im, i, i-4, tolerance, memo) ? copy_label(labelimg[c-1], c, 0, labels) : new_label(c, 0, labels));

// label subsequent rows.
Expand Down
2 changes: 1 addition & 1 deletion build/filter.plugins.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/plugins/ConnectedComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ FILTER.Create({
mode = self.mode||MODE.COLOR, invert = self.invert, color = self.color,
tolerance = min(0.999, max(0.0, self.tolerance||0.0)),
connectivity = 8 === self.connectivity ? 8 : 4,
K8_CONNECTIVITY = 8 === connectivity, d0 = K8_CONNECTIVITY ? -1 : 0, k0 = d0<<2,
K8_CONNECTIVITY = 8 === connectivity, d0 = K8_CONNECTIVITY ? -1 : 0, k0 = 4*d0,
mylab, c, r, d, row, labels, labelimg,
SIMILAR = null, memo = null, SIMILAR_TO = null, background_label = null,
need_match = null != color, highest, tag//, box
Expand Down Expand Up @@ -212,7 +212,7 @@ FILTER.Create({
labelimg[0] = need_match && !SIMILAR_TO(color, im, 0, tolerance, memo) ? background_label : new_label(0, 0, labels);

// label the first row.
for(c=1,i=4; c<w; c++,i+4)
for(c=1,i=4; c<w; c++,i+=4)
labelimg[c] = need_match && !SIMILAR_TO(color, im, i, tolerance, memo) ? background_label : (SIMILAR(im, i, i-4, tolerance, memo) ? copy_label(labelimg[c-1], c, 0, labels) : new_label(c, 0, labels));

// label subsequent rows.
Expand Down

0 comments on commit 760e529

Please sign in to comment.