Tuesday, December 31, 2019

Python - Image Processing with SciPy – scipy.ndimage

Python - Image Processing with SciPy – scipy.ndimage

scipy.ndimage is a submodule of SciPy which is mostly used for performing an image related operation
ndimage means the "n" dimensional image.
SciPy Image Processing provides Geometrics transformation (rotate, crop, flip), image filtering (sharp and de nosing), display image, image segmentation, classification and features extraction.
MISC Package in SciPy contains prebuilt images which can be used to perform image manipulation task

This code actually brought up a window and showed the Panda image.

from scipy import misc
from matplotlib import pyplot as plt
import numpy as np
#get face image of panda from misc package
panda = misc.face()
#plot or show image of face
plt.imshow( panda )
plt.show()

References:
https://www.guru99.com/scipy-tutorial.html

No comments:

Post a Comment