Skip to content

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

@codemonkey123-coder

Description

@codemonkey123-coder

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions