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

7
LINES

< > BotCompany Repo | #1019785 // bwIntegralImage_whiteRectWithBlackBorder

JavaX fragment (include)

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

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: 357 / 373
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019789 - bwIntegralImage_whiteRectWithBlackBorder_perPixel