Rectify images from 2x2 camera matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a camera system with a 2x2 camera matrix, which I have used for an experiment. I'd like to rectify (I believe that's the term) all these images, so that a given pixel in any image corresponds to the same(-ish) point in the real world. I would also like this process to be done as automatically as possible, since I have a lot of images I need corrected.
All images are the same size, approx 1.5k by 2k pixels, and in 8-bit greyscale bitdepth. Each of the objects photographed have been marked with 9 dots in a 3x3 matrix (see image below).
So far I've tried a few different approaches:
- Manual rectification, i.e. letting the user mark the 9 dots in the image and then using each dot's coordinate in each of the four images to correct the image (by just shifting the pixels). This produces decent results but is VERY slow.
- Different stereo rectification tutorials. These work to some extent, however I haven't found one that works with the diagonal images (1 and 4 in the image below).
I think the best approach would be if you somehow could identify the 9 dots in each image (automatically) and the shift/crop each image accordingly. Since each cameras orientation is approx the same I don't think any transformation is needed. However, I'm unable to identify the 9 dots without getting a lot of false positives.
Sketch of problem:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154949/image.png)
Example image (with 3x3 dot-matrix):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154954/image.bmp)
댓글 수: 0
답변 (1개)
Image Analyst
2016년 7월 18일
I've always heard it called "registration". Which basically means rotating, scaling, translating, whatever so that two or more images are where they "should" be. There is a function imregister(), plus some other related functions that handle greater misalignments.
You could try normalized cross correlation if it's just a simple translation. I attach a demo.
Or you could use SURF and other features in the Computer Vision System Toolbox: see this for examples http://www.mathworks.com/products/computer-vision/code-examples.html
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!