private void initCalibAssistant() { //ToDo var cameraParam = new CameraParam(); var plateDescFile = @""; _calibAssistant = new CalibrationAssistant(cameraParam, plateDescFile); }
public CalibrationWorker(CalibrationAssistant assistant) { _assistant = assistant; init(); }
/********************************************************************/ private void CalibrationForm_Load(object sender, System.EventArgs e) { mView = new HWndCtrl(viewPort); mView.setViewState(HWndCtrl.MODE_VIEW_NONE); mView.changeGraphicSettings(GraphicsContext.GC_DRAWMODE, comboBoxDraw.Text); mView.changeGraphicSettings(GraphicsContext.GC_LINEWIDTH, 1); mAssistant = new CalibrationAssistant(); mAssistant.NotifyCalibObserver = new CalibDelegate(UpdateCalibResults); Init(); }
/// <summary> /// Initializes all status flags and objects to set up /// this image for the calibration process /// </summary> /// <param name="img">Calibration image</param> /// <param name="assist">Reference to the Calibration Assistant</param> public CalibImage(HImage img, CalibrationAssistant assist) { string tmp; mImage = img; mAssistant = assist; mCanCalib = 1; //labeled as 'for not having been evaluated' mPlateStatus = CalibrationAssistant.PS_NOT_FOUND;// "No Plate found" yet mImage.GetImagePointer1(out tmp, out mWidth, out mHeight); mEstimatedPlateSize = 0; mErrorMessage = ""; // initialize all instances mCaltabRegion = new HRegion(); mMarkCenter = new HXLDCont(); mEstimatedWCS = new HObject(); mQualityIssuesList = new ArrayList(15); mMarkCenterRows = new HTuple(); mMarkCenterCols = new HTuple(); mEstimatedPose = new HPose (); }
private void initCalibrationAssistant() { _assistant = new CalibrationAssistant( new CalibrationPlateParam(), new CalibrationQualityIssueParam(), new CameraParam(), Settings_CalibrationPlate_DescriptionFile.Text, (double)Settings_CalibrationPlate_Thickness.Value ); _assistant.On_ImageAdded += assistant_On_ImageAdded; _assistant.On_ImageRemoved += assistant_On_ImageRemoved; _assistant.On_ImageSaved += assistant_On_ImageSaved; _assistant.On_CalibrationPlateParamChanged += assistant_On_CalibrationPlateParamChanged; _assistant.On_CalibrationImageQualityIssueParamChanged += assistant_On_CalibrationImageQualityIssueParamChanged; _assistant.On_CameraParamChanged += assistant_On_CameraParamChanged; _assistant.On_CalibrationImageQualityIssueChanged += assistant_On_CalibrationImageQualityIssueChanged; _assistant.On_CalibrationCompleted += assistant_On_CalibrationCompleted; _assistant.On_CalibratedFileSaved += assistant_On_CalibratedFileSaved; _assistant.On_Error += assistant_On_Error; }