@Override
    public boolean load() {
        try {
            DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(inputFileName)));
            width = dis.readInt();
            height = dis.readInt();
            data = new float[height][width];

            for (int i = 0; i < height; i++) {
                for (int j = 0; j < width; j++) {
                    data[i][j] = dis.readFloat();
                }
            }
            dis.close();
        } catch (FileNotFoundException ex) {
            Logger.getLogger(RawCutter.class.getName()).log(Level.SEVERE, null, ex);
            return false;
        } catch (IOException ex) {
            Logger.getLogger(RawCutter.class.getName()).log(Level.SEVERE, null, ex);
            return false;
        }
        return true;
    }