Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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