How to smooth an edge ?

1 vue (au cours des 30 derniers jours)
K BV
K BV le 2 Avr 2012
Hi,
I need to smooth the edge of an image but I don't know if does a Matlab function exist for that.
Any idea ?
Thanks.

Réponses (1)

Image Analyst
Image Analyst le 2 Avr 2012
Well, you can blur the whole image with imfilter or conv2.
If you want only the edge blurred, then you're going to have to
  1. detect the edges using the original image, then
  2. create an edge mask that defines the location of the edge pixels, then
  3. blur the whole image, then
  4. replace the edge pixels only with the corresponding pixels from the blurred image.
out = originalImage
out(edgeMask) = originalImage(edgeMask);
What do you want to do?
  1 commentaire
K BV
K BV le 2 Avr 2012
Thank you for the answer!
What I want to do is to smooth the edges of a left ventricular to track its displacement. I'll try to implement what did you suggest and keep you informed.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by