/computer-vision-1

The main aim of this assignment is to generate the indexed image of a colored image which includes the index map (Data Matrix) and the color map. Moreover, apply different quantization levels to the colored image using the indexed image to diffuse some of the colors. Therefore, the assignment is structured as follows: 1. Task 1: Indexed Image a. Index Map b. Color Map 2. Task 2: Applying Different Quantization Levels. Reducing the number of quantization levels results in false contours in the image. Generating a colored image with a reduced number of quantization levels can be achieved by first representing the colors as 3-dimensional vectors, where the 3 values correspond to the Red, Green and Blue components. Second, vectors that are similar could be then considered to represent a single quantization level in the reduced quantization levels image. Similarity could be determined based on differences between the vectors in a difference range of +/- some constant value to be added or subtracted to the Red, Green and Blue components. Note: The run time differs according to the different numbers of colors. Also, by increasing the difference range to be added or subtracted, the run time also increases.

Primary LanguageJupyter Notebook

Stargazers