10 private ImageProcessor ip;
12 private int precision;
18 this.precision = precision;
22 public void write(DataOutputStream out)
throws IOException {
23 PrintWriter pw =
new PrintWriter(out);
24 boolean calibrated = cal!=null && cal.
calibrated();
28 ip.setCalibrationTable(null);
29 boolean intData = !calibrated && ((ip instanceof ByteProcessor) || (ip instanceof ShortProcessor));
30 int width = ip.getWidth();
31 int height = ip.getHeight();
36 for (
int y=0; y<height; y++) {
37 for (
int x=0; x<width; x++) {
38 value = ip.getPixelValue(x,y);
42 pw.print(
IJ.
d2s(value, precision));