フィルターのクリア

connect lines after edge detection

3 ビュー (過去 30 日間)
researcher
researcher 2012 年 8 月 10 日
コメント済み: sheharyar javed 2019 年 5 月 15 日
Dear all, i've applied edge detection (sobel) to an image and get red of unwanted objects , but it also deleted some lines from the required objects.
how can i connect this lines again?
thanks in advance
  2 件のコメント
Sean de Wolski
Sean de Wolski 2012 年 8 月 10 日
Sample images are worth more than a thousand words :)
sheharyar javed
sheharyar javed 2019 年 5 月 15 日
use dilation ...and than erosion

サインインしてコメントする。

回答 (2 件)

Sumit Tandon
Sumit Tandon 2012 年 8 月 10 日
As Sean said, it will be difficult to give an exact answer without looking at the image. However, if the aim is to reconnect lines and fill up holes, etc., then morphological operations like dilation, closing, etc may be helpful.
Try out MorphTool submitted by Brett. This will give you easy access to morphological operations in Image Processing Toolbox.

Image Analyst
Image Analyst 2012 年 8 月 10 日
You can try imclose(), or fancier things like edge linking: http://www.csse.uwa.edu.au/~pk/Research/MatlabFns/#edgelink

Community Treasure Hunt

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

Start Hunting!

Translated by