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

15
LINES

< > BotCompany Repo | #1033951 // test_regionsRoughlyByDecreasingSize

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

Libraryless. Click here for Pure Java version (10292L/60K).

1  
svoid test_regionsRoughlyByDecreasingSize() {
2  
  BWImage img = bwImageFromString([[
3  
    ___xxx
4  
    ______
5  
    __xx_x
6  
    __xx_x
7  
    ______
8  
    _xx___
9  
  ]]);
10  
  FastRegions_BWImage regions = new(img);
11  
  regions.run();
12  
  printStruct(regions.regionsBySize);
13  
  for (i : regions.regionsRoughlyByDecreasingSize())
14  
    print(i + " - " + regions.regionSize(i));
15  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033951
Snippet name: test_regionsRoughlyByDecreasingSize
Eternal ID of this version: #1033951/1
Text MD5: d148a145bffadad54ea9e6382cbe1965
Transpilation MD5: 6035383b74a6e1f4d163c8be646cb60a
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 22:20:11
Source code size: 367 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 193
Referenced in: [show references]