UniCT | Progetti e programmi legati all'università
kandi X-RAY | UniCT Summary
kandi X-RAY | UniCT Summary
Progetti e programmi legati all'università.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of UniCT
UniCT Key Features
UniCT Examples and Code Snippets
Community Discussions
Trending Discussions on UniCT
QUESTION
I want to collect height data about a body sitting at the focus of the two cameras, this is what my stereo set up looks like:
When I calculate the rectified versions of the images using the standard cv2 functions it looks very bad. When I used a similar setup with the cameras in parallel it worked.
I calculated the epilines, and they seem to be right:
However, the resulting rectified images are not (below, the original images are above):
This is the code I used, it was mostly copied from an openCV tutorial
http://www.dmi.unict.it/~furnari/teaching/CV1617/lab1/
The 3d/2d points and the matrices were calculated previously using
...ANSWER
Answered 2019-Jul-15 at 13:32As far as I know, the function stereoRectify
assumes that the camera axes are approximately parallel to each other. You can try stereoRectifyUncalibrated
, as this function relies on fundamental matrix computation and will handle this case. Make sure you've read the note in the documentation.
Note:
While the algorithm does not need to know the intrinsic parameters of the cameras, it heavily depends on the epipolar geometry. Therefore, if the camera lenses have a significant distortion, it would be better to correct it before computing the fundamental matrix and calling this function. For example, distortion coefficients can be estimated for each head of stereo camera separately by using calibrateCamera()
. Then, the images can be corrected using undistort()
, or just the point coordinates can be corrected with undistortPoints()
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install UniCT
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page