如何计算下图中线的近似高度?

时间:2013-03-07 06:57:47

标签: image

image to segment

 To segment above image i want to use line height. I don't know even any algorithm for   this. I want a useful link pls help..

 just i want an efficient algorithm link for this.....

 I shall be very thankful to you for this..

//我到现在为止试过

1 个答案:

答案 0 :(得分:-1)

假设你有M x N维的图像,其中M是行,N是列。对行中的像素执行逻辑OR。如果你得到1,那么你在特定行中至少有一个黑色像素。 只看到你得到的连续1的数量,它将是每个句子的近似高度。