How to Enhance Image edges after segment on Binary Image

3 ビュー (過去 30 日間)
Selva Karna
Selva Karna 2017 年 7 月 27 日
回答済み: Swarooph 2017 年 7 月 27 日
How to Enhance Image edges after segment on Binary Image

回答 (1 件)

Swarooph
Swarooph 2017 年 7 月 27 日
The simplest answer is to try using the edge function in the Image Processing Toolbox. Here is the doc. I tried it on your image to get an ok result. You might have to play with the algorithm/parameters to get a thicker/more defined edge:
img = imread('binary_image.png');
I = rgb2gray(img);
BW1 = edge(I,'sobel');
BW2 = edge(I,'canny');
figure;
imshowpair(BW1,BW2,'montage')
title('Sobel Filter Canny Filter');
(right click open image in a new tab/window for better resolution)

Community Treasure Hunt

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

Start Hunting!

Translated by