3 import java.util.Properties;
9 public static final int GRAY8 = 0;
29 public static final int RGB = 6;
38 public static final int ARGB = 9;
41 public static final int BGR = 10;
48 public static final int RGB48 = 12;
51 public static final int UNKNOWN = 0;
52 public static final int RAW = 1;
53 public static final int TIFF = 2;
54 public static final int GIF_OR_JPG = 3;
55 public static final int FITS = 4;
56 public static final int BMP = 5;
57 public static final int DICOM = 6;
60 public int fileFormat;
65 public String fileName;
66 public String directory;
72 public int gapBetweenImages;
73 public boolean whiteIsZero;
74 public boolean intelByteOrder;
81 InputStream inputStream;
83 public double pixelWidth=1.0;
84 public double pixelHeight=1.0;
85 public double pixelDepth=1.0;
87 public int calibrationFunction;
88 public double[] coefficients;
89 public String valueUnit;
90 public double frameInterval;
91 public String description;
100 fileName =
"Untitled";
117 public String toString() {
120 +
", dir=" + directory
123 +
", height=" + height
124 +
", nImages=" + nImages
125 +
", type=" + getType()
127 +
", whiteZero=" + (whiteIsZero?
"t":
"f")
128 +
", Intel=" + (intelByteOrder?
"t":
"f")
129 +
", lutSize=" + lutSize;
132 private String getType() {
134 case GRAY8:
return "byte";
140 case COLOR8:
return "byte+lut";
141 case RGB:
return "RGB";
143 case BITMAP:
return "bitmap";
144 case ARGB:
return "ARGB";
145 case BGR:
return "BGR";