How to rectify images
The overall flow is as follows.
This is the process of loading an image from Ladybug, calibrating it, and expressing it in the imagebox.
The calibration information is in scc.
Can you tell me how to correct the image distortion?
byte[] img = ((CameraFrame)ci.frameList[index]).getImage();
Calibration.CameraCalibration cc = (Calibration.CameraCalibration)ci.sensorClibration;
Calibration.SubCameraCalibration scc = cc.subCameraCalibrationList[i];
// HOw to calibrate images
CvInvoke.cvGetSubRect(im.Ptr, im2.Ptr, new Rectangle(new System.Drawing.Point(0, 0), new Size(341, 1024)));
CvInvoke.cvGetSubRect(im.Ptr, im3.Ptr, new Rectangle(new System.Drawing.Point(341, 0), new Size(341, 1024)));
CvInvoke.cvGetSubRect(im.Ptr, im4.Ptr, new Rectangle(new System.Drawing.Point(682, 0), new Size(341, 1024)));
this.imageBox1.Image = im2;
this.imageBox2.Image = im3;
this.imageBox3.Image = im4;
Comments
Please sign in to leave a comment.