Filter löschen
Filter löschen

I want to know about Horizontal Projection cut pic

1 Ansicht (letzte 30 Tage)
Adisorn Phanukthong
Adisorn Phanukthong am 15 Sep. 2015
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

Antworten (2)

Image Analyst
Image Analyst am 19 Okt. 2015
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 Kommentare
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis am 25 Nov. 2018
sorry my stupidness sir.
how can i find that row1 and row2 for every single line in text document image automatically ?

Melden Sie sich an, um zu kommentieren.


Adisorn Phanukthong
Adisorn Phanukthong am 15 Jan. 2017
thank you sir
  1 Kommentar
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis am 30 Dez. 2018
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by