How to remove white border from image?
Afficher commentaires plus anciens
% This draws a small transparent white square in upper left hand side of the group image.
% How do I remove white border of the gcf, and preserve original dimensions of E at 72ppi in saved file?
% BORDER TIGHT seems to have no effect.
clear all
E = imread('visionteam.jpg');
hold on
h1 = imshow(E,'Border','tight')
I = 255 - uint8(zeros(100, 100, 3));
h2 = imshow(I,'Border','tight')
set(h2, 'AlphaData', .35)
hold off
print(gcf,'im','-dtiff','-r72');

Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Processing and Computer Vision dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
