The program uses a basic image pyramid with SSD to determine the similarities between the channels. It is possible to change the maximum steps to recurse while the recursion will stop if the image width or height is less than or equal to 64 (arbitrarily chosen).