1 | lib 1010061 // OpenIMAJ feature extraction (1.3.5) |
2 | lib 1009074 // trove |
3 | |
4 | import org.openimaj.image.segmentation.*; |
5 | import org.openimaj.image.pixel.*; |
6 | |
7 | static float fhSegment_sigma = 0.5f; |
8 | static float fhSegment_k = 2500f / 255f; |
9 | static int fhSegment_minSize = 20; |
10 | |
11 | static L<ConnectedComponent> fhSegment(BufferedImage image) {
|
12 | ret fhSegment(readMBF(image)); |
13 | } |
14 | |
15 | static L<ConnectedComponent> fhSegment(MBFImage image) {
|
16 | ret new FelzenszwalbHuttenlocherSegmenter(fhSegment_sigma, fhSegment_k, fhSegment_minSize) |
17 | .segment(image); |
18 | } |
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: | #1010144 |
| Snippet name: | fhSegment - run Felzenszwalb-Huttenlocher Segmenter |
| Eternal ID of this version: | #1010144/3 |
| Text MD5: | d660ddbc3683795f91280805146217e1 |
| Author: | stefan |
| Category: | javax / ocr |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-05 16:18:13 |
| Source code size: | 552 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 785 / 836 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |