Task 1: Create an m-file that do the following: 1. Create an image of size 100 x 100 that contains your name in paint program and save it as 'watermark.png'. Figure 1 X Eile Edit Viev Inser Tool Desktc Windo Help C 2. Read 'watermark.png' image in Matlab and display it. 3. Convert 'watermark.png' image into binary using function im2bw. 4. Read a 'cameraman.tif' image. 5. Huda Save the binary image into the Least Significant bit (LSB) of cameraman image randomly using the randi function as the following example: randi(M) that return one value from 1 to M. Store the modified image in a new image. Old version of matlab: ceil(rand*256); 6. Save the binary image into the Most Significant bit (MSB) of img randomly using the randi function. 7. Display the original image with the two watermarked images. Task 2: 1. Read the 'watermark.png' image created in Task 1 that has your name. 2. Create OR and AND masks image (type : uint8) that have the same size of watermark.png'. 3. Use [x,y] ginput(2) to get the coordinate of any character from your name using the mouse cursor. 1. Fill the masks with the appropriate values to display the chosen character in the previous step. 2. Apply AND and OR operations between the original image and the mask.

Oh no! Our experts couldn't answer your question.

Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.

Submit your question and receive a step-by-step explanation from our experts in as fast as 30 minutes.
You have no more questions left.
Message from our expert:
Our experts need more information to provide you with a solution. Please provide missing image. Please resubmit your question, making sure it's detailed and complete. We've credited a question to your account.
Your Question:

Please solve task 2 just

 

 

Task 1: Create an m-file that do the following:
1. Create an image of size 100 x 100 that contains your name in paint program and save it as
'watermark.png'.
Figure 1
X
Eile Edit Viev Inser Tool Desktc Windo Help
C
2. Read 'watermark.png' image in Matlab and display it.
3. Convert 'watermark.png' image into binary using function im2bw.
4. Read a 'cameraman.tif' image.
5.
Huda
Save the binary image into the Least Significant bit (LSB) of cameraman image randomly
using the randi function as the following example:
randi(M) that return one value from 1 to M.
Store the modified image in a new image.
Old version of matlab: ceil(rand*256);
6. Save the binary image into the Most Significant bit (MSB) of img randomly using the randi
function.
7. Display the original image with the two watermarked images.
Task 2:
1. Read the 'watermark.png' image created in Task 1 that has your name.
2. Create OR and AND masks image (type : uint8) that have the same size of watermark.png'.
3. Use [x,y] ginput(2) to get the coordinate of any character from your name using the mouse
cursor.
1. Fill the masks with the appropriate values to display the chosen character in the previous
step.
2. Apply AND and OR operations between the original image and the mask.
Transcribed Image Text:Task 1: Create an m-file that do the following: 1. Create an image of size 100 x 100 that contains your name in paint program and save it as 'watermark.png'. Figure 1 X Eile Edit Viev Inser Tool Desktc Windo Help C 2. Read 'watermark.png' image in Matlab and display it. 3. Convert 'watermark.png' image into binary using function im2bw. 4. Read a 'cameraman.tif' image. 5. Huda Save the binary image into the Least Significant bit (LSB) of cameraman image randomly using the randi function as the following example: randi(M) that return one value from 1 to M. Store the modified image in a new image. Old version of matlab: ceil(rand*256); 6. Save the binary image into the Most Significant bit (MSB) of img randomly using the randi function. 7. Display the original image with the two watermarked images. Task 2: 1. Read the 'watermark.png' image created in Task 1 that has your name. 2. Create OR and AND masks image (type : uint8) that have the same size of watermark.png'. 3. Use [x,y] ginput(2) to get the coordinate of any character from your name using the mouse cursor. 1. Fill the masks with the appropriate values to display the chosen character in the previous step. 2. Apply AND and OR operations between the original image and the mask.
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT