how to enhance edges on images?

6 views (last 30 days)
Selva Karna
Selva Karna on 22 Jul 2017
Edited: Deepak Saini on 18 Apr 2020
how to enhance edges on images?

Accepted Answer

Image Analyst
Image Analyst on 22 Jul 2017
You can do a high boost filter, which is essentially a high pass filter added to the original image. For example
kernel = -1*ones(3);
kernel(2,2) = 17;
enhancedImage = imfilter(grayImage, kernel);
  2 Comments
Selva Karna
Selva Karna on 25 Jul 2017
thank you Image Analys , but i need clear edge in BW images , clear edge for contour plotting ?
Image Analyst
Image Analyst on 25 Jul 2017
What are BW images? Binary images (only 2 gray levels), or gray scale images? Binary images already have sharp edges, and for gray scale images, that code will sharpen the edges. For contours, you can use contour().

Sign in to comment.

More Answers (1)

Deepak Saini
Deepak Saini on 17 Apr 2020
Edited: Deepak Saini on 18 Apr 2020
I need to find sharp edge (front part) for the uploaded x-ray image.
When i am using imbinarize or im2bw, i am getting a very blunt edge.

Community Treasure Hunt

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

Start Hunting!