(ImageProcessor ip)
| 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) |
nothing calls this directly
no test coverage detected