I want to know about Horizontal Projection cut pic
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Adisorn Phanukthong
el 15 de Sept. de 2015
Comentada: Bachtiar Muhammad Lubis
el 30 de Dic. de 2018
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
0 comentarios
Respuestas (2)
Image Analyst
el 19 de Oct. de 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 comentarios
Bachtiar Muhammad Lubis
el 25 de Nov. de 2018
sorry my stupidness sir.
how can i find that row1 and row2 for every single line in text document image automatically ?
Image Analyst
el 25 de Nov. de 2018
See my attached demo.
Adisorn Phanukthong
el 15 de En. de 2017
1 comentario
Bachtiar Muhammad Lubis
el 30 de Dic. de 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
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!