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

18
LINES

< > BotCompany Repo | #1019788 // Test finding boxes in BWIntegralImage [dev.]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (8890L/64K).

!7

p-exp {
  BWImage bw = new(200, 100, 0f);
  bwFillWhiteRect(bw, 30, 40, 80, 35);
  final BWIntegralImage ii = new(bw);
  showImage(bw);
  int w = ii.getWidth(), h = ii.getHeight();
  for (int y = 0; y < h; y += 5) {
    for (int x = 0; x < w; x += 5)
      print_noNewLine(bwIntegralImage_whiteRectWithBlackBorder_perPixel(ii, x, y, x+30, y+30, 2, 2) + " ");
    print();
  }
  
  print(highestByFunction(ptGrid(0, 0, w, h, 5, 5), func(Pt p) {
    bwIntegralImage_whiteRectWithBlackBorder(ii, p.x, p.y, p.x+30, p.y+30, 2, 2)
  }));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1019788
Snippet name: Test finding boxes in BWIntegralImage [dev.]
Eternal ID of this version: #1019788/6
Text MD5: 0183014141ad35666901f03b0c1e9fbf
Transpilation MD5: 5ea70fabcdc728a6740d10daeada71d4
Author: stefan
Category: javax / imaging
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-26 19:44:03
Source code size: 554 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 404 / 1056
Version history: 5 change(s)
Referenced in: