Saving/loading large images fast

조회 수: 6 (최근 30일)
Mateus Banroc
Mateus Banroc 2019년 12월 19일
댓글: Mateus Banroc 2019년 12월 19일
Hi everyone,
I'm working with large images (between 50MB and 100MB). When I save the figure obj using save in .mat format, MATLAB returns a warning "saving handle figures in .mat can create very large files. Try use savefig". So I tryed to use savefig and the .fig file was larger than the .mat file. Is there a method to save/load these figures in a faster way?

채택된 답변

Rik
Rik 2019년 12월 19일
I think it would be faster to load the data and recreate the figure. In general savefig only makes sense if you have a large number of objects with non-default parameters.
Also, it is only a warning. Warnings should make you think hard about your approach. If then the conclusion is that you are using the best approach, you can either ignore the warning, or suppress it.
  댓글 수: 1
Mateus Banroc
Mateus Banroc 2019년 12월 19일
Actually, I'm building an app and the figure has some uicontrol buttons and non-default parameters, so I think I need to save this parameters some how, maybe in a function that can set these parameters. In this case I could load the data and recreate the figure. Thanks Rik.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by