wide angle camera calibration and merge image
Hi all, I have a case use wide angle camera to tkae picture( the same object) at two poitions , then merge image. The object almost has no any character ,i try some ways but all don't do well. I don't want stereo Image, I just want 2D image( 2D undistortion and no rotation image) and merge image perfect Does Someone has any idea or any referance can help me? I appreciate your help.
What do you mean by merge? 3D reconstruction? Find 3D position of the camera related to the object? Undistorted images?
Dear Mathieu Barnachon: Thanks your response. All are based on 2D. The two position images is the part of the object ( the object size is large so use wide angle camera and takes two images)
I assume you want to stitch two images of your object to get a single image with the entire object. Is that right? If the object has few features it will be quite difficult. Post some images to illustrate your problem.
Dear Witek yes. I check calibration plate images, left & right sides scale are different. The object is solar cell module.
Can you mount the camera somewhere and move your solar cell by an exact distance underneath? If so you could calculate the stitching transformation for a feature-rich object that you precisely move by this distance. If you make sure that your object is moved by exactly same distance, you can reuse the transformation to stitch it.
Dear Witek That's good ideal. But how to calibrate distorted image? Can I use the same size feature-rich plate ,and take two positon images then save calculate the stitching transformation? Finally, I change solar cell module and do again.
Exactly. First perform classical camera calibration. It is necessary to remove lens distortions (especially in case of a wide-lens camera) before stitching. Then, use a feature-rich, flat object (the dimensions do not have to be the same as your solar panel, only thickness or height matters) to calculate the transformation necessary to join two fragments of your object. Move the object as much as you have to move your solar panel and remember that you have to see at least the same 1/4 or even more of your object in both images! Having such 2 photos (undistorted!) calculate the transformation (homography) and join them for verification (warpPerspective). If everything works well for your pattern it will work well for your solar panel provided you move it by exactly the same distance.
Hi Witek, thanks very much. I follow the way.
Let us know how it goes.
dear Witek , it can work, thank very much.