In this article we will see how we can load the image as grey in mahotas, there are lots of images available in mahotas we use
mahotas.demos.load method to load them, in this tutorial we will use “luispedro” image, below is the command to load it.
Below is the luispedro image
In order to do this we will use
Syntax : mahotas.demos.load(‘luispedro’, as_grey=True)
Argument : It takes image name as argument
Return : It returns numpy.ndarray i.e image object
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course