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

5
LINES

< > BotCompany Repo | #1019789 // bwIntegralImage_whiteRectWithBlackBorder_perPixel

JavaX fragment (include)

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

Author comment

Began life as a copy of #1019785

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: #1019789
Snippet name: bwIntegralImage_whiteRectWithBlackBorder_perPixel
Eternal ID of this version: #1019789/1
Text MD5: 1e8302f5597ee6b7d2ce41802ed3ffcd
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:22:15
Source code size: 351 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 210 / 248
Referenced in: [show references]