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

16
LINES

< > BotCompany Repo | #1034949 // test_RegionBorder_innerPoints_v2_onePathWithOrigin (OK)

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

Libraryless. Click here for Pure Java version (11626L/67K).

1  
svoid test_RegionBorder_innerPoints_v2_onePathWithOrigin() {
2  
  BWImage img = bwImageFromString([[
3  
    ______
4  
    _xxx__
5  
    _x_x__
6  
    _xxx__
7  
    ______
8  
  ]]);
9  
  FastRegions_BWImage regions = new(img);
10  
  regions.run();
11  
  RegionBorder_innerPoints_v2 border = new(regions.getRegion(2));
12  
  OnePathWithOrigin path = border.onePathWithOrigin();
13  
  print(path);
14  
  assertEqualsVerbose(pt(1, 1), path.origin());
15  
  assertEqualsVerbose("44668822", path.pathString());
16  
}

Author comment

Began life as a copy of #1034904

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034949
Snippet name: test_RegionBorder_innerPoints_v2_onePathWithOrigin (OK)
Eternal ID of this version: #1034949/6
Text MD5: cde478c24187401204e1ebdfb43b9e2f
Transpilation MD5: bc9a1ffdfc3f775086a56366742944f0
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-17 19:41:54
Source code size: 473 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 221
Version history: 5 change(s)
Referenced in: [show references]