question: the effective camera calibration , to be performed once in the program execution concode_field_sep Button snapshotButton concode_elem_sep TextField numHorCorners concode_elem_sep Button applyButton concode_elem_sep Timer timer concode_elem_sep int successes concode_elem_sep int numCornersHor concode_elem_sep boolean isCalibrated concode_elem_sep Image undistoredImage concode_elem_sep Button cameraButton concode_elem_sep List<Mat> imagePoints concode_elem_sep int numCornersVer concode_elem_sep TextField numVertCorners concode_elem_sep VideoCapture capture concode_elem_sep Mat intrinsic concode_elem_sep int boardsNumber concode_elem_sep TextField numBoards concode_elem_sep ImageView originalFrame concode_elem_sep Image CamStream concode_elem_sep List<Mat> objectPoints concode_elem_sep MatOfPoint3f obj concode_elem_sep MatOfPoint2f imageCorners concode_elem_sep ImageView calibratedFrame concode_elem_sep Mat savedImage concode_elem_sep Mat distCoeffs concode_elem_sep boolean cameraActive concode_field_sep void init concode_elem_sep Image grabFrame concode_elem_sep void findAndDrawPoints concode_elem_sep void takeSnapshot concode_elem_sep Image mat2Image concode_elem_sep void updateSettings concode_elem_sep void startCamera
target: void function ( ) { List < Mat > loc0 = new ArrayList < > ( ) ; List < Mat > loc1 = new ArrayList < > ( ) ; intrinsic . put ( 0 , 0 , 1 ) ; intrinsic . put ( 1 , 1 , 1 ) ; Calib3d . calibrateCamera ( objectPoints , imagePoints , savedImage . size ( ) , intrinsic , distCoeffs , loc0 , loc1 ) ; this . isCalibrated = true ; this . snapshotButton . setDisable ( true ) ; }