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

7
LINES

< > BotCompany Repo | #1030501 // bwii_averageBrightnessOfArea

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5827L/35K).

1  
static double bwii_averageBrightnessOfArea(BWIntegralImage img, int x1, int y1, int x2, int y2) {
2  
  ret img.getPixelAverage(x1, y1, x2, y2);
3  
}
4  
5  
static double bwii_averageBrightnessOfArea(BWIntegralImage img, Rect r) {
6  
  ret bwii_averageBrightnessOfArea(img, r.x, r.y, r.x2(), r.y2());
7  
}

Author comment

Began life as a copy of #1025228

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030501
Snippet name: bwii_averageBrightnessOfArea
Eternal ID of this version: #1030501/6
Text MD5: 543e0ce6b499784716a81a55630421d1
Transpilation MD5: d1b9540a42535a4de1b561a0e703deba
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-02 17:05:55
Source code size: 292 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 199 / 285
Version history: 5 change(s)
Referenced in: [show references]