Libraryless. Click here for Pure Java version (11626L/67K).
svoid test_RegionBorder_innerPoints_v2_onePathWithOrigin() { BWImage img = bwImageFromString([[ ______ _xxx__ _x_x__ _xxx__ ______ ]]); FastRegions_BWImage regions = new(img); regions.run(); RegionBorder_innerPoints_v2 border = new(regions.getRegion(2)); OnePathWithOrigin path = border.onePathWithOrigin(); print(path); assertEqualsVerbose(pt(1, 1), path.origin()); assertEqualsVerbose("44668822", path.pathString()); }
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: | 357 / 470 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |