Commit 7ac2edeb authored by Andrey Filippov's avatar Andrey Filippov
Browse files

Corrected saving source of the photometric calibration

parent 3abbfc39
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4639,6 +4639,8 @@ public class OpticalFlow {
				quadCLT_main.setLwirOffsets(quadCLTs[ref_index].getLwirOffsets());
				quadCLT_main.setLwirScales (quadCLTs[ref_index].getLwirScales ());
				quadCLT_main.setLwirScales2(quadCLTs[ref_index].getLwirScales2());
				quadCLT_main.setPhotometricScene(quadCLTs[ref_index].getPhotometricScene());
				
				// Re-read reference and other scenes using new offsets	
				quadCLTs[ref_index].saveQuadClt(); // to re-load new set of Bayer images to the GPU (do nothing for CPU) and Geometry
				quadCLTs[ref_index] = (QuadCLT) quadCLT_main.spawnQuadCLT( // restores dsi from "DSI-MAIN"
+3 −0
Original line number Diff line number Diff line
@@ -2443,8 +2443,10 @@ public class QuadCLT extends QuadCLTCPU {
			ref_scene.setLwirOffsets (offsets_new);
			ref_scene.setLwirScales  (scales_new);
			ref_scene.setLwirScales2 (scales2_new);
			ref_scene.setPhotometricScene(); // use ref_scene name
			return true;
	}
	
	public static boolean calibratePhotometric2( // quadratic
			CLTParameters     clt_parameters,
			final QuadCLT     ref_scene, // now - may be null - for testing if scene is rotated ref
@@ -2653,6 +2655,7 @@ public class QuadCLT extends QuadCLTCPU {
			ref_scene.setLwirOffsets (offs_new);
			ref_scene.setLwirScales  (scales_new);
			ref_scene.setLwirScales2 (scales2_new);
			ref_scene.setPhotometricScene(); // use ref_scene name
			return true;
	}
	
+11 −4
Original line number Diff line number Diff line
@@ -1810,20 +1810,27 @@ public class QuadCLTCPU {
    	} else {
    		lwir_offset = Double.NaN;
    	}
    	this.photometric_scene = getImageName();
//    	this.photometric_scene = getImageName();
    }
    public String getPhotometricScene() {
    	return this.photometric_scene;
    }
    public void setPhotometricScene(String scene_name) {
    	this.photometric_scene = scene_name;
    }
    public void setPhotometricScene() {
    	setPhotometricScene(getImageName());
    }
    public void setLwirScales(double [] scales) {
    	lwir_scales = scales; // will need to update properties!
    	this.photometric_scene = getImageName();
//    	this.photometric_scene = getImageName();
    }
    public void setLwirScales2(double [] scales2) {
    	lwir_scales2 = scales2; // will need to update properties!
    	this.photometric_scene = getImageName();
//    	this.photometric_scene = getImageName();
    }
    public double [] getColdHot() { // USED in lwir