Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1006610 // testIconFinder

JavaX fragment (include)

// finder: RGBImage -> L<Rect>
static void testIconFinder(O finder, RGBImage inputImage1, RGBImage inputImage2, Pt positionInImage1, Pt positionInImage2) {
  L<Rect> l1 = (L) callF(finder, inputImage1);
  L<Rect> l2 = (L) callF(finder, inputImage2);
  assertTrue(containsPoint(l1, positionInImage1) && !containsPoint(l2, positionInImage2));
  assertTrue(containsPoint(l2, positionInImage2) && !containsPoint(l2, positionInImage1));
  print("ok");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006610
Snippet name: testIconFinder
Eternal ID of this version: #1006610/1
Text MD5: 72761b1bde26778b0766062b0499b4c1
Author: stefan
Category: javax / ocr / meta
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-20 20:45:35
Source code size: 455 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 498 / 500
Referenced in: [show references]