Answered step by step
Verified Expert Solution
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started