www.pudn.com > DIBR.zip > holefiling.m, change:2010-07-06,size:238b


 
NHOOD = [0 0 0 1 1 1]; 
se = strel('arbitrary', NHOOD) 
y = imdilate(mask.luma,se); 
 
NHOOD2 = [1 1 1 1 1 0 0 0]; 
se2 = strel('arbitrary', NHOOD2); 
x = imerode(y, se2); 
z = x.*mask.luma; 
figure, imshow(z) 
figure, imshow(mask.luma)