16
Laboratory of Image Processing Pier Luigi Mazzeo [email protected] July 23, 2014

Laboratory of Image Processing

  • Upload
    fauna

  • View
    34

  • Download
    0

Embed Size (px)

DESCRIPTION

Laboratory of Image Processing. Pier Luigi Mazzeo [email protected] July 23, 2014. Filtering. Neighbourhood processing. Mean. Filtering in MatLab. filter2. f ilter2 (cont.). fspecial ( low pass filters ). - PowerPoint PPT Presentation

Citation preview

Page 1: Laboratory of Image  Processing

Laboratory ofImage Processing

Pier Luigi [email protected]

July 23, 2014

Page 2: Laboratory of Image  Processing

Filtering

Page 3: Laboratory of Image  Processing

Neighbourhood processing

Page 4: Laboratory of Image  Processing

Mean

Page 5: Laboratory of Image  Processing

Filtering in MatLab

Page 6: Laboratory of Image  Processing

filter2

Page 7: Laboratory of Image  Processing

filter2 (cont.)

Page 8: Laboratory of Image  Processing

fspecial (low pass filters)

Produce an Average filtering image using 9x9 filter and a 25x25 filter

Page 9: Laboratory of Image  Processing

>> hsize = 10;>> sigma = 5;>> h = fspecial(‘gaussian’ hsize, sigma);

>> mesh(h);

>> imagesc(h);

>> outim = imfilter(c, h);>> imshow(outim);

fspecial (low pass filters)

Page 10: Laboratory of Image  Processing

for sigma=1:3:10 h = fspecial('gaussian‘, fsize, sigma);out = imfilter(c, h); imshow(out);pause;

end

fspecial (low pass filters)

Page 11: Laboratory of Image  Processing

>> noise = randn(size(c)).*sigma;

>> output = c+ noise;

Noise

Periodic noise

Page 12: Laboratory of Image  Processing

Cleaning salt and pepper noise

Page 13: Laboratory of Image  Processing

fspecial (high pass filters)

Page 14: Laboratory of Image  Processing

fspecial (high pass filters)

Page 15: Laboratory of Image  Processing

Unsharp masking

Find the image ‘pelicans.tif’ from internet and use u filter

>> My = fspecial(‘sobel’);>> outim = imfilter(double(c), My); >> imagesc(outim);>> colormap gray;

Page 16: Laboratory of Image  Processing

Canny edge detectorMATLAB: edge(c, ‘canny’);>>help edge

I = imread('circuit.tif'); BW1 = edge(I,'prewitt'); BW2 = edge(I,'canny'); figure, imshow(BW1) figure, imshow(BW2)