Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Capture an image ( input image ) of any object or scene using your smartphone. Then, write a program to perform the following tasks: Read

Capture an image (input image) of any object or scene using your smartphone. Then, write a program to perform the following tasks:
Read the input image in gray-scale
Modify the brightness of the input image by applying the following equation
s=cr
where:
s is the output gray level.
r is the input gray level.
is a random value (between 0.04 and 25) you generate using your university ID as a seed.
Calculate and print the value of the constant c
Display the image before and after modifying the brightness in the same frame or window in gray-scale. Label them as "Before" and "After" respectively.
Display the histograms of the images before and after modification, in the same manner as in task 4.
Save both images using your ID in the filenames.
Please submit your source code along with a report in PDF format. The report should contain all the outputs of the tasks mentioned above and the code segments corresponding to each task. Adhere to the following regulations:
Each student must complete the assignment individually.
Only C, C++, or Python programming languages can be used, in conjunction with OpenCV.
Resources: OpenCV Documentation
Deadline: 05.11.2023
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions