Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago