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

questions for the code of 2D inpainting "reconstruct_2D_subsampling.m" #2

Open
codemonkey123-coder opened this issue Jan 9, 2020 · 0 comments

Comments

@codemonkey123-coder
Copy link

reconstruct_2D_subsampling.m

% % %Sampling matrix
MtM = ones(size(signal));
% % %MtM(1:2:end, 1:2:end) = 1;
MtM(rand(size(MtM)) < 0.5 ) = 1;
signal_sparse = signal;
signal_sparse( ~MtM ) = 0;

From the code, we can find that the matrix MtM is initialized as ones. MtM(rand(size(MtM)) < 0.5 ) = 1; means that the missing part in the mask is ones. Above all, the mask doesn't work, so the signal_sparse is same as signal. Then we can find that the inpainting process is same as the process of Convolutional Sparse Coding, it doesn't do anything with inpainting. Then, i initalize the MtM as zeros. The inpainting results of the code are bad, it is quite different from the results in the paper. I want to know how we can get the great inpainting results in the paper.
1578542159(1)

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

1 participant