1

2

3

4

5

For each row y of the image f

Find object level intervals in row y

Compare intervals of row y with blocks of row y-1

If an interval matches with a block, the end of the block is in row y

If an interval does not match with any block, create a new block