Transpiled version (68532L) is out of date.
1 | concept G22PointOfInterest > ConceptWithChangeListeners { |
2 | S imageMD5; |
3 | Pt pt; |
4 | BlurAndPosterizeSettings bnpSettings; |
5 | //Set labels; |
6 | S source; |
7 | S labelsText; |
8 | |
9 | toString { |
10 | ret commaCombine("Point of interest " + id, labelsText); |
11 | } |
12 | |
13 | G22Utils g22utils() { |
14 | ret main g22utils(this); |
15 | } |
16 | |
17 | BufferedImage image() { |
18 | var img = galleryImage(); |
19 | ret img?.image(); |
20 | } |
21 | |
22 | G22GalleryImage galleryImage() { |
23 | ret g22utils().galleryImageForMD5(imageMD5); |
24 | } |
25 | |
26 | bool sameImage(G22PointOfInterest otherPOI) { |
27 | ret otherPOI != null && eq(imageMD5, otherPOI.imageMD5); |
28 | } |
29 | |
30 | G22DataWrangler wrangler() { |
31 | ret wranglerStealingFrom(null, null); |
32 | } |
33 | |
34 | G22DataWrangler wranglerStealingFrom(G22PointOfInterest otherPOI, G22DataWrangler otherWrangler) { |
35 | if (otherWrangler != null && !sameImage(otherPOI)) |
36 | otherWrangler = null; |
37 | |
38 | new G22DataWrangler wrangler; |
39 | wrangler.inputImage(otherWrangler != null ? otherWrangler.inputImage : image()); |
40 | wrangler.stealingFrom(otherWrangler); |
41 | wrangler.timings(g22utils().functionTimings()); |
42 | wrangler.importSettings(bnpSettings); |
43 | ret wrangler; |
44 | } |
45 | |
46 | IImageRegion regionAroundPoint(G22DataWrangler wrangler default wrangler()) { |
47 | var rm = wrangler.regionMaker(); |
48 | ret rm.getRegion(rm.regionAt(pt)); |
49 | } |
50 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035957 |
Snippet name: | G22PointOfInterest - interesting point in an image |
Eternal ID of this version: | #1035957/22 |
Text MD5: | 015b4618a8304c4ff29aea645662d03a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-21 05:56:50 |
Source code size: | 1362 bytes / 50 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 151 / 251 |
Version history: | 21 change(s) |
Referenced in: | [show references] |