I want to know about Horizontal Projection cut pic

1 次查看(过去 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);

Adisorn Phanukthong
thank you sir
  1 个评论
Bachtiar Muhammad Lubis
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