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

17
LINES

< > BotCompany Repo | #1034977 // test_RegionBorder_innerPoints_withDiagonals_thinSpike (OK)

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

Transpiled version (11802L) is out of date.

1  
set flag RegionBorder_innerPoints_debug.
2  
3  
svoid test_RegionBorder_innerPoints_withDiagonals_thinSpike() {
4  
  BWImage img = bwImageFromString([[
5  
    ______
6  
    _xxxx_
7  
    _xx___
8  
    ______
9  
  ]]);
10  
  FastRegions_BWImage regions = new(img);
11  
  regions.run();
12  
  assertEqualsVerbose(2, regions.nRegions());
13  
  RegionBorder_innerPoints_withDiagonals border = new(regions.getRegion(2));
14  
  var points = border.allPoints();
15  
  //removeLastIfSameAsFirst(points);
16  
  assertEqualsVerbose("4448782", str(border.onePath()));
17  
}

Author comment

Began life as a copy of #1034904

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034977
Snippet name: test_RegionBorder_innerPoints_withDiagonals_thinSpike (OK)
Eternal ID of this version: #1034977/4
Text MD5: d600c299f698ee31f34eaa7560f975b7
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-19 19:31:49
Source code size: 522 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 203
Version history: 3 change(s)
Referenced in: [show references]