public Decode(String src) {
        try {
            sp = new ShortPixmap(src);
//            System.out.println("height img orig" + sp.height);
//            System.out.println("size img orig " + sp.size);
//            System.out.println("width img orig" + sp.width);

            this.data = new short[sp.size];
            for (int i = 0; i < sp.size; i++) {
                data[i] = (short) sp.data[i];
            }
        } catch (IOException ex) {
            Logger.getLogger(Tp1TatBio.class.getName()).log(Level.SEVERE, null, "pixmax fail");
        }
        parseHeader();
        extractFlowData();
    }