請問在空間域和頻率域中執行色彩影像模糊效果有何差異?

請問各位前輩在空間域和頻率域中執行色彩影像模糊效果有何差異(以Matlab這套軟體來說)?

1 Answer

Rating
  • ivan
    Lv 5
    1 decade ago
    Favorite Answer

    Matlab User's Guide 有版主所提到的問題可參考以下的程式碼與解說:

    1 Read an image into the MATLAB workspace. (To speed the deblurring operation, the example also crops the image.)

    I = imread('peppers.png');

    I = I(10+[1:256],222+[1:256],:);

    figure;imshow(I);title('Original Image');

    2 Create a PSF.

    LEN = 31;

    THETA = 11;

    PSF = fspecial('motion',LEN,THETA);

    3 Create a simulated blur in the image.

    Blurred = imfilter(I,PSF,'circular','conv');

    figure; imshow(Blurred);title('Blurred Image');

    4 Deblur the image.

    wnr1 = deconvwnr(Blurred,PSF);

    figure;imshow(wnr1);

    title('Restored, True PSF');

    Source(s): Matlab User's Guide
    • Login to reply the answers
Still have questions? Get your answers by asking now.