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

7
LINES

< > BotCompany Repo | #1019785 // bwIntegralImage_whiteRectWithBlackBorder

JavaX fragment (include)

1  
// x1/y1/x2/y2 are dimensions of the inner (empty) part of the rectangle
2  
// w/h = line width/height
3  
static int bwIntegralImage_whiteRectWithBlackBorder(BWIntegralImage img, int x1, int y1, int x2, int y2, int w, int h) {
4  
  ret
5  
    bwIntegralImage_sumRect(img, x1, y1, x2, y2)*2
6  
    -bwIntegralImage_sumRect(img, x1-w, y1-h, x2+w, y2+h);
7  
}

Author comment

Began life as a copy of #1019784

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: #1019785
Snippet name: bwIntegralImage_whiteRectWithBlackBorder
Eternal ID of this version: #1019785/3
Text MD5: 23c53c73560e3bdbb606dd3261a43def
Author: stefan
Category: javax / image analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-26 19:19:59
Source code size: 344 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 358 / 374
Version history: 2 change(s)
Referenced in: [show references]