Loading src/main/java/com/elphel/imagej/calibration/MatchSimulatedPattern.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -6914,7 +6914,7 @@ public class MatchSimulatedPattern { return combineGridCalibration(laserPointer, // LaserPointer object or null return combineGridCalibration(laserPointer, // LaserPointer object or null pointersXY, removeOutOfGridPointers, // pointersXY, removeOutOfGridPointers, // hintGrid, // predicted grid array (or null) hintGrid, // predicted grid array (or null) hintGridTolerance, // alllowed mismatch (fraction of period) or 0 - orientation only hintGridTolerance, // allowed mismatch (fraction of period) or 0 - orientation only global_debug_level, // DEBUG_LEVEL global_debug_level, // DEBUG_LEVEL noMessageBoxes); noMessageBoxes); } } Loading Loading @@ -7301,6 +7301,10 @@ public class MatchSimulatedPattern { pointersXY[i] = new double[4]; pointersXY[i] = new double[4]; pointersXY[i][2] = Double.parseDouble((String) imp.getProperty("POINTER_U_" + i)); pointersXY[i][2] = Double.parseDouble((String) imp.getProperty("POINTER_U_" + i)); pointersXY[i][3] = Double.parseDouble((String) imp.getProperty("POINTER_V_" + i)); pointersXY[i][3] = Double.parseDouble((String) imp.getProperty("POINTER_V_" + i)); } else if ((laserPointer != null) &&(laserPointer.laserUVMap[i] != null)) { pointersXY[i] = new double[4]; pointersXY[i][2] = laserPointer.laserUVMap[i][0]; pointersXY[i][3] = laserPointer.laserUVMap[i][1]; } else { } else { pointersXY[i] = new double[2]; pointersXY[i] = new double[2]; } } Loading src/main/java/com/elphel/imagej/calibration/hardware/CamerasInterface.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -1785,6 +1785,12 @@ public class CamerasInterface{ ", X="+pontersXY[nPointer][0]+", Y="+pontersXY[nPointer][1]); ", X="+pontersXY[nPointer][0]+", Y="+pontersXY[nPointer][1]); images[sensorNum].setProperty("POINTER_X_"+nPointer, IJ.d2s(pontersXY[nPointer][0],1)); images[sensorNum].setProperty("POINTER_X_"+nPointer, IJ.d2s(pontersXY[nPointer][0],1)); images[sensorNum].setProperty("POINTER_Y_"+nPointer, IJ.d2s(pontersXY[nPointer][1],1)); images[sensorNum].setProperty("POINTER_Y_"+nPointer, IJ.d2s(pontersXY[nPointer][1],1)); if ((laserPointers.laserPointer.laserUVMap!=null) && (laserPointers.laserPointer.laserUVMap[nPointer]!=null)) { images[sensorNum].setProperty("POINTER_U_"+nPointer, IJ.d2s(laserPointers.laserPointer.laserUVMap[nPointer][0],1)); images[sensorNum].setProperty("POINTER_V_"+nPointer, IJ.d2s(laserPointers.laserPointer.laserUVMap[nPointer][1],1)); } pointersDetected++; pointersDetected++; } } Loading Loading
src/main/java/com/elphel/imagej/calibration/MatchSimulatedPattern.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -6914,7 +6914,7 @@ public class MatchSimulatedPattern { return combineGridCalibration(laserPointer, // LaserPointer object or null return combineGridCalibration(laserPointer, // LaserPointer object or null pointersXY, removeOutOfGridPointers, // pointersXY, removeOutOfGridPointers, // hintGrid, // predicted grid array (or null) hintGrid, // predicted grid array (or null) hintGridTolerance, // alllowed mismatch (fraction of period) or 0 - orientation only hintGridTolerance, // allowed mismatch (fraction of period) or 0 - orientation only global_debug_level, // DEBUG_LEVEL global_debug_level, // DEBUG_LEVEL noMessageBoxes); noMessageBoxes); } } Loading Loading @@ -7301,6 +7301,10 @@ public class MatchSimulatedPattern { pointersXY[i] = new double[4]; pointersXY[i] = new double[4]; pointersXY[i][2] = Double.parseDouble((String) imp.getProperty("POINTER_U_" + i)); pointersXY[i][2] = Double.parseDouble((String) imp.getProperty("POINTER_U_" + i)); pointersXY[i][3] = Double.parseDouble((String) imp.getProperty("POINTER_V_" + i)); pointersXY[i][3] = Double.parseDouble((String) imp.getProperty("POINTER_V_" + i)); } else if ((laserPointer != null) &&(laserPointer.laserUVMap[i] != null)) { pointersXY[i] = new double[4]; pointersXY[i][2] = laserPointer.laserUVMap[i][0]; pointersXY[i][3] = laserPointer.laserUVMap[i][1]; } else { } else { pointersXY[i] = new double[2]; pointersXY[i] = new double[2]; } } Loading
src/main/java/com/elphel/imagej/calibration/hardware/CamerasInterface.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -1785,6 +1785,12 @@ public class CamerasInterface{ ", X="+pontersXY[nPointer][0]+", Y="+pontersXY[nPointer][1]); ", X="+pontersXY[nPointer][0]+", Y="+pontersXY[nPointer][1]); images[sensorNum].setProperty("POINTER_X_"+nPointer, IJ.d2s(pontersXY[nPointer][0],1)); images[sensorNum].setProperty("POINTER_X_"+nPointer, IJ.d2s(pontersXY[nPointer][0],1)); images[sensorNum].setProperty("POINTER_Y_"+nPointer, IJ.d2s(pontersXY[nPointer][1],1)); images[sensorNum].setProperty("POINTER_Y_"+nPointer, IJ.d2s(pontersXY[nPointer][1],1)); if ((laserPointers.laserPointer.laserUVMap!=null) && (laserPointers.laserPointer.laserUVMap[nPointer]!=null)) { images[sensorNum].setProperty("POINTER_U_"+nPointer, IJ.d2s(laserPointers.laserPointer.laserUVMap[nPointer][0],1)); images[sensorNum].setProperty("POINTER_V_"+nPointer, IJ.d2s(laserPointers.laserPointer.laserUVMap[nPointer][1],1)); } pointersDetected++; pointersDetected++; } } Loading