Question: In a 24-bit colour image, each pixel is represented as three 8-bit integers between 0 to 255 indicating its RGB intensity values. Therefore, an image
In a 24-bit colour image, each pixel is represented as three 8-bit integers between 0 to 255 indicating its RGB intensity values. Therefore, an image contains thousands of colours. One way to reduce the size of an image is to reduce its colour count. Propose an approach based on k-means clustering to reduce the colour count of an image to k = 16. Implement an R script that takes as input a 128128 image of your choice, and reduces its colour count to 16 colours using k-means clustering. How to use Rstudio to compression a image
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
