Question: Function Name: beMemeValentine Inputs: ( char ) The filename of the main image, including the file extension ( char ) The filename of the background

Function Name: beMemeValentine

Inputs:

( char ) The filename of the main image, including the file extension

( char ) The filename of the background image, including the file extension

Outputs:

None

File Outputs:

1. The edited image

Background:

Valentines Day is right around the corner, and you realize you dont 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. Hints:

The imresize() function will be useful.

Try putting two names as the third and fourth inputs in the solution function! (You dont

need to implement this part into your function.)

Please explain as detail as possible. I am a trying to understand the concept.

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!