Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in matlab l. Write a program that takes 5 inputs, in the following order 1. A string that is the file location of an image,

image text in transcribedimage text in transcribed

in matlab

l. Write a program that takes 5 inputs, in the following order 1. A string that is the file location of an image, as in dogeBlankjpg' 2. A string that is the file location of a .csv file, as in "hiddenText.csv' 3. A string that is either red', 'green', or blue 4. A Boolean for taking the negative of the image 5. A Boolean for taking the negative of the hidden message Two images and two hidden messages are provided for you on Sakai. The first image and its corresponding hidden message look like this: Wow, MUCH TEXT SUCH PLACEMENT GREAT COLOR SO MATLAB Your program should do the following in a single function: a. Read in the image file and store the image in a variable. b. Read in the csv file and store the resulting matrix in a variable c. Convert the matrix from the csv file into a uint8. d. If the Boolean for taking the negative of the image is true, call the function from last week's recitation to take the negative of it, using this negative in place of the image from then on. e. If the Boolean for taking the negative of the message is true, call the function from last week's recitation to take the negative of it, using this negative in place of the hidden message from then on f Replace the given color in the image with the hidden message g. Return the resulting combination as an output. l. Write a program that takes 5 inputs, in the following order 1. A string that is the file location of an image, as in dogeBlankjpg' 2. A string that is the file location of a .csv file, as in "hiddenText.csv' 3. A string that is either red', 'green', or blue 4. A Boolean for taking the negative of the image 5. A Boolean for taking the negative of the hidden message Two images and two hidden messages are provided for you on Sakai. The first image and its corresponding hidden message look like this: Wow, MUCH TEXT SUCH PLACEMENT GREAT COLOR SO MATLAB Your program should do the following in a single function: a. Read in the image file and store the image in a variable. b. Read in the csv file and store the resulting matrix in a variable c. Convert the matrix from the csv file into a uint8. d. If the Boolean for taking the negative of the image is true, call the function from last week's recitation to take the negative of it, using this negative in place of the image from then on. e. If the Boolean for taking the negative of the message is true, call the function from last week's recitation to take the negative of it, using this negative in place of the hidden message from then on f Replace the given color in the image with the hidden message g. Return the resulting combination as an output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago