IRCNN icon indicating copy to clipboard operation
IRCNN copied to clipboard

About the kernel size of Gaussian blur by downsampling for SISR

Open wenchen4321 opened this issue 4 years ago • 1 comments

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,:);

wenchen4321 avatar May 28 '20 15:05 wenchen4321

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

cszn avatar Jun 06 '20 21:06 cszn