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
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