ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2014-08-03 08:47:32 -0500 | received badge | ● Student (source) |
2013-01-07 22:04:20 -0500 | received badge | ● Notable Question (source) |
2013-01-07 22:04:20 -0500 | received badge | ● Famous Question (source) |
2012-05-27 16:26:01 -0500 | received badge | ● Popular Question (source) |
2012-01-27 13:51:16 -0500 | received badge | ● Editor (source) |
2012-01-27 13:47:06 -0500 | asked a question | Is this the right approach for modelling a simple scene in 3d out of 2 images? I'm new in this field and I'm trying to model a simple scene in 3d out of 2d images and I dont have any info about cameras. I know that there are 3 options ( ):
I'm using the last approach and my questions are: 1) Is it right? 2) if it's ok, I have a doubt about the last step "stereoRectifyUncalibrated() => reprojectImageTo3D()". The signature of reprojectImageTo3D() function is: Parameters: -disparity – Input single-channel 8-bit unsigned, 16-bit signed, 32-bit signed or 32-bit floating-point disparity image. -_3dImage – Output 3-channel floating-point image of the same size as disparity . Each element of _3dImage(x,y) contains 3D coordinates of the point (x,y) computed from the disparity map. -Q – 4x4 perspective transformation matrix that can be obtained with stereoRectify(). handleMissingValues – Indicates, whether the function should handle missing values (i.e. points where the disparity was not computed). If handleMissingValues=true, then pixels with the minimal disparity that corresponds to the outliers (see StereoBM::operator() ) are transformed to 3D points with a very large Z value (currently set to 10000). -ddepth – The optional output array depth. If it is -1, the output image will have CV_32F depth. ddepth can also be set to CV_16S, CV_32S or CV_32F. How can I get the Q matrix? Is possibile to obtain the Q matrix with F, H1 and H2 or in another way? 3) Is there another way for obtain the xyz coordinates without calibrate the camera? My code is: (more) |