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

About the kernel size of Gaussian blur by downsampling for SISR #25

Open
wenchen4321 opened this issue May 28, 2020 · 1 comment
Open

Comments

@wenchen4321
Copy link

wenchen4321 commented May 28, 2020

Could you please tell me why the kernel size is even when the scale factor is 2 or 4 in Blurring by Gaussian kernel followed by downsampling for SISR?

kernelsize = ceil(sigma*3)*2+2;
kernel     = fspecial('gaussian',kernelsize,sigma);
blur_HR    = imfilter(im, kernel,'replicate');
LR         = blur_HR(scale/2:scale:end-scale/2,scale/2:scale:end-scale/2,:);
@cszn
Copy link
Owner

cszn commented Jun 6, 2020

Check the bicubic kernel as a reference, see https://github.com/cszn/USRNet

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