Embedding visible watermark in color document.

Balkar Singh · Feb 22, 2022 · 2K views
Question
I want to embed a visible watermark in a color document image in the blank space (black rectangle as shown in image) as shown in the attached image. I'll be very thankful to you.  
Expert Answer
Profile picture of Prashant Kumar
Prashant Kumar PhD Expert
Answered Aug 24, 2026

Alpha blending method is used to watermark an image here

 

Watermarked_Image = Original_Image *alpha + (1-alpha)*watermark
Where alpha is the transparency parameter.
 
The following code demostrates this,
 
watermark = imread('saturn.webp');
%Resize the watermark according to the area
modified = imresize(watermark,[64,64],'bilinear');
disp(size(modified));

original_image = imread('Marksheet1.webp');

temp = zeros(size(original_image),'uint8');
[rows, cols, depth] = size(modified);
%Co-ordinnates to place the watermark
X = 21;
Y = 441;
temp(X:X+rows-1,Y:Y+cols-1,:) = modified;
temp(301:364,101:164,:) = modified;
temp(301:364,401:464,:) = modified;

alpha = 0.8;
watermarked_image = alpha * original_image  + (1-alpha)*temp;
imshow(watermarked_image);

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!