
120 A Computational Introduction to Digital Image Processing, Second Edition
FIGURE 5.25: An image with an ROI, and the ROI mask
MATLAB
>> a = fspecial(’average’,15);
>> ma = roifilt2(a,m,roi);
>> u = fspecial(’unsharp’);
>> mu = roifilt2(u,m,roi);
>> l = fspecial(’log’);
>> ml = roifilt2(l,m,roi);
>> imshow(ma),figure,imshow(mu),figure,imshow(ml)
The images are shown in Figure 5.26.
Average filtering Unsharp masking Laplacian of Gaussian
FIGURE 5.26: Examples of the use of
roifilt2