Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a small question #2

Open
hucaigang opened this issue Jul 9, 2021 · 1 comment
Open

a small question #2

hucaigang opened this issue Jul 9, 2021 · 1 comment

Comments

@hucaigang
Copy link

When i was reading your paper,i found the experiments conducted using some sturcture missing depth map as input cannot be inpainted using this matlab/C++ code.I'm curious about how to carry out this experiment.

@wliusjtu
Copy link
Owner

When i was reading your paper,i found the experiments conducted using some sturcture missing depth map as input cannot be inpainted using this matlab/C++ code.I'm curious about how to carry out this experiment.

Many thanks for your interest in our paper. For Kinect depth image inpainting, you first need to interpolate these missing depth values as the initial input of our system. Given "IN" as the original depth maps with missing depth values, here is an example of how to interpolate the missing depth values with the "scatteredInterpolant" function in MATLAB:

[x, y] = find(IN>0); % pixel coordinates with valid depth values
[xq, yq] = find(IN==0); %% pixel coordinates with missing depth values
F = scatteredInterpolant(x, y, IN(IN>0));
IN(IN==0) = F(xq, yq);

After these 4 lines of code, you will get an interpolated depth map, then you can use this depth map as the input to our code for depth map refinement.

In addition, we have many papers that conduct depth map restoration, please refer to the following papers whose code can also be found in my GitHub homepage:

  1. A generalized framework for edge-preserving and structure-preserving image smoothing, PAMI 2021, AAAI 2020.
  2. Semi-Global Weighted Least Squares in Image Filtering. ICCV 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants