Libraryless. Click here for Pure Java version (11775L/68K).
1 | svoid test_RegionBorder_innerPoints_v2_thinSpike() { |
2 | BWImage img = bwImageFromString([[ |
3 | ______ |
4 | _xxxx_ |
5 | _xx___ |
6 | ______ |
7 | ]]); |
8 | FastRegions_BWImage regions = new(img); |
9 | regions.run(); |
10 | assertEqualsVerbose(2, regions.nRegions()); |
11 | RegionBorder_innerPoints_v2 border = new(regions.getRegion(2)); |
12 | var points = border.allPoints(); |
13 | //removeLastIfSameAsFirst(points); |
14 | assertEqualsVerbose(litpts(1, 1, 2, 1, 3, 1, 4, 1, 3, 1, 2, 1, 2, 2, 1, 2), points); |
15 | assertEqualsVerbose("44488682", str(border.onePath())); |
16 | } |
Began life as a copy of #1034099
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034904 |
Snippet name: | test_RegionBorder_innerPoints_v2_thinSpike (OK) |
Eternal ID of this version: | #1034904/3 |
Text MD5: | badae16292e0736f7bd1449666bd4b73 |
Transpilation MD5: | 6b647d6f99169681719e2f676ad1b518 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-14 17:15:29 |
Source code size: | 545 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 159 / 213 |
Version history: | 2 change(s) |
Referenced in: | [show references] |