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

3
LINES

< > BotCompany Repo | #1033953 // g22_regionFilledness - pixel count divided by bounding box size

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

Libraryless. Click here for Pure Java version (5024L/28K).

1  
static double g22_regionFilledness(IImageRegion region) {
2  
  ret doubleRatio(region.numberOfPixels(), area(region.bounds()));
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033953
Snippet name: g22_regionFilledness - pixel count divided by bounding box size
Eternal ID of this version: #1033953/1
Text MD5: 5f407f54a1a7d4baccc46a7f73133e5c
Transpilation MD5: b3dd6def642e3a9a239c9d94e14353fe
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-14 22:47:25
Source code size: 128 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 140 / 197
Referenced in: [show references]