Returns the pixel array for the specified slice, where {@literal 1<=n<=nslices}.
(int n)
| 220 | |
| 221 | /** Returns the pixel array for the specified slice, where {@literal 1<=n<=nslices}. */ |
| 222 | public Object getPixels(int n) { |
| 223 | if (n<1 || n>nSlices) |
| 224 | throw new IllegalArgumentException(outOfRange+n); |
| 225 | return stack[n-1]; |
| 226 | } |
| 227 | |
| 228 | /** Assigns a pixel array to the specified slice, where {@literal 1<=n<=nslices}. */ |
| 229 | public void setPixels(Object pixels, int n) { |
no outgoing calls
no test coverage detected