-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Hi there! I'm trying to use patch_match_stereo in CUDA to compute my depth map from a pair of frames captured using a stereo camera (pinhole camera). I managed to get some results from the code, but actually they seem just the texture of the rigth frame that i'm giving as input and not the correct overlap between the 2 frames. Could you please give me some explanation about the code and how to tune/use correctly the parameters and the inputs?
Currently i'm setting:
MatchMetric match_metric_ = MatchMetric::kZNCC;
int context_radius_ = 2;
float min_initial_depth_ = 0.0022f;
float max_initial_depth_ = 20.0f;
int iteration_count_ = 30;
float max_normal_2d_length_ = 2.0f;
My inputs are:
left and rigth frames from calibrated stereo camera;
fx, fy, cx, cy for Pin-hole camera parameters;
The roto-translation matrix between the 2 camera and its inverse;
CUDAUnprojectionLookup2D reference_unprojection (stereo_camera, cudaStream);
If you need something else i'll provide it immediately.
Thank you very much!