Running a shape recognition algorithm over a downloaded texture. It automatically detects squares shapes (red) and non squares (blue). The differentiation is done using 1D shape signature.
Shape recognition test in Substance Designer