public void readMap(String fn) throws IOException {
		FileInputStream fin = new FileInputStream(fn);
		BufferedInputStream bin = new BufferedInputStream(fin);
		DataInputStream in = new DataInputStream(bin);
		int w = in.readInt() + 1;
		int h = in.readInt() + 1;
		in.readFloat();
		in.readFloat();
		in.readFloat();
		in.readFloat();
		_maxValue = Double.MIN_VALUE;
		_source = new double[h][w];
		for (int i = 0; i < _source.length; i++) {
			double[] row = _source[i];
			for (int j = 0; j < row.length; j++) {
				_source[i][j] = (in.readFloat());
				if (_source[i][j] > _maxValue) _maxValue = _source[i][j]; 
			}
		}
		fin.close();
		reset();
	}