Uses 18844K of libraries. Click here for Pure Java version (5627L/41K/143K).
!7 lib 1010061 // OpenIMAJ feature extraction (1.3.5) lib 1009074 // trove import org.openimaj.image.segmentation.*; import org.openimaj.image.pixel.*; static float sigma = 0.5f; static float k = 2500f / 255f; static int minSize = 20; static float scale = 0.25f; // scale image static int repetitions = 1; // Test HotSpot p-subst { hideConsole(); sleep(500); time "Make MBFImage" { MBFImage image = readMBF(scaleImage(shootScreen2(), scale)); } showConsole(); for (int i = 0; i < repetitions; i++) { time "Segment" { FelzenszwalbHuttenlocherSegmenter segmenter = new(sigma, k, minSize ); L<ConnectedComponent> components = segmenter.segment(image); } if (i == 0) { S n = n(components, "component"); print("Have " + n); setFrameTitle(n, centerFrame(showMBFZoomed(SegmentationUtilities.renderSegments(image, components), 2))); //printStruct(map(f getClassName, components); //Set<Pixel> pixels = first(components).getPixels(); print(join(", ", map(func(ConnectedComponent c) { className(c.getPixels()) + "/" + l(c.getPixels()) }, components))); //print(getClassName(pixels) + ", " + l(pixels)); } } }
Began life as a copy of #1010062
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010064 |
Snippet name: | Test Felzenszwalb-Huttenlocher Segmenter on live screenshot [OK] |
Eternal ID of this version: | #1010064/16 |
Text MD5: | 1d837e521d3f80a501d0236ec9aa0c42 |
Transpilation MD5: | 3784919e7338a3751d982aa2e557cd3f |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-02 14:20:41 |
Source code size: | 1238 bytes / 39 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 552 / 1390 |
Version history: | 15 change(s) |
Referenced in: | [show references] |