Cropping Watermarked image of 512 by % 512
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Foday Jorh
el 4 de En. de 2019
Comentada: Foday Jorh
el 5 de En. de 2019
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?
0 comentarios
Respuesta aceptada
Mark Sherstan
el 5 de En. de 2019
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.png');
[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)
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!