croping of an image without imcrop
Afficher commentaires plus anciens
I am trying to crop an image using cordinate. I'm using the code given below.
I = imread('figure23.png');
I2 = imcrop(I,[185 49 535 534]);
figure, t=imshow(I2);
saveas(t,'E:\UB\MATLAB\X\1.png');
But while saving it, it gives me the crop image with a title "croped image" and gives white backgroud. how do i get the only croped part?
For the reference, I'm attaching the croped image using the above code.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Import, Export, and Conversion dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!