$extrastylesheet
Functions | |
template<typename I > | |
mln::util::array< mln_box(I)> | scribo::layout::xy_cut (const Image< I > &ima, int min_height, int min_width) |
Document Layout Analysis algorithms.
mln::util::array<mln_box(I)> scribo::layout::xy_cut | ( | const Image< I > & | ima, |
int | min_height, | ||
int | min_width | ||
) |
XY-Cut layout analysis algorithm.
This algorithm is an implementation inspired by nagy1992computer, kruatrachue2005waset and meunier2005icdar.
It recusively subdivides empty spaces in the document until a minimum division size is reached. The latter is defined with min_height
and min_width
.
[in] | ima | A binary image. |
[in] | min_height | The minimum height of a subdivision. |
[in] | min_width | The minimum width of a subdivision. |