<jupyter_start><jupyter_text>region_size  Import packages<jupyter_code>import matplotlib.pyplot as plt
import numpy as np
import porespy as ps
import scipy.ndimage as spim
import skimage

ps.visualization.set_mpl_style()
np.random.seed(10)<jupyter_output><empty_output><jupyter_text>Genearate image for testing<jupyter_code>im = ps.generators.blobs(shape=[100, 100])
fig, ax = plt.subplots()
ax.imshow(im, origin="lower");<jupyter_output><empty_output><jupyter_text>Apply filter function<jupyter_code>x = ps.filters.region_size(im=im)
fig, ax = plt.subplots()
ax.imshow(x, origin="lower");<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12439418416801293, 'fraction_numerical': 0.012924071082390954, 'mean_word_length': 9.333333333333334, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '456256', 'license': 'MIT', 'n_tokens_mistral': 247, 'n_tokens_neox': 238, 'n_words': 40, 'path': 'examples/filters/howtos/region_size.ipynb', 'repo_name': 'jamesobutler/porespy', 'size': '619'}