Updates this stack so its attributes, such as min, max, calibration table and color model, are the same as 'ip'.
(ImageProcessor ip)
| 210 | /** Updates this stack so its attributes, such as min, max, |
| 211 | calibration table and color model, are the same as 'ip'. */ |
| 212 | public void update(ImageProcessor ip) { |
| 213 | if (ip!=null) { |
| 214 | min = ip.getMin(); |
| 215 | max = ip.getMax(); |
| 216 | cTable = ip.getCalibrationTable(); |
| 217 | cm = ip.getColorModel(); |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | /** Returns the pixel array for the specified slice, where {@literal 1<=n<=nslices}. */ |
| 222 | public Object getPixels(int n) { |
no test coverage detected