Write a MATLAB function script for the following: Read moon.tif: Filter and enhance it with a simple Laplacian. Show all images in a new figure and title them accordingly. Comment on the results. Simple Laplacian: Read contact_lens.tif: Detect edges (and defects) using the Sobel operators as given below. Show all images in a new figure and title them accordingly. Comment on the results. Sobel operators: Read skeleton_orig.tif: Enhance it by combining spatial enhancement methods.
Added by Juan Luis H.
Close
Step 1
Read `moon.tif` and apply a simple Laplacian filter to enhance the image. ```MATLAB % Read the image moon_img = imread('moon.tif'); % Apply Laplacian filter laplacian_filter = [0 1 0; 1 -4 1; 0 1 0]; filtered_moon_img = imfilter(moon_img, laplacian_filter, Show more…
Show all steps
Your feedback will help us improve your experience
Minh Le and 54 other Calculus 3 educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
In image processing, filtering an image is replacing each pixel with a linear combination of its neighbors. This process can be accomplished through convolution of the image with convolution filters called kernels. A mathematical model for the convolution process is: gx,y = ∑i=-n ∑j=-m hi,j * I(x-i, y-j) Explain in detail at least two applications of filtering in image processing. [10 marks] With the aid of a neat diagram, explain in detail the convolution process. [10 marks] Apply the convolution method to filter image I: I = 23 56 13 52 51 23 24 74 32 52 05 14 51 78 12 0 13 21 85 15 59 81 65 49 55 45 52 76 65 48 46 82 89 98 112 92 110 154 105 96 126 with kernel: h = 1 0 -1 0 0 0 -1 0 1 [25 marks] Validate your result using Matlab. [5 marks]
Sri K.
4 (25 points) Consider the following model for blurring images: Bij = 1/16 |i - j| = 2, 1/8 |i - j| = 1, 5/8 i = j, 0 otherwise. Additionally, assume the periodic boundaries of your image. Blur a matlab-provided demo image (e.g. mandrill.mat) applying the blurring iterations 16 times. Use GMRES algorithm to unblur the image. Use gmres matlab function. Restart the method every 60 iterations. Use the tolerance 10^-6. Plot the original image, the burred image, and the restored image side by side. Check whether the restored and the original image are the same (use matrix norms). If not, list (in the project's README file) possible reason(s) why they are different.
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
Watch the video solution with this free unlock.
EMAIL
PASSWORD