Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solve using matlab 4. Create a 200x200 matrix of random integers in the range [0, 64]. Display the image/matrix with image(). Write a function to
Solve using matlab
4. Create a 200x200 matrix of random integers in the range [0, 64]. Display the image/matrix with image(). Write a function to take the image and contrast stretch the image from [0,255]. Display the new image with image() Display both images with the 256-element gray colormap. 5. Form the histograms of the two images created in Problem #4. Display them on the same graph. Use the function, n, v hist(x, 65) 6. Open the standard image, 'cameraman.tif' with the imread() function. Brighten the image by a factor of 2 display the image with a 256-element gray colormap. Darken the image by a factor of 2 and display the image with the same 256-element gray colormap. You may have to ensure that all output values lie in the [0,255]. 7. Form the histograms of the two images created in Problem #6. Display them on 8. Again, open the standard image, 'cameraman.tif'. Write a function using 9. Again, open the standard image, 'cameraman.tif'. Write a function using 10,1] and after it is processed scale back to [0,255] and the same graph. Again, use the function, [n,v] -hist (x,200). for-loops to create the negative of the image. Display both images. for-loops to create a gamma corrected image. Use a gamma value of 1.5. Display both the original and corrected image. You will have to make the image round to the nearest integer. 10,Form the histograms of the two images created in Problem #9. Display them on the same graph. Use the function, [n, v] hist (x, 200). 11.Create a 20-element long vector of random integers from 1-100. Write your own sorting routine to sort the values from largest to smallest. Verify your routine by sorting the vector with Matlab's sort (x) routine and taking the difference and summing the error vector (i.e., sum(error))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