How can I remove the border line from the image ?

조회 수: 3 (최근 30일)
sufian ahmed
sufian ahmed 2017년 8월 28일
댓글: sufian ahmed 2017년 8월 29일
I have an image with some character. After the canny edge detection i get the digits with some border line. so I want to remove all the border line and only extract the digits. How can i do that ?
Here is the output of canny Image:

답변 (1개)

Image Analyst
Image Analyst 2017년 8월 28일
편집: Image Analyst 2017년 8월 28일
Label the image with bwlabel. Then use regionprops to get the Euler number of each blob. "Hollow" blobs will have an Euler number of 0 or less, while "stick-like" blobs will have an Euler number of 1. Use propfilt() to extract only those with an Euler number of 1.
  댓글 수: 1
sufian ahmed
sufian ahmed 2017년 8월 29일
@image analyst i want to remove the border line. when i extract the stick-like blobs for example : "1" then border lines also have the same Euler number i think. so how can i distinguish ?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by