Assignment 2
Assignment 2
1. Create an image of size 100 × 100 that contains your name in paint program and save it as
‘watermark.png’.
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.