Uses 14971K of libraries. Click here for Pure Java version (4569L/32K/117K).
1 | !7 |
2 | |
3 | lib 1010061 // OpenIMAJ feature extraction (1.3.5) |
4 | lib 1009074 // trove |
5 | |
6 | import org.openimaj.image.segmentation.*; |
7 | import org.openimaj.image.pixel.*; |
8 | |
9 | static float sigma = 0.5f; |
10 | |
11 | static float k = 2500f / 255f; |
12 | |
13 | static int minSize = 20; |
14 | |
15 | p { |
16 | MBFImage image = readMBF(#1003742); |
17 | time "Segment" { |
18 | FelzenszwalbHuttenlocherSegmenter segmenter = new(sigma, k, minSize); |
19 | L<ConnectedComponent> components = segmenter.segment(image); |
20 | } |
21 | print("Have " + n(components, "component")); |
22 | showMBF(SegmentationUtilities.renderSegments(image, components)); |
23 | } |
Began life as a copy of #1010060
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010062 |
Snippet name: | Test Felzenszwalb-Huttenlocher Segmenter on test screenshot part [OK] |
Eternal ID of this version: | #1010062/6 |
Text MD5: | 1eac8d5f07527c6a34dcbb6568499390 |
Transpilation MD5: | 3a3311e8689f343be6cda5fe68aaea86 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-01 20:58:45 |
Source code size: | 583 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 487 / 625 |
Version history: | 5 change(s) |
Referenced in: | [show references] |