Remove white border of a MATLAB figure
7 次查看(过去 30 天)
显示 更早的评论
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
回答(1 个)
Image Analyst
2013-5-3
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().
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!