Open wenchen4321 opened 4 years ago
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,:);
Check the bicubic kernel as a reference, see https://github.com/cszn/USRNet
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?