3*3 matched filter

2 visualizaciones (últimos 30 días)
Chandra Shekhar
Chandra Shekhar el 17 de Sept. de 2012
please any one help me .. how to apply 3*3 matched filter to image.. image is having size 465*800..and matched filter value is all 1's.

Respuesta aceptada

Image Analyst
Image Analyst el 17 de Sept. de 2012
Editada: Image Analyst el 17 de Sept. de 2012
Try this:
blurredImage = conv2(single(grayImage), ones(3)/9);
imshow(blurredImage, []);
% Find where the image was all 1's in a 3x3 box.
% The output image will be exactly 1 in that situation.
matchingRegions = abs(blurredImage - 1) < 0.0001;
% Use axes() or figure() to switch to a new axes if you want.
imshow(matchingRegions, []);
You might also want to look at normxcorr2(). I have a demo for that if you want it.
  1 comentario
Chandra Shekhar
Chandra Shekhar el 17 de Sept. de 2012
thanks for giving answer

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matched Filter and Ambiguity Function en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by