เทพโปรแกรมช่วยทีครับ

>>    clear all;
>>    close all;
>>    w= imread(‘cxr1.jpg’);
>>    I =rgb2gray(w);
>>    I = double(I)/255;
>>    mask1=ones(3,3)/9;
>>    mask2=ones(5,5)/25;
>>    mask3=ones(7,7)/49;
>>    I1 =conv2(I,mask1,’same’);
>>    I2 =conv2(I,mask2,’same’);
>>    I3 =conv2(I,mask3,’same’);
>>    subplot(221);
>>    imshow(I);
>>    title(‘Original image);
>>    subplot(222);
>>    imshow(I1);
>>    title(‘Smoothing with n=3);
>>    subplot(223);
>>    imshow(I2);
>>    title(‘Smoothing with n=5);
>>    subplot(224);
>>    imshow(I3);
>>    title(‘Smoothing with n=7);

อยากรู้ว่า
mask
ones
same
ทำงานยังไงครับ
แสดงความคิดเห็น
โปรดศึกษาและยอมรับนโยบายข้อมูลส่วนบุคคลก่อนเริ่มใช้งาน อ่านเพิ่มเติมได้ที่นี่