MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / run

Method run

ij/src/main/java/ij/plugin/filter/Benchmark.java:22–71  ·  view source on GitHub ↗
(ImageProcessor ip)

Source from the content-addressed store, hash-verified

20 }
21
22 public void run(ImageProcessor ip) {
23 Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
24 ip.setInterpolate(false);
25 for (int i=0; i <4; i++) {
26 ip.invert();
27 updateScreen(imp);
28 }
29 for (int i=0; i <4; i++) {
30 ip.flipVertical();
31 updateScreen(imp);
32 }
33 ip.flipHorizontal(); updateScreen(imp);
34 ip.flipHorizontal(); updateScreen(imp);
35 for (int i=0; i <6; i++) {
36 ip.smooth();
37 updateScreen(imp);
38 }
39 ip.reset();
40 for (int i=0; i <6; i++) {
41 ip.sharpen();
42 updateScreen(imp);
43 }
44 ip.reset();
45 ip.smooth(); updateScreen(imp);
46 ip.findEdges(); updateScreen(imp);
47 ip.invert(); updateScreen(imp);
48 ip.autoThreshold(); updateScreen(imp);
49 ip.reset();
50 ip.medianFilter(); updateScreen(imp);
51 for (int i=0; i <360; i +=15) {
52 ip.reset();
53 ip.rotate(i);
54 updateScreen(imp);
55 }
56 double scale = 1.5;
57 for (int i=0; i <8; i++) {
58 ip.reset();
59 ip.scale(scale, scale);
60 updateScreen(imp);
61 scale = scale*1.5;
62 }
63 for (int i=0; i <12; i++) {
64 ip.reset();
65 scale = scale/1.5;
66 ip.scale(scale, scale);
67 updateScreen(imp);
68 }
69 ip.reset();
70 updateScreen(imp);
71 }
72
73 void updateScreen(ImagePlus imp) {
74 if (showUpdates)

Callers

nothing calls this directly

Calls 13

updateScreenMethod · 0.95
setInterpolateMethod · 0.80
sharpenMethod · 0.80
resetMethod · 0.65
invertMethod · 0.45
flipVerticalMethod · 0.45
flipHorizontalMethod · 0.45
smoothMethod · 0.45
findEdgesMethod · 0.45
autoThresholdMethod · 0.45
medianFilterMethod · 0.45
rotateMethod · 0.45

Tested by

no test coverage detected