Skip to content

Commit 1d88479

Browse files
committed
Source formatting
Signed-off-by: Henrique Vicente <henriquevicente@gmail.com>
1 parent e3a6375 commit 1d88479

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/detection/ViolaJones.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function() {
2-
/*
2+
/**
33
* ViolaJones utility.
44
* @static
55
* @constructor

src/features/Fast.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function() {
2-
/*
2+
/**
33
* FAST intends for "Features from Accelerated Segment Test". This method
44
* performs a point segment test corner detection. The segment test
55
* criterion operates by considering a circle of sixteen pixels around the
@@ -99,6 +99,14 @@
9999
return circlePixel - p > threshold;
100100
};
101101

102+
/**
103+
* Checks if the circle pixel is within the corner of the candidate pixel p
104+
* by a threshold.
105+
* @param {number} p The value of the candidate pixel p.
106+
* @param {number} circlePixel The circle pixel value.
107+
* @param {number} threshold
108+
* @return {Boolean} [description]
109+
*/
102110
tracking.Fast.isCorner = function(p, circlePixels, threshold) {
103111
if (this.isTriviallyExcluded(circlePixels, p, threshold)) {
104112
return false;

src/trackers/ColorTracker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
* @param {number} width The image width.
156156
* @return {array} Array with the eight offset values of the neighbours
157157
* surrounding a pixel.
158+
* @private
158159
*/
159160
tracking.ColorTracker.prototype.getNeighboursForWidth_ = function(width) {
160161
if (tracking.ColorTracker.neighbours_[width]) {
@@ -180,6 +181,7 @@
180181
/**
181182
* Unites groups whose bounding box intersect with each other.
182183
* @param {Array.<Object>} rects
184+
* @private
183185
*/
184186
tracking.ColorTracker.prototype.mergeRectangles_ = function(rects) {
185187
var intersects;
@@ -270,6 +272,7 @@
270272
* @param {number} width The pixels canvas width.
271273
* @param {number} height The pixels canvas height.
272274
* @param {string} color The color to be found
275+
* @private
273276
*/
274277
tracking.ColorTracker.prototype.trackColor_ = function(pixels, width, height, color) {
275278
var colorFn = tracking.ColorTracker.knownColors_[color];

0 commit comments

Comments
 (0)