- Finding center of a line - MATLAB Answers - MATLAB Central (mathworks.com)
- How to find the centreline of two curves - MATLAB Answers - MATLAB Central (mathworks.com)
- Centerline and bounding curve in image - MATLAB Answers - MATLAB Central (mathworks.com)
How do I find the centerlines shown in the image?
3 ビュー (過去 30 日間)
古いコメントを表示
Original image: "myimage"
Binary image: "binary"
Code to reach from original image to binary image:
I = imread("myimage.jpg");
I = im2gray(I);
I = imadjust(I);
Igs = I > 150;
imshow(Igs)
Igs = imfill(Igs,"holes");
Igs = bwareaopen(Igs,50);
imshow(Igs);
SE = strel("disk",10);
Igs = imclose(Igs,SE);
Igs = imopen(Igs,SE);
imshow(Igs)
I want to detect the 6 centerlines shown in the binary image marked in red. What functions or method do I use to detect these centerlines?
Thankyou.
0 件のコメント
回答 (1 件)
Prateek
2022 年 11 月 22 日
Hi Husain,
There can be different approaches to find and draw centerlines, such as scanning image columns or using the function “bwskel”. The following links contain detailed discussions on the same:
Please refer to these discussions. These should be helpful in constructing a solution.
Regards,
Prateek
2 件のコメント
Prateek
2023 年 1 月 24 日
Hi Husain,
I believe you would have found a solution by now. If that is not the case, I suggest you approach the MathWorks Technical Support for this. Here's the link for it - https://in.mathworks.com/support/contact_us.html?requestedDomain=
Regards,
Prateek
参考
カテゴリ
Help Center および File Exchange で Image Processing and Computer Vision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!