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 grayscale
Modify the brightness of the input image by applying the following equation
where:
is the output gray level.
is the input gray level.
is a random value between and you generate using your university ID as a seed.
Calculate and print the value of the constant
Display the image before and after modifying the brightness in the same frame or window in grayscale. Label them as "Before" and "After" respectively.
Display the histograms of the images before and after modification, in the same manner as in task
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:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
