(ImagePlus imp)
| 5768 | } |
| 5769 | |
| 5770 | void getPosition(ImagePlus imp) { |
| 5771 | Variable channel = getFirstVariable(); |
| 5772 | Variable slice = getNextVariable(); |
| 5773 | Variable frame = getLastVariable(); |
| 5774 | int c = imp.getChannel(); |
| 5775 | int z = imp.getSlice(); |
| 5776 | int t = imp.getFrame(); |
| 5777 | if (c*z*t>imp.getStackSize()) |
| 5778 | {c=1; z=imp.getCurrentSlice(); t=1;} |
| 5779 | channel.setValue(c); |
| 5780 | slice.setValue(z); |
| 5781 | frame.setValue(t); |
| 5782 | } |
| 5783 | |
| 5784 | void setPosition(ImagePlus img) { |
| 5785 | int channel = (int)getFirstArg(); |
no test coverage detected