Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Image Compression | Results Analysis
Principal Component Analysis
course content

Contenido del Curso

Principal Component Analysis

Principal Component Analysis

1. What is Principal Component Analysis
2. Basic Concepts of PCA
3. Model Building
4. Results Analysis

bookImage Compression

Let's move on to the final task that PCA can solve - this is image compression. The solution of this problem occurs according to the same algorithm as usual. We already know how to create PCA models and load data into them. So now we will delve into other details. Compression of black and white and color images is done differently. Compressing black and white images is no different from compressing regular ones. While for color images it is required to: split the image into 3 RGB color channels, reduce the dimension of each channel using PCA and then combine the channels into a full-fledged color image. To read images and separate them into RGB channels, we need the matplotlib and cv2 libraries:

We standardize the data. We can implement this easier, without using a library, but only with the help of division:

Now let's create 3 PCA models:

Now we can combine the received data into one image:

Tarea

Reduce the dimension of the black and white image to 40 components.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 4. Capítulo 5
toggle bottom row

bookImage Compression

Let's move on to the final task that PCA can solve - this is image compression. The solution of this problem occurs according to the same algorithm as usual. We already know how to create PCA models and load data into them. So now we will delve into other details. Compression of black and white and color images is done differently. Compressing black and white images is no different from compressing regular ones. While for color images it is required to: split the image into 3 RGB color channels, reduce the dimension of each channel using PCA and then combine the channels into a full-fledged color image. To read images and separate them into RGB channels, we need the matplotlib and cv2 libraries:

We standardize the data. We can implement this easier, without using a library, but only with the help of division:

Now let's create 3 PCA models:

Now we can combine the received data into one image:

Tarea

Reduce the dimension of the black and white image to 40 components.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 4. Capítulo 5
toggle bottom row

bookImage Compression

Let's move on to the final task that PCA can solve - this is image compression. The solution of this problem occurs according to the same algorithm as usual. We already know how to create PCA models and load data into them. So now we will delve into other details. Compression of black and white and color images is done differently. Compressing black and white images is no different from compressing regular ones. While for color images it is required to: split the image into 3 RGB color channels, reduce the dimension of each channel using PCA and then combine the channels into a full-fledged color image. To read images and separate them into RGB channels, we need the matplotlib and cv2 libraries:

We standardize the data. We can implement this easier, without using a library, but only with the help of division:

Now let's create 3 PCA models:

Now we can combine the received data into one image:

Tarea

Reduce the dimension of the black and white image to 40 components.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Let's move on to the final task that PCA can solve - this is image compression. The solution of this problem occurs according to the same algorithm as usual. We already know how to create PCA models and load data into them. So now we will delve into other details. Compression of black and white and color images is done differently. Compressing black and white images is no different from compressing regular ones. While for color images it is required to: split the image into 3 RGB color channels, reduce the dimension of each channel using PCA and then combine the channels into a full-fledged color image. To read images and separate them into RGB channels, we need the matplotlib and cv2 libraries:

We standardize the data. We can implement this easier, without using a library, but only with the help of division:

Now let's create 3 PCA models:

Now we can combine the received data into one image:

Tarea

Reduce the dimension of the black and white image to 40 components.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 4. Capítulo 5
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
some-alt