Skip to content

patch_match_stereo CUDA for pinhole camera #16

@tiziano-v

Description

@tiziano-v

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions