Libraryless. Click here for Pure Java version (5001L/35K/125K).
1 | !7 |
2 | |
3 | static int size = 33; |
4 | |
5 | p { |
6 | repeat with ms sleep 100 { |
7 | RGBImage orig = rgbShootScreen(rectAround(mousePointer(), size, size)); |
8 | RGBImage img = new RGBImage(size, size, Color.gray); |
9 | int radius = size/2-2; |
10 | L<Pt> points = circlePoints(size/2, size/2, radius); |
11 | int n = l(points); |
12 | float[] values = new float[n]; |
13 | for i to n: |
14 | values[i] = orig.getPixel(points.get(i)).getBrightness(); |
15 | values = cyclicBlur(values); |
16 | L<Int> minima = cyclicLocalMinima(values); |
17 | for (int i : minima) |
18 | rgbMarkPoint(img, points.get(i)); |
19 | for (Pt p : points) |
20 | img.setPixel(p, orig.getPixel(p)); |
21 | alwaysOnTop(quickShowZoomedImage(img)); |
22 | } |
23 | } |
Began life as a copy of #1006782
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: | #1006786 |
Snippet name: | Perimeter |
Eternal ID of this version: | #1006786/11 |
Text MD5: | 2ad42b92dfe43c1d032ea8d50e32ccbe |
Transpilation MD5: | be001d62507ee8d7a008d10827658198 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-04 05:45:21 |
Source code size: | 696 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 525 / 838 |
Version history: | 10 change(s) |
Referenced in: | [show references] |