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

21
LINES

< > BotCompany Repo | #1033944 // test_RegionBorder_innerPoints

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

Transpiled version (9771L) is out of date.

svoid test_RegionBorder_innerPoints() {
  //set flag RegionBorder_innerPoints_debug.
  //set flag FastRegions_debug.
  BWImage img = bwImageFromString([[
    ______
    ______
    __xx__
    __xx__
    ______
    ______
  ]]);
  FastRegions_BWImage regions = new(img);
  regions.run();
  for (int i = 1; i <= regions.nRegions(); i++)
    print("Region " + i + ": " + map ptWithSlashes(regions.regionPixels(i)));
  /*for (int i = 1; i <= regions.nRegions(); i++)
    print("Region " + i + ": " + map ptWithSlashes(regionBorder_innerPoints(regions, i)));*/
  
  for (int i = 1; i <= regions.nRegions(); i++)
    new RegionBorder_innerPoints(regions, i).runAndPrint();
}

Author comment

Began life as a copy of #1033943

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033944
Snippet name: test_RegionBorder_innerPoints
Eternal ID of this version: #1033944/3
Text MD5: 74b881025f104688aaa9fa83d381ad49
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-21 20:46:07
Source code size: 687 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 135 / 195
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1034099 - test_RegionBorder_innerPoints_thinSpike (OK)