{'fraction_non_alphanumeric': 0.01473187978786093, 'fraction_numerical': 0.011196228638774307, 'mean_word_length': 5.197080291970803, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Modified morphological correlation via binary representation

The morphological correlation is the optimal method for searching a reference object in an input scene when the figure of merit is based on the mean absolute error (MAE). In practice, it was found that the morphological correlation exhibits high discrimination ability between similar patterns in recognition systems. It is based on threshold slicing the input image as well as the reference filter into many binary slices, as many as the dynamic range of the input permits. The threshold slices of the input and the reference are then correlated and summed up to obtain the morphological correlation. This operation is characterized by a sharp correlation peak but requires many correlation operations. In this work we propose a novel correlation operation that is characterized by even higher discrimination capabilities than exhibited by the conventional morphological correlation and requires less computational effort. The method is based upon the binary representation of the gray level of each pixel in the image. For example: if the dynamic range allows the definition of 256 levels, i.e., 8 binary bits, then a level of 10 will be represented as 00001010. Unlike the morphological correlation, the proposed modification is based on correlating binary slices that are the bitmap representations. Thus, only 8 slices of the input and the reference are required and only 8 correlations rather than 256 performed. The optical implementation of the new approach is fairly simple and can be utilized via the well-known joint transform correlator architecture. Experimental results demonstrate the advantages of the suggested method.