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 Dis Huda 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. 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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
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.
Expert Solution
steps

Step by step

Solved in 5 steps with 6 images

Blurred answer
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education