{'fraction_non_alphanumeric': 0.019588638589618023, 'fraction_numerical': 0.0009794319294809011, 'mean_word_length': 5.269938650306749, '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}}
Local Binary Pattern Based on Magnitude Ranking for Texture Classification

Local binary patterns (LBP) are considered among the most computationally efficient high-performance texture features. There are many LBP variants that can achieve great texture classification results. For most LBP variants, we found two shortcomings. The first is that only the sign information of local difference is considered and the magnitude information of the local difference is discarded. The second is that LBP operator adopts a fixed weight in the encoding process. Based on these two points, this paper proposes a new operator, local binary pattern based on magnitude ranking (MRLBP), and proposes a feature dimension reduction method. Combining the operator and the method, we have excellent texture classification accuracy across six common datasets, with an average of around 2 percent less than the best LBP variants. More importantly, the computational complexity of MRLBP is several times lower than that of these LBP variants.