Borrar filtros
Borrar filtros

Remove white border of a MATLAB figure

8 visualizaciones (últimos 30 días)
saima
saima el 3 de Mayo de 2013
Hello,
I want to use some MATLAB figures in a document. MATLAB figures always have a white border around them. Is it possible to crop that border from inside MATLAB?
-saima

Respuestas (1)

Image Analyst
Image Analyst el 3 de Mayo de 2013
You can use imcrop() if you have an image.
croppedImage = imcrop(fullImage, [x, y, width, height]);
You can also use indexing:
croppedImage = fullImage(row1:row2, col1:col2, :);
If it's a binary image, you can use imclearborder().

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by