Added White Frame/Background when using imread()
Mostrar comentarios más antiguos
Hi,
when i do
image_og = imread('image.png');
image(image_og);
MATLAB always automaticallty adds a white frame for me. (The original graph does not have the white frame)
I don't see other people encountering this when they use imread(), so is there a way for me to remove the white frame?

2 comentarios
Adam Danz
el 26 de Jul. de 2019
Check that you're not setting the xlim() or ylim() or holding the axes prior to plotting the image. If so, remove those commands until after the image is plotted.
If none of those are happening, you can always set the axis limits to fit the image
xlim([100,800]) % or whatever your image requires
ylim([50, 600]) % ditto
Vanessa You
el 26 de Jul. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre GigE Vision Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!