Question: 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
 Capture an image (input image) of any object or scene using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!