1 | svoid video_scoreRectAndState(Scorer scorer, Rect expected, S expectedState, RectAndState guessed, double tolerance) { |
2 | if ((guessed == null) != (expected == null)) ret with scorer.addError(); |
3 | if (expected == null) ret with scorer.addOK(); |
4 | scorer.addZeroToOneError(doubleAverage( |
5 | ptDistance(rectCenter(guessed.r), rectCenter(expected)), |
6 | abs(guessed.r.w-expected.w), |
7 | abs(guessed.r.h-expected.h))/tolerance); |
8 | scorer.add(eqic(expectedState, guessed.state)); |
9 | } |
Began life as a copy of #1019530
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019558 |
Snippet name: | video_scoreRectAndState |
Eternal ID of this version: | #1019558/6 |
Text MD5: | 350adba2233a3ed232e6a0d6240de651 |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-12 00:46:36 |
Source code size: | 483 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 277 / 300 |
Version history: | 5 change(s) |
Referenced in: | [show references] |