Python Tutorial: Make images come alive with scikit-image
Want to learn more? Take the full course at https://www.datacamp.com/courses/image-processing-in-python at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
Hi, Datacampers! Welcome! In this course, you will learn how to transform and manipulate images at your will. Let's start!
Image processing is a method to perform operations on images, in order to enhance them or extract useful information, analyze it and make decisions.
By quantifying the information in images, we can make calculations. Image processing is a subset of computer vision.
There is a wide range of applications. Such as the analysis of medical images, artificial intelligence, image restoration, surveillance and many more.
The purpose of image processing can be divided into five groups. Visualization: observe objects that are not visible. Image sharpening and restoration: to create a better image. Image retrieval: to seek for the image of interest. Measurement of pattern: to measure objects. And Image Recognition: to distinguish objects in an image.
scikit-image is an image processing library in Python that is easy to use. scikit-image makes use of Machine Learning with built-in functions, and can perform complex operations on images with just a few functions. We will use scikit-image throughout this course.
Let's get started with images! A digital image is an array, or a matrix, of square pixels (picture elements) arranged in columns and rows: in other words, a 2-dimensional matrix.
These pixels contain information about color and intensity. Here's an example of the matrix for a 2D grayscale image.
Here we can see that the first image is a pixelated image. The numbers that we see on top of the following image next to the first one correspond to the intensity of each pixel in the image. So in the end, an image can be treated as an intensities matrix.
2-dimensional color images are often represented in RGB—3 layers of 2-dimensional arrays, where the three layers represent Red, Green and Blue channels of the image.
There are some testing-purpose images provided by scikit-image, in a module called data. If we want to load a colored image of a rocket, we can do so by Importing data from skimage. And then from data, call a method named rocket.
Grayscale images only have shades of black and white. Often, the grayscale intensity is stored as an 8-bit integer giving 256 possible different shades of gray. Grayscale images don't have any color information.
RGB images have three color channels, while grayscaled ones have a single channel. We can convert an image with RGB channels into grayscale using the function rgb2gray() provided in the color module. We can also turn grayscale to RGB using gray2rgb().
During the course, we'll usually use a preloaded function called show image to display the images using Matplotlib. This way we can focus on the image processing code. This is what the show image function looks like.
So if we want to show an image that we have converted to grayscale, we just need to pass the image as the first parameter of the "show_image" function and the title "Grayscale" as the second parameter.
We will then see the image displayed in the console output.
Now let's practice and make some colorful work.
Видео Python Tutorial: Make images come alive with scikit-image канала DataCamp
---
Hi, Datacampers! Welcome! In this course, you will learn how to transform and manipulate images at your will. Let's start!
Image processing is a method to perform operations on images, in order to enhance them or extract useful information, analyze it and make decisions.
By quantifying the information in images, we can make calculations. Image processing is a subset of computer vision.
There is a wide range of applications. Such as the analysis of medical images, artificial intelligence, image restoration, surveillance and many more.
The purpose of image processing can be divided into five groups. Visualization: observe objects that are not visible. Image sharpening and restoration: to create a better image. Image retrieval: to seek for the image of interest. Measurement of pattern: to measure objects. And Image Recognition: to distinguish objects in an image.
scikit-image is an image processing library in Python that is easy to use. scikit-image makes use of Machine Learning with built-in functions, and can perform complex operations on images with just a few functions. We will use scikit-image throughout this course.
Let's get started with images! A digital image is an array, or a matrix, of square pixels (picture elements) arranged in columns and rows: in other words, a 2-dimensional matrix.
These pixels contain information about color and intensity. Here's an example of the matrix for a 2D grayscale image.
Here we can see that the first image is a pixelated image. The numbers that we see on top of the following image next to the first one correspond to the intensity of each pixel in the image. So in the end, an image can be treated as an intensities matrix.
2-dimensional color images are often represented in RGB—3 layers of 2-dimensional arrays, where the three layers represent Red, Green and Blue channels of the image.
There are some testing-purpose images provided by scikit-image, in a module called data. If we want to load a colored image of a rocket, we can do so by Importing data from skimage. And then from data, call a method named rocket.
Grayscale images only have shades of black and white. Often, the grayscale intensity is stored as an 8-bit integer giving 256 possible different shades of gray. Grayscale images don't have any color information.
RGB images have three color channels, while grayscaled ones have a single channel. We can convert an image with RGB channels into grayscale using the function rgb2gray() provided in the color module. We can also turn grayscale to RGB using gray2rgb().
During the course, we'll usually use a preloaded function called show image to display the images using Matplotlib. This way we can focus on the image processing code. This is what the show image function looks like.
So if we want to show an image that we have converted to grayscale, we just need to pass the image as the first parameter of the "show_image" function and the title "Grayscale" as the second parameter.
We will then see the image displayed in the console output.
Now let's practice and make some colorful work.
Видео Python Tutorial: Make images come alive with scikit-image канала DataCamp
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Python Tutorial: Simple Linear Regressions](https://i.ytimg.com/vi/7NW4EouQDes/default.jpg)
![R Tutorial : Limitations of linear models](https://i.ytimg.com/vi/hKpMXZrRgLg/default.jpg)
![How to Write Effective ChatGPT Prompts (ChatGPT Advice from the Experts)](https://i.ytimg.com/vi/bAfiiMwXP_0/default.jpg)
![Python Tutorial: Advanced plotting](https://i.ytimg.com/vi/ersDtKLwKkY/default.jpg)
![#77 Ace the Data Science Interview (with Nick Singh and Kevin Huo)](https://i.ytimg.com/vi/LlgrJY8kaxY/default.jpg)
![DataCamp for the Classroom](https://i.ytimg.com/vi/DbNOssbT13M/default.jpg)
![#85 Building Data Literacy at Starbucks (with Megan Brown)](https://i.ytimg.com/vi/KNNG7mpIDdk/default.jpg)
![R Tutorial : Interpreting a Confidence Interval](https://i.ytimg.com/vi/eN0KSWCP3Xw/default.jpg)
![#117 Successful Data & Analytics in the Insurance Industry (with Rob Reynolds)](https://i.ytimg.com/vi/sgTZGMLMUCk/default.jpg)
![SQL Tutorial: Working with aggregate functions](https://i.ytimg.com/vi/zJXwdHCJC1c/default.jpg)
![Creating Data Pipelines with Airflow](https://i.ytimg.com/vi/s3n0BCFQuOU/default.jpg)
![Python Data Science Toolbox: Lambda functions50](https://i.ytimg.com/vi/xTtwkfGLGus/default.jpg)
![Python Tutorial: Intermediate Network Analysis in Python | Definitions & basic recap](https://i.ytimg.com/vi/knwYBgWLwx0/default.jpg)
![Dealing with Bad AI Responses | Robb Wilson, Co-Founder & CEO at Onereach.ai](https://i.ytimg.com/vi/dLVHOBpAS28/default.jpg)
![Python Tutorial: Stanford Open Policing Project dataset](https://i.ytimg.com/vi/NEsgHxl-NX0/default.jpg)
![R Tutorial: Anatomy of a flexdashboard](https://i.ytimg.com/vi/T6i4B3MDyR4/default.jpg)
![Spreadsheets Tutorial: How far from average?](https://i.ytimg.com/vi/E06ntGRTSEM/default.jpg)
![The Tech Powering The 2022 FIFA World Cup | The Weekly Roundup](https://i.ytimg.com/vi/kM4DXNMPIWQ/default.jpg)
![Live code along: How a data science portfolio can help you land your dream job](https://i.ytimg.com/vi/7_VIjcFKHZo/default.jpg)
![R in DataCamp Workspace and Building Data Products](https://i.ytimg.com/vi/JXZnHcFIrFE/default.jpg)
![#66 The Path to Building Data Cultures (with Sudaman Thoppan Mohanchandralal)](https://i.ytimg.com/vi/uVGyBqY7cLc/default.jpg)