Question: 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,

Solve it using PYTHON please, Task 2 (75 points): Image filtering andedges detection 1. Read the original image catLena.jpg into variable 'OrigCLena'; display

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

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!