In the course of plant growth, in order to test the plant's growth trend, you need to know the height of the plant constantly changing, but felt that to measure every day, is a waste of time, it is write this algorithm, you can extract the lines and calculated measurements of the length of the line.