필터 지우기
필터 지우기

I want to know about Horizontal Projection cut pic

조회 수: 1 (최근 30일)
Adisorn Phanukthong
Adisorn Phanukthong 2015년 9월 15일
댓글: Bachtiar Muhammad Lubis 2018년 12월 30일
providing the image size 12 Arial font English by getting into a time line. Then make a cut line Each line out using the Horizontal Projection Each line was then cut out Save as image files of each line to be cut.
I want to know code in Matlab
I hope someone help me Thank you

답변 (2개)

Image Analyst
Image Analyst 2015년 10월 19일
Hints:
Get the horizontal profile by summing vertically:
horizontalProfile = sum(yourImage, 1);
To crop out a band of the image:
subImage = grayImage(row1:row2,:);
To save it to disk:
imwrite(subImage, fullFileName);
  댓글 수: 2
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis 2018년 11월 25일
sorry my stupidness sir.
how can i find that row1 and row2 for every single line in text document image automatically ?

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


Adisorn Phanukthong
Adisorn Phanukthong 2017년 1월 15일
thank you sir
  댓글 수: 1
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis 2018년 12월 30일
Please accept Image Analyst's answer brother !
if you are very satisfied from this answer you can do more effort to vote his answer.
Thank you

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

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by