<jupyter_start><jupyter_text><jupyter_code>## Code for skimage
import numpy as np
import matplotlib.pyplot as plt

from skimage import data
from skimage import color, morphology

image = color.rgb2gray(data.hubble_deep_field())[:500, :500]

footprint1 = morphology.disk(1)
res1 = morphology.white_tophat(image, footprint1)

footprint2 = morphology.disk(10)
res2 = morphology.white_tophat(image, footprint2)

fig, ax = plt.subplots(ncols=5, figsize=(15, 8))
ax[0].set_title('Original')
ax[0].imshow(image, cmap='gray')
ax[1].set_title('White tophat size 1')
ax[1].imshow(res1, cmap='gray')
ax[2].set_title('White tophat size 2')
ax[2].imshow(res2, cmap='gray')
ax[3].set_title('Complementary 1')
ax[3].imshow(image - res1, cmap='gray')
ax[4].set_title('Complementary 2')
ax[4].imshow(image - res2, cmap='gray')

plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1645123384253819, 'fraction_numerical': 0.04465334900117509, 'mean_word_length': 7.52, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '206947', 'license': 'MIT', 'n_tokens_mistral': 356, 'n_tokens_neox': 335, 'n_words': 65, 'path': 'skimage_trial.ipynb', 'repo_name': 'haricash/bayesian-ionized-bubbles', 'size': '851'}