Let's we differentiate an object into its constituents. There are point/verrtex, line, and plane. Yes there are many methods to detect an edge. However, a pattern could be an equation, fractals/self similar iteration, and chaos. The way that can be implemented is that we compare a database and the data acquisition, such as face recognition, fingerprint. We might apply AI in image processing to give any values of any given variables.