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

9
LINES

< > BotCompany Repo | #1024659 // parameterizedSegmenterFromAGIBlue

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

Libraryless. Click here for Pure Java version (7724L/50K).

1  
static ParameterizedSegmenter parameterizedSegmenterFromAGIBlue(S name) {
2  
  new ParameterizedSegmenter segmenter;
3  
  LPairS values = agiBlue_lookupMultipleKeys(agiBlue_imageSegmentationSlice(), name, nonTransientNonStaticFieldNames(segmenter));
4  
  if (empty(values)) null; // Page not found
5  
  for (S key, value : unpair values) {
6  
    set(segmenter, key, safeUnstructureAllowingCertainClasses_plusUtils(value, "Rect", "DoubleRange"));
7  
  }
8  
  ret segmenter;
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024659
Snippet name: parameterizedSegmenterFromAGIBlue
Eternal ID of this version: #1024659/6
Text MD5: 7bbf7313837c57f4adbea8ce99e1f64d
Transpilation MD5: 343883e68abf40f5b8a268fc5787d27b
Author: stefan
Category: javax / image analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-22 23:11:37
Source code size: 462 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 294 / 403
Version history: 5 change(s)
Referenced in: [show references]