scipy.ndimage is a submodule of SciPy which is mostly used for performing an image related operation It is now deprecated we can not use the misc package on the latest version scipy. If we want to show image and perform an operation on images then we can use imageio package to write and read images with the following code. import imageio f=imageio.imread('img.jpg') import matplotlib.pyplot as plt plt.imshow(f) plt.show() #note you can upload your own images to show the image(img.jpg). If we want to flip the images of the actual image using this then we can use flipud() of numpy import numpy as np flip_ud_face = np.flipud(f) plt.imshow(flip_ud_face) plt.show() Rotate the image at particular angle in scipy. import numpy as np from scipy import ndimage, misc s=ndimage.rotate(f, 45) plt.imshow(s) plt.show() Code to blur image import numpy as np from scipy import ndimage, misc #s=ndimage.rotate(f, 45) s=ndimage.gaussian_filter(f, sigma=3) plt.imshow(s) plt.show() http://scipy...
Hi, I'm Shiva Gautam. With over 15 years of diverse experience in various IT domains, I am now an entrepreneur focusing on both training and software development. My expertise spans across multiple technologies, and I've authored numerous articles on subjects including Java, Python, REACT, NODE, ANGULAR, Cloud, software testing, Django framework, C#, Flutter, Salesforce, Ruby on Rails, .NET, and more. For additional information, please visit shivaconceptsolution.com and kangaroosoftware.net.