how to connect disjoint pixels on image borders?
1 view (last 30 days)
Show older comments
i have an image,i used open close by reconstruction,and then sobel edge detector,it detect edge ,but it has some disjoint parts,pixels are not connected in some parts,i want to use connected component labeling and watershed segmentation,so first i should make a connected border,then use imfill,to fill the area between borders,and watershed to segment them,is there any function i call to connect pixels which are close to each other?when i use sobel on original image,it detects border,but by too many dots,which are not connected,like some one draw borders by dots,when i use open close on image,the border is much better,but still has some disjoint parts,thank you so much
0 Comments
Accepted Answer
Image Analyst
on 28 Nov 2014
What is "open close"? There is imopen() and imclose() but usually you do one or the other. I don't know exactly what operations you did (functions that you called) when you say you did "open close". That's not standard terminology.
You can use imclose() to connect nearby pixels.
How did you do Sobel? Did you use edge() or imgradient()? You should use imgradient() and then you can choose your own threshold. Choose a lower threshold to make the edges more connected.
4 Comments
Weng Keong Wong
on 21 Apr 2015
Hi Image Analyst, i have used edge detector sobel to detect the edges of the image but the some of the edge are not really connected. and you have mentioned to use imgradient() and set the threshold lower... can you show some sample codes of how to do it. because I have tried and I could not get it right.
More Answers (1)
sara
on 27 Jan 2015
4 Comments
Image Analyst
on 28 Jan 2015
Yes - you can use imcrop(). Just specify the starting row and column and the width and height.
See Also
Categories
Find more on 3-D Volumetric Image Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!