Average of A and B is A/2+B/2 Average of A, B, (Note: You can calculate the average in a loop. (Note: Convert image data from uint8 to double before applying any arithmetic operations.) Repeat the experiment using 10 and 20 noisy images and observe the results. Take the average of these four, and check if averaging reduced the Generate four new images with salt-and-pepper noiseĪdded to the original image. % Exercise 12 (Noise reduction using averaging) Display the original and the new image side by side. % Exercise 11 (RGB channels in a color image) (Note: you can make the 100x100 mask atĪny location of your choice, near the center). Original image, the mask, and the result side by side. Multiply this mask with the original image. Rectangular section of 100x100 pixels approximately near the center has all values equal to one,Īnd all other pixels have zero value. Generate a new image of the same size in which a % Exercise 10 (Multiplication for masking) Show the results and the original side by side. Repeat Ex2 using nearest neighbor, bilinear interpolation, and bicubic interpolation methods. % Exercise 9 (Spatial resolution and interpolation methods)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |