You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dd>Defined as <pre class="prod"><var>alignBias</var> * <var>alignWeight</var></pre>
1272
1274
1273
1275
* <var>alignBias</var>
1274
1276
1275
-
* If the <var>dir</var> is left or right, height of <var>intersectRect</var> / the height of the candidate
1276
-
* Else if the <var>dir</var> is up or down, width of <var>intersectRect</var> / the width of the candidate
1277
+
* If the <var>dir</var> is left or right, height of <var>intersectRect</var> / the height of <var>candidate</var>
1278
+
* Else if the <var>dir</var> is up or down, width of <var>intersectRect</var> / the width of <var>candidate</var>
1277
1279
1278
1280
* <var>alignWeight</var> is 5
1279
1281
1280
-
<dt><var>displacement</var>:
1282
+
<dt><var>displacement</var>
1281
1283
<dd>The degree of displacement in <var>dir</var> between <var>searchOrigin</var> and <var>candidate</var>
1282
-
<dd>formula = (absolute distance on the axis orthogonal to <var>dir</var> + <var>orthogonalBias</var>) * <var>orthogonalWeight</var>
1284
+
<dd>Defined as <pre class="prod">(absolute distance on the axis orthogonal to <var>dir</var> + <var>orthogonalBias</var>) * <var>orthogonalWeight</var></pre>
1283
1285
1284
-
* <var>orthogonalBias</var>:
1286
+
* <var>orthogonalBias</var>
1285
1287
* If the <var>dir</var> is left or right, height of <var>searchOrigin</var> / 2
1286
1288
* Else if the <var>dir</var> is up or down, width of <var>searchOrigin</var> / 2
1287
1289
1288
1290
* <var>orthogonalWeight</var>:
1289
1291
* If the <var>dir</var> is left or right, 30
1290
1292
* Else if the <var>dir</var> is up or down, 2
1291
1293
1292
-
<dt><var>sqrt(Overlap)</var>:
1294
+
<dt><var>sqrt(Overlap)</var>
1293
1295
<dd>The square root of the <var>intersectRect</var>(overlapped area) between the <a>boundary boxes</a> of <var>candidate</var> and <var>searchOrigin</var>
1294
-
<dd>formula = sqrt(height of <var>intersectRect</var> * width of <var>intersectRect</var>)
1296
+
<dd>Defined as <pre class="prod">sqrt(height of <var>intersectRect</var> * width of <var>intersectRect</var>)</pre>
1295
1297
</dl>
1296
1298
1297
1299
NOTE: The values of <var>alignWeight</var> and <var>orthogonalWeight</var> in the function are decided based on
0 commit comments