0 Posted 2023-03-07Updated 2024-01-11Pythona minute read (About 162 words)Image skills for pythonRead tiff files skimage import skimage.io as skioimstack1 = skio.imread("FILENAME.TIF", plugin="tifffile") Gaussian Smoothing scipy from scipy.ndimage import gaussian_filterimport matplotlib.pyplot as pltimport numpy as npa = np.arange(50, step=2).reshape((5,5))b = gaussian_filter(a, sigma=3)fig, axs = plt.subplots(1,2)axs[0].imshow(a)axs[1].imshow(b)plt.show() © scipy Turn image to DataFrame Grey image import pandas as pdimport numpy as np# create a 2D image arrayimage_array = np.array([[10, 20, 30], [40, 50, 60], [70, 80, 90]])# convert to pandas dataframedf = pd.DataFrame(image_array)# print dataframeprint(df) Image skills for pythonhttps://karobben.github.io/2023/03/07/Python/image/AuthorKarobbenPosted on2023-03-07Updated on2024-01-11Licensed under#PythonImage