Hello Team, I working Watermarking Scheme. I have achived the watermarked image already. I want to crop the watermarked image of 512* 512 to 25%? How can do it using imcrop or any other method in MATLab?
Neeta Dsouza answered .
2025-11-20
I = imread('Test.webp');
[rows cols dim] = size(I);
BB = [round(cols*0.375) round(rows*0.375) round(cols*0.25) round(rows*0.25)];
J = imcrop(I,BB);
subplot(1,2,1); imshow(I)
subplot(1,2,2); imshow(J)