Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use mathlab Homework 5-Arrays and Images Function Name: beMemeValentine Inputs: 1. (char) The filename of the main image, including the file extension 2. (char) The
use mathlab
Homework 5-Arrays and Images Function Name: beMemeValentine Inputs: 1. (char) The filename of the main image, including the file extension 2. (char) The filename of the background image, including the file extension Outputs: None File Outputs 1. The edited image Background: Valentine's Day is right around the corner, and you realize you don't have anything for the cutie in your 1371 recitation! Good thing you have MATLAB to confess your love in the best form - memes. Function Description: Write a function that replaces the background color of the main image with the corresponding pixels in the background image. Resize the background image to the size of the main image. To find the background color of the main image, find the RGB values of the top left pixel. The name of the output image should be the original name of the main image before the file extensions with Meme.png' appended. Notes: . Resize the images before masking . The input filenames will always have the extension.png The solution function will output a file with the original name, minus the file extension, with 'Meme_soln.png' appended. The imresize() function will be useful. Try putting two names as the third and fourth inputs in the solution function! (You don't need to implement this part into your function.) Homework 5-Arrays and Images Function Name: beMemeValentine Inputs: 1. (char) The filename of the main image, including the file extension 2. (char) The filename of the background image, including the file extension Outputs: None File Outputs 1. The edited image Background: Valentine's Day is right around the corner, and you realize you don't have anything for the cutie in your 1371 recitation! Good thing you have MATLAB to confess your love in the best form - memes. Function Description: Write a function that replaces the background color of the main image with the corresponding pixels in the background image. Resize the background image to the size of the main image. To find the background color of the main image, find the RGB values of the top left pixel. The name of the output image should be the original name of the main image before the file extensions with Meme.png' appended. Notes: . Resize the images before masking . The input filenames will always have the extension.png The solution function will output a file with the original name, minus the file extension, with 'Meme_soln.png' appended. The imresize() function will be useful. Try putting two names as the third and fourth inputs in the solution function! (You don't need to implement this part into your function.)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