Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solve it using PYTHON please, Task 2 (75 points): Image filtering and edges detection 1. Read the original image catLena.jpg into variable 'OrigCLena'; display the
Solve it using PYTHON please,
Task 2 (75 points): Image filtering and edges detection 1. Read the original image catLena.jpg into variable 'OrigCLena'; display the original image 2. (5 points) Create a box filter B3 of size 3 x 3 3. (10 points) Create the blurred image 'B3CLena' (i.e. filter-convolve 'OrigCLena' with 'B3') and display it nearby 'OrigCLena' 4. Increase the size of mask B3 to 5 x 5; let us call this new mask B5 5. (10 points) Create the blurred image 'B5Lena' (i.e. filter-convolve 'OrigClena' with 'B5') and display it nearby 'OrigCLena' and 'B5CLena'. 6. Create the Laplacian 2D derivative Edge Detection (ED) mask of size 3 3: ED3=[0 1 0; 1 -4 1; 010] 7. (10 points) Create and display 'ED3CLena'. Give the title 'Edges in catLena with ED3 8. Create the 1-st derivative Roberts edge detection masks: R_x=[1 0; 0-1) and R_y=[0 -1; 1 0] 9. (5 points) Applying R_x to the blurred image 'B3Lena'; give the title 'Vertical edges in catLena with Roberts mask' 10. (5 points) Applying R_y to the blurred image 'B3Lena'; give the title 'Horizontal edges in catLena with Roberts mask' 11. (10 points) Create the gradient image 12. Create the Sobel edge detection masks. Note that inside the Sobel masks there is already the smoothing kernel, therefore it must be applied directly to the original image 13. (5 points) Create and show horizontal and vertical edges in catLena with Sobel mask 14. (5 points) Create and show 'The Sobel operator applied to catLena' 15. Create the Prewitt edge detection masks 16. (5 points) Create and show horizontal and vertical edges in catLena with Prewitt mask 17. (5 points) Create and show 'The Prewitt operator applied to catLena
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