Correct images with Camera corrector
4 次查看(过去 30 天)
显示 更早的评论
Hi, I'm using the camera corrector application to correct a series of images that have barrel distortion using chessboards.
Following the steps below:
1.I attach the series of photos to be corrected with the different positions of the chessboard, without modifying the position of the camera.
2. I introduce the size of the different squares that make up the board. And frame that has a high distortion the image to process
3. I perform the processing of the different photos and press the calibration button
4. Detect the different points of the chessboard
5. And I hit the "show undistorted" button. To see the result of the correction.
Apparently the image is corrected. But using a photo correction program, I observed that this is not the case, that there are errors in its correction.
it is observed that the upper right corner is not fully corrected. I have carried out the same procedure with a smaller number of photos, with a different location of the chessboard, etc. I am somewhat confused. What could I do to completely correct the image?
0 个评论
回答(1 个)
Image Analyst
2022-9-13
Looks pretty good to me. What sort of problems is it creating for you? Why do you need more accuracy? The distortion is probably computed as a regression through the detected corner points, and since it's a regression may not have subpixel accuracy for all points in the image. How much off is it and what problem does that cause in your analysis of the scene?
Your camera is also not pointed at the center of the scene and probably does not have the optic axis normal to the plane of the gray frame, thus causing skew/shear in the corrected gray frame. Is it super important that the gray frame be perfectly rectangular? If so, why? Try adjusting your camera so that the camera is at the center and perpendicular to the plane of the scene.
It might also improve if you made your checkerboard larger and put it near the center of the scene with its center on the optic axis.
It looks like you're using a very short focal length lens and are close to the scene, thus causing the fish eye (barrel) distortion. You could reduce the distortion in the first place by using a longer focal length lens, or course this would mean moving the camera farther away to get the same field of view, but maybe that's an option.
5 个评论
Image Analyst
2022-9-15
Your answer said, in essence, "I need it more accurate because I need it more accurate." You are never going to have it be 100% accurate, ever. So what you have to decide is if it's accurate enough for what you want to do. For example, let's say that the coordinates were biased 1 mm higher. But you want to find the upper level of 10 different fluids flowing across to see how that varies with fluid viscosity (or oscillation frequency or whatever you're measuring). Can you use those coordinates to compare the relative heights of the fluids even though they all read 1 mm higher that the "true" level? Sure you can.
I meant more than one checkerboard in a single photo. And I don't have any code, nor am I going to have time to develop it for you, since it seems like more than a 5 minute job.
And it looks like you haven't had time yet to back up the camera and use a longer focal length lens. I'm not sure that you're measuring in that photo (maybe the white line above the hump) but I'm pretty sure you can vastly improve the photo with better background (perhaps black velvet?) and better lighting (proper size and coming from an optimal angle).
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!