find intersection points and edge points

4 ビュー (過去 30 日間)
majed majed
majed majed 2015 年 11 月 9 日
コメント済み: Image Analyst 2019 年 10 月 29 日
As you see in figure, I have a binary image which has been thinned. It contains English letters, some letters have intersection points (marked with red circles), and some don’t have those.
I want to extract intersection points for every litter and put it in a cell or whatever. I also want to extract the edge points (marked with blue circles) and put it in a cell or matrix to use it later.
In fact I have tried to write function but I could not execute it. So I hope that our teachers here help me.
Note: intersection points are pixels have more than two pixels in a neighborhood, while edge points have just one pixel.
Thank you
  2 件のコメント
Puja Das
Puja Das 2019 年 10 月 29 日
I want the code please send me puja250196@gmai.com
Image Analyst
Image Analyst 2019 年 10 月 29 日
Puja: Did you scroll down to here? Source code is there. Why email it to you when you can get it right there?

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

採用された回答

Image Analyst
Image Analyst 2015 年 11 月 10 日
This functionality is built into the bwmorph() function:
bpImage = bwmorph(binaryImage, 'Branchpoints');
epImage = bwmorph(binaryImage, 'Endpoints');
% Plot blue circles over branchpoints
[ybp, xbp] = find(bpImage);
hold on;
plot(xbp, ybp, 'bo', 'MarkerSize', 15);
% Plot red circles over endpoints.
[yep, xep] = find(epImage);
hold on;
plot(xbp, ybp, 'ro', 'MarkerSize', 15);
  3 件のコメント
swathi
swathi 2018 年 8 月 31 日
What modification should be brought in the given code, for image with white background & signature in black. Please help
swathi
swathi 2018 年 8 月 31 日
I mean, to obtain the end points of the signature, where in, image has white background & signature in black. Kindly help.

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

その他の回答 (1 件)

Robert
Robert 2015 年 11 月 10 日
Attached i send you a m.file. It finds the edge points right. For the intersection points, there is still some error, but the file can maybe help you as a draft.
Regards, Robert
  1 件のコメント
majed majed
majed majed 2015 年 11 月 11 日
Thank you for your help

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

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by