Question
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?
Expert Answer
Neeta Dsouza
PhD Expert
Answered Nov 20, 2025
I am assuming you want to crop about the center of the image. Give this a try (you might want to adjust using round, floor, ceil, etc... depending on your data)
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)
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
Related watermarking Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →