FIGS. 10A and 10B are a flow chart showing the steps of part of the module READ COLOR for the implementation of the first embodiment of the present invention where the perimeter points in the perimeter buffer are first sorted by row, and then by column.