Question: Please write a Matlab function midterm that takes the following 4 parameters: imageFile1: the file name of the background image imageFile2: the file name of

 Please write a Matlab function midterm that takes the following 4

Please write a Matlab function midterm that takes the following 4 parameters: imageFile1: the file name of the background image imageFile2: the file name of the foreground image scale: the scale that the foreground image is resized to. If scale is between 0 and 1.0, the foreground is smaller than imageFile2. If scale is greater than 1.0, the foreground is larger than imageFile2. You can use Matlab function imresize to do the job. margin: the size of a white margin surrounding the foreground image, measured in the number of pixels For example, command midterm('blue-lake.jpg', 'portrait.jpg', 2, 50) should display the following image: The foreground image MUST BE at the center of the background image, surrounded by a white margin. Deliverable: midterm.m Please write a Matlab function midterm that takes the following 4 parameters: imageFile1: the file name of the background image imageFile2: the file name of the foreground image scale: the scale that the foreground image is resized to. If scale is between 0 and 1.0, the foreground is smaller than imageFile2. If scale is greater than 1.0, the foreground is larger than imageFile2. You can use Matlab function imresize to do the job. margin: the size of a white margin surrounding the foreground image, measured in the number of pixels For example, command midterm('blue-lake.jpg', 'portrait.jpg', 2, 50) should display the following image: The foreground image MUST BE at the center of the background image, surrounded by a white margin. Deliverable: midterm.m

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!