1. A method of detecting a repetitive pattern, the method comprising: performing edge detection on pixels that form an input image to identify linear pixel components, wherein the linear pixel components are lines formed by the pixels; removing the linear pixel components from the input image to provide a modified input image; detecting circular pixel components in the modified input image, wherein the circular pixel components are circles formed by a plurality of the pixels; setting a grid of a plurality of square cells in the input image, wherein the square cells of the grid form a plurality of rows and a plurality of columns; creating a distribution matrix by placing the circular pixel components in the cells of the grid; and calculating a repetition cycle of the circular pixel components by measuring distances between the circular pixel components; wherein at least one of the performing, removing, detecting, setting, creating, and calculating is performed using a hardware processor.