<jupyter_start><jupyter_text>圖像金字塔<jupyter_code>import cv2
image = cv2.imread("images/input.jpg")

smller = cv2.pyrDown(image)
larger = cv2.pyrUp(image)

cv2.imshow("Original",image)
cv2.imshow("Smaller",smller)
cv2.imshow("larger",larger)

cv2.waitKey()
cv2.destroyAllWindows()
image.shape, smller.shape,larger.shape<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1585014409221902, 'fraction_numerical': 0.025936599423631124, 'mean_word_length': 9.235294117647058, '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': '175118', 'license': 'MIT', 'n_tokens_mistral': 157, 'n_tokens_neox': 156, 'n_words': 15, 'path': 'learning2/Day3 scaling.ipynb', 'repo_name': 'JackysongNI/python-', 'size': '347'}