public ReconstructionView(java.awt.Frame parent, Study study, boolean isSagattal) {
        super(parent, true);
        initComponents();
        
        this.study = study;
        
        List<Image> images = study.getImages();
        
        BufferedImage baseImg = images.get(0).getImageData();
        if(isSagattal)
            data = new int[images.size()][baseImg.getWidth()][baseImg.getHeight()];
        else
            data = new int[baseImg.getWidth()][images.size()][baseImg.getHeight()];
        
        for(int i=0; i<images.size(); i++) {
            BufferedImage d = images.get(i).getImageData();
            
            if(isSagattal) {
                for(int x=0; x<d.getWidth(); x++)
                    for(int y=0; y<d.getHeight(); y++)
                        data[i][x][y] = d.getRGB(x, y);
            }
            else {
                for(int x=0; x<d.getWidth(); x++)
                    for(int y=0; y<d.getHeight(); y++)
                        data[x][images.size()-i-1][y] = d.getRGB(x, y);
            }
        }
        
        updateUI();
    }