srecord noeq G22POIPanel(G22PointOfInterest poi) is Swingable { G22Utils g22utils; G22GalleryImage img; G22DataWrangler wrangler; cachedVisualize { g22utils = g22utils(poi); img = poi.galleryImage(); new L parts; if (img == null) ret jCenteredLabel("Image not found: " + poi.imageMD5); // Original image var is1 = g22utils.stdImageSurface(img); g22markPointAnimation(is1, poi.pt); parts.add(jCenteredSection("Original image", g22utils.wrap(is1))); // Blurred & Posterized wrangler = poi.wrangler(); wrangler.stepUntilStage(wrangler.regionsStage); var is2 = g22utils.stdImageSurface(wrangler.posterizedImage); g22markPointAnimation(is2, poi.pt); parts.add(jCenteredSection("Blurred & Posterized", g22utils.wrap(is2))); // Regions IImageRegion region = poi.regionAroundPoint(wrangler); parts.add(jCenteredSection("Region around point", new G22RegionPanel(region).g22utils(g22utils) .originalImage(wrangler.inputImage)); ret hgridWithSpacing(map jMinWidth0(parts)); } }