Libraryless. Click here for Pure Java version (10540L/61K).
svoid test_g22_regionFilledness() { BWImage img = bwImageFromString([[ ___xx_ ___x__ __x__x __xx_x ______ _xx___ ]]); FastRegions_BWImage regions = new(img); regions.run(); printStruct(regions.regionsBySize); for (i : regions.regionsRoughlyByDecreasingSize()) printVars(+i, pixels := regions.regionSize(i), filledness := g22_regionFilledness(regions.get(i)), color := regions.get(i).color()); }
Began life as a copy of #1033951
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033955 |
Snippet name: | test_g22_regionFilledness |
Eternal ID of this version: | #1033955/2 |
Text MD5: | 9b82299e483abb62b2fec5b00fa33c83 |
Transpilation MD5: | 5b29cc5c29d493d40948f54e90d0a60b |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-14 23:04:10 |
Source code size: | 469 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 150 / 201 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |