Fig. 5: Demonstration of the image comparing function based on logic XNOR.

a Diagram of the working process of image similarity function. Two 3 × 3-pixel patterns are input in parallel from each of the two input ports of the array. The current at each pixel is processed by the activation function and then summed, end up with a value between 0 and 9 to represent the similarity of the image. b A custom 3 × 3-pixel alphabetic A–Z patterns are shown in the horizontal axis. Using the processing method in a, we made a pairwise comparing of the 26 letter patterns, the activated value map is obtained. The best-matched patterns on the diagonal indicate that it realises the function of image similarity.