0% found this document useful (0 votes)
8 views

CG Assignment 02

This document provides instructions for Assignment 02 in Computer Graphics, requiring students to submit handwritten answers. It includes 4 questions - the first asks students to analyze image properties like color depth and color shades from given image dimensions, the second asks them to construct a bitmap from given color codes, the third asks them to explore an online image pixelation tool and describe its features, and the fourth asks students to explain how dithering helps reduce color banding in images.

Uploaded by

M Fahad Imtiaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

CG Assignment 02

This document provides instructions for Assignment 02 in Computer Graphics, requiring students to submit handwritten answers. It includes 4 questions - the first asks students to analyze image properties like color depth and color shades from given image dimensions, the second asks them to construct a bitmap from given color codes, the third asks them to explore an online image pixelation tool and describe its features, and the fourth asks students to explain how dithering helps reduce color banding in images.

Uploaded by

M Fahad Imtiaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 02

Computer Graphics

Comsats University Islamabad, Vehari Campus

INSTRUCTIONS:

Please submit the assignment in hand-written form. Printed assignment will not be accepted.

Submit the assignment on Monday, 17th April.

Question # 01 [10]

You have been given an image with dimensions 480 x 360 pixels, using the RGB color model and a total
size of 4,147,200 bits. Calculate

1. The color depth of the image in bits per pixel.


2. Find the number of bits allocated for each color channel, including red, green, and blue.
3. Calculate the total number of color shades that can be displayed in the image.
4. After calculating the color depth of the image, explain the significance of color depth in digital
images and how it affects image quality.
5. Finally, give an example of a context in which a high color depth would be beneficial and
another context in which a lower color depth may be acceptable.

Question # 02 [03]

White 000
Black 001
Red 010
Purple 011
Light Green 100
Green 111

Using the above colour codes construct the bitmap of the following image.
Question # 03 [05]

Image pixelator is a free online tool that pixelate your image. Explore the tool and answer the following
set of questions:

1. The tool provides two types of pixilation based on the area of image. Mention both the
preferences.
2. The tool offers a few image pixelator options. State the purpose of the following options:
a. Pixelation Strength
b. Pixelation Rectangle Position
c. Pixelation Rectangle Size

Question # 04 [02]

Explain how dithering helps to reduce or eliminate color banding in images?

You might also like