Question

Problems. Grayscale images are composed of a 2D matrix of light intensities from O (Black) to 255 (White). In this lab you wi
3. Using the following lines of code create a distorted version of IMG. (you can play with the value of p for yourself to get
Noisy Image Original Image repaired Image 7. We want to take a closer look to be certain. From the portrait of Marie Curie, m
media%2F143%2F143ebff8-6e66-4481-8f63-bb
the picture above is the one you are supposed to use for the MATlab code please help
0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB CODE :

2)

IMG = imread('solvay_conference.png');

figure;

imshow(IMG);

threshold = 133;

image = IMG;

for i = 1:size(image,1)

for j = 1:size(image,2)

if image(i,j) < threshold

image(i,j) = 0;

else

image(i,j) = 255;

end

end

end

figure;

imshow(image);

Add a comment
Know the answer?
Add Answer to:
the picture above is the one you are supposed to use for the MATlab code please...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • matlab code needed » Take any random image and read it in Matiab using mread command....

    matlab code needed » Take any random image and read it in Matiab using mread command. The image should be 2D that is the Matrix obtained after imread should be of order mxn This will be your xit). Then create a mask (filter), using fspecial command. Use your Matlab hetp to learn uce of fspecial. > > (Hint: you haye to use h fspecial (average, hsize)) - Then use com2 to perforh convolution of x with h. » Then use...

  • use MATLAB to upload the following: an image that you want to process (can be taken...

    use MATLAB to upload the following: an image that you want to process (can be taken yourself or downloaded from the internet) a script that processes the image in TWO ways. manipulates the colors averages pixels together Please make sure the script displays the images (like how I did with the 40 and 80 pixel averaging) so I can easily compare them to the original. Make sure to COMMENT your code as well. Homework 13 Please upload the following: an...

  • Task 2: (2 Marks) Noisy Image Restoration You have been provided with seven images named IMG-5698. JPG to IMG-5704. JPG...

    Task 2: (2 Marks) Noisy Image Restoration You have been provided with seven images named IMG-5698. JPG to IMG-5704. JPG. These images were taken in low light conditions with a very high ISO setting which results in "noise" on the image (random fluctuations in pixel intensity) and "bright pixels" (pixels which appear bright in every image, despite not being hit by light) In addition to the seven source images you are also provided with a "dark frame", dark.png. This is...

  • When images are scaled or resized, the values between pixels need to be guessed/interpolated in o...

    Whats wrong with my code? Please use MATLAB and can you answer the questions too. When images are scaled or resized, the values between pixels need to be guessed/interpolated in order to fill in the missing gaps. Write a function that takes a grayscale image (pick your own image) and a scaling factor (any positive decimal value) as input and resizes the image using the following methods; a) Nearest neighbouring pixel b) Linear interpolation (in x-direction first, then y-direction) c)...

  • We are supposed to make the matlab code below work to recolor the image to maize...

    We are supposed to make the matlab code below work to recolor the image to maize and blue lab3_1recolor.m: function [ outputImg ] = lab31recolor(hsvImg) % This function takes an hsv image. % An image is composed of 3 matrices (hue, saturation, and value). % This function fixes the colors of the OSU algorithm. % The corrected image is assigned into outputImg. % Obtains the hue and saturation layers from the matrix % An image has 3D dimensions, which is...

  • from PIL import Image import random # NOTE: Feel free to add in any constant values...

    from PIL import Image import random # NOTE: Feel free to add in any constant values you find useful to use BLACK = (0, 0, 0) WHITE = (255, 255, 255) # NOTE: Feel free to add in any helper functions to organize your code but # do NOT rename any existing functions (or else, autograder # won't be able to find them!!) # NOTE: The following function is already completed for you as an example # You can use...

  • MATLAB ONLY gauss.jpg BELOW Instructions: The following problems can be done interactively or by writing the...

    MATLAB ONLY gauss.jpg BELOW Instructions: The following problems can be done interactively or by writing the commands iın an M-file (or by a combination of the two). In either case, record all MATLAB input commands and output in a text document and edit it according to the instructions of LAB 1 and LAB 2. For problem 2, include a picture of the rank-1 approximation. For problem 3, include a picture of the rank-10 approximation and for problem 4, include a...

  • Please solve problem 4 and 5 using matlab and include the screenshot of the result ,...

    Please solve problem 4 and 5 using matlab and include the screenshot of the result , thank you Homework #8 Applied Programming, ENGR 10573 Spring 2018 Due Monday, Apr. 2 uploaded through TCU Online by 11:59 PM. Upload one script or function, named studentlastn ame-homework 8 ) n a single m- file that runs each problem. The homework problems should run sequentially showing I figure and or plots along with the proof that each problem works correctly. The single m-file...

  • The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have...

    The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have been placed above a conveyer belt to enables parts on the belt to be photographed and analyzed. You are to augment the system that has been put in place by writing C code to detect the number of parts on the belt, and the positions of each object. The process by which you will do this is called Connected Component Labeling (CCL). These positions...

  • Java Thank you!! In this assignment you will be developing an image manipulation program. The remaining...

    Java Thank you!! In this assignment you will be developing an image manipulation program. The remaining laboratory assignments will build on this one, allowing you to improve your initial submission based on feedback from your instructor. The program itself will be capable of reading and writing multiple image formats including jpg, png, tiff, and a custom format: msoe files. The program will also be able to apply simple transformations to the image like: Converting the image to grayscale . Producing...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT