Question: Write a Matlab function that takes gray image matrix F and 2 integer numbers R and C . The function will return an image matrix
Write a Matlab function that takes gray image matrix F and integer numbers R and
C The function will return an image matrix after deleting R rows and C columns randomly from
the image. This function Should perform it operations using loops. You cannot use any of the
predefined functions in Matlab for image resizing or cropping. The function should perform all
required error checking. For this question, you need to generate unique random numbers
because you cannot delete the same row times. Rand and randn may give repeated randome
numbers. use p randpermnk to return a row vector containing k unique integers selected
randomly from to n inclusive.
Points Write a Matlab function that asksthe user to input an image name, integer numbers,
and an output image name. The function reads the image with the input image name using imread
and make sure that the image is loaded. The function then calls the function defined in the
previous question to perform the required image operation. Then, if the operation was successful,
the function saves the modified image to a file named as the output image name using imwrite.
Points Rewrite Question using victor matrix operations to perform the needed
operations.
Points Write a matlab script that runs the functions from questions and for times each
on the rose image, RC and measure the execution time of each run. Record
the execution time of each run in the following table and then calculate the average of the
runs.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
