svoid video_scoreRectAndState(Scorer scorer, Rect expected, S expectedState, RectAndState guessed, double tolerance) { if ((guessed == null) != (expected == null)) ret with scorer.addError(); if (expected == null) ret with scorer.addOK(); scorer.addZeroToOneError(doubleAverage( ptDistance(rectCenter(guessed.r), rectCenter(expected)), abs(guessed.r.w-expected.w), abs(guessed.r.h-expected.h))/tolerance); scorer.add(eqic(expectedState, guessed.state)); }
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: | 276 / 298 |
Version history: | 5 change(s) |
Referenced in: | [show references] |