Loading src/main/java/com/elphel/imagej/correction/Eyesis_Correction.java +40 −0 Original line number Diff line number Diff line Loading @@ -708,6 +708,8 @@ private Panel panel1, addButton("LWIR_TEST", panelClt_GPU, color_conf_process); addButton("LWIR_ACQUIRE", panelClt_GPU, color_conf_process); addButton("IMU main", panelClt_GPU, color_conf_process); addButton("IMU aux", panelClt_GPU, color_conf_process_aux); plugInFrame.add(panelClt_GPU); } Loading Loading @@ -4955,6 +4957,12 @@ private Panel panel1, QuadCLT dbg_QUAD_CLT_AUX = QUAD_CLT_AUX; return; /* ======================================================================== */ } else if (label.equals("IMU main")) { editIMU(false); /* ======================================================================== */ } else if (label.equals("IMU aux")) { editIMU(true); /* ======================================================================== */ } else if (label.equals("LIST extrinsics")) { DEBUG_LEVEL=MASTER_DEBUG_LEVEL; Loading Loading @@ -5145,6 +5153,38 @@ private Panel panel1, } } /* ======================================================================== */ public boolean editIMU(boolean aux) { if (aux) { if (QUAD_CLT_AUX == null){ if (EYESIS_CORRECTIONS_AUX == null) { EYESIS_CORRECTIONS_AUX = new EyesisCorrections(SYNC_COMMAND.stopRequested,CORRECTION_PARAMETERS.getAux()); } QUAD_CLT_AUX = new QuadCLT ( QuadCLT.PREFIX_AUX, PROPERTIES, EYESIS_CORRECTIONS_AUX, CORRECTION_PARAMETERS.getAux()); if (DEBUG_LEVEL > 0){ System.out.println("Created new QuadCLT instance, will need to read CLT kernels for aux camera"); } } return QUAD_CLT_AUX.editExtrinsicCorr(); } else { if (QUAD_CLT == null){ QUAD_CLT = new QuadCLT ( QuadCLT.PREFIX, PROPERTIES, EYESIS_CORRECTIONS, CORRECTION_PARAMETERS); if (DEBUG_LEVEL > 0){ System.out.println("Created new QuadCLT instance, will need to read CLT kernels"); } } return QUAD_CLT.editExtrinsicCorr(); } } public boolean mainToAux(boolean use_img) { if (QUAD_CLT == null){ Loading src/main/java/com/elphel/imagej/tileprocessor/Corr2dLMA.java +6 −0 Original line number Diff line number Diff line Loading @@ -1519,6 +1519,12 @@ public class Corr2dLMA { return stats; } public double [] getStats(int num_good_tiles){ double [] stats = {total_weight/num_good_tiles, 1.0*total_tiles/num_good_tiles, last_rms[0]}; return stats; } // public void getDdNd(double [][] ddnd){ // this.all_pars should be current if (ddnd != null) { Loading Loading
src/main/java/com/elphel/imagej/correction/Eyesis_Correction.java +40 −0 Original line number Diff line number Diff line Loading @@ -708,6 +708,8 @@ private Panel panel1, addButton("LWIR_TEST", panelClt_GPU, color_conf_process); addButton("LWIR_ACQUIRE", panelClt_GPU, color_conf_process); addButton("IMU main", panelClt_GPU, color_conf_process); addButton("IMU aux", panelClt_GPU, color_conf_process_aux); plugInFrame.add(panelClt_GPU); } Loading Loading @@ -4955,6 +4957,12 @@ private Panel panel1, QuadCLT dbg_QUAD_CLT_AUX = QUAD_CLT_AUX; return; /* ======================================================================== */ } else if (label.equals("IMU main")) { editIMU(false); /* ======================================================================== */ } else if (label.equals("IMU aux")) { editIMU(true); /* ======================================================================== */ } else if (label.equals("LIST extrinsics")) { DEBUG_LEVEL=MASTER_DEBUG_LEVEL; Loading Loading @@ -5145,6 +5153,38 @@ private Panel panel1, } } /* ======================================================================== */ public boolean editIMU(boolean aux) { if (aux) { if (QUAD_CLT_AUX == null){ if (EYESIS_CORRECTIONS_AUX == null) { EYESIS_CORRECTIONS_AUX = new EyesisCorrections(SYNC_COMMAND.stopRequested,CORRECTION_PARAMETERS.getAux()); } QUAD_CLT_AUX = new QuadCLT ( QuadCLT.PREFIX_AUX, PROPERTIES, EYESIS_CORRECTIONS_AUX, CORRECTION_PARAMETERS.getAux()); if (DEBUG_LEVEL > 0){ System.out.println("Created new QuadCLT instance, will need to read CLT kernels for aux camera"); } } return QUAD_CLT_AUX.editExtrinsicCorr(); } else { if (QUAD_CLT == null){ QUAD_CLT = new QuadCLT ( QuadCLT.PREFIX, PROPERTIES, EYESIS_CORRECTIONS, CORRECTION_PARAMETERS); if (DEBUG_LEVEL > 0){ System.out.println("Created new QuadCLT instance, will need to read CLT kernels"); } } return QUAD_CLT.editExtrinsicCorr(); } } public boolean mainToAux(boolean use_img) { if (QUAD_CLT == null){ Loading
src/main/java/com/elphel/imagej/tileprocessor/Corr2dLMA.java +6 −0 Original line number Diff line number Diff line Loading @@ -1519,6 +1519,12 @@ public class Corr2dLMA { return stats; } public double [] getStats(int num_good_tiles){ double [] stats = {total_weight/num_good_tiles, 1.0*total_tiles/num_good_tiles, last_rms[0]}; return stats; } // public void getDdNd(double [][] ddnd){ // this.all_pars should be current if (ddnd != null) { Loading