Replicating each frame in order to run the algorithm on gray but writing the points on the colorful origin frame. Dropping irrelevant points.