Question: Write a function that takes 3 parameters: image, direction angle(a) value, and threshold value. Output is image with black and white only, with the pixels

Write a function that takes 3 parameters: image, direction angle(a) value, and threshold value.

Output is image with black and white only, with the pixels whose gradient direction is in the interval (a-10, a+10) and whose gradient magnitude is > threshold.

Note : Implement image gradient in Python/OpenCV. You should include a gradient magnitude function and a gradient direction function with the following prototypes: Deliverables: Python code gradient.py a thresholded gradient magnitude image (w the associated function call) a thresholded gradient direction image (and the associated function call), both using your favourite image (

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!