[go: up one dir, main page]

0% found this document useful (0 votes)
52 views2 pages

Digital Image Processing Midterm Assessment 2

Uploaded by

rukmaldmt
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)
52 views2 pages

Digital Image Processing Midterm Assessment 2

Uploaded by

rukmaldmt
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

Digital Image Processing Midterm Assessment

HDSE 23.1 KU -F
Assessment 02
Date: 25/03/2024

Instructions:
• You may use ChatGPT and the internet for assistance.
• Answer all questions directly in colab notebook.
• For coding questions, write your code in the provided code cells.
• Comment on your code adequately to explain the logic behind your implementation.
• Make sure to run your code cells to show the output.
• Complete both Part A and Part B in the notebook.
• Save this notebook with your answers and code and submit it as per the instructions.

Part A: Theoretical Concepts (40%)

1. Image Acquisition (10%)


• Briefly describe the image acquisition process in digital cameras. How do CCD and CMOS
sensors differ in capturing images?

2. Basic Image Manipulation and Transformation (10%)


• Define image manipulation and provide an example. Discuss the significance of affine
transformations in image processing.

3. Histogram Operations (10%)


• Explain what an image histogram represents and how histogram equalization can improve image
contrast.

4. Image Compression (10%)


• Compare and contrast lossy and lossless image compression. Name one image file format for
each type and explain the contexts in which they are typically used.
Part B: Practical Exercises (Python Coding) (60%)

1. Image Acquisition with Python (15%)


a. Write a Python script using OpenCV to capture an image from a webcam and save it as
"captured_image.jpg" on your computer.
b. Write Python script using OpenCV to import, and image form your local hard disk.

2. Basic Image Manipulation (15%)


Using Python, load any image of your choice and perform the following operations:
a. Convert the image to grayscale.
b. Resize the image to half its original dimensions.
c. Crop the image to extract the region of your face (800*800)

3. Histogram Operations and Equalization (15%)


a. Generate and display the histogram of the grayscale image from the previous exercise.
b. Perform histogram stretching on the original image.
c. Apply histogram equalization to the grayscale image and display the result.

4. Image Compression Exploration (15%)


a. Use Python to:
i. Compress the original image using a lossy format (JPEG) with a quality level of your
choosing.
ii. Compress the same image using a lossless format (PNG).
iii. Compare the file sizes and briefly discuss the observed differences.

Submission:
• Once you have completed the assessment, save your Jupyter notebook with a filename that includes your
name and date.
• Ensure that all code cells have been executed and the outputs are visible.
• Submit the notebook file as per the instructions provided by the course administrator.

You might also like