How to create library of constants/matrices for Standalone Application

조회 수: 1 (최근 30일)
Hi, I have a large numbers of constants and matrices (i.e Flat field Noise patterns for image processing) that need to be stored effectively in an executable window app. Constants can be stored without problem however I don't know how to store these matrices as they are really big (3000 x 5000) and are usually worked out by my initial analysis from roughly 40 images. I cannot store all these images and process them whenever I need them. Also because of memory consideration so for one process action, I can only call/store no more than 3 of these matrices.
Thanks

채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 19일
We don't know.
You wrote "I cannot store all these images and process them whenever I need them.", but putting them in one or more .mat files would be storing them and processing them whenever you needed them. Or when you wrote that were you only referring to storing them in memory?
If you are permitted to use .mat files, then you could use one single .mat file and store each image as a uniquely-named variable in the .mat file. You could then load() the individual variable from the .mat file.
To incorporate a .mat file in to your MATLAB Compiler compiled executable, if you are using deploytool you can add it in through the menus; if you are not using deploytool then use the -a command-line option to name the .mat file as an additional resource to include in the bundle.
  댓글 수: 2
Vinh
Vinh 2011년 12월 20일
it worked though anyway. But one image pattern stored in .mat file gets up to 120mb so there are still memory limit.
Walter Roberson
Walter Roberson 2011년 12월 20일
If you make sure to clear the variables out of memory when you finish with them, then since you only have at most three images at a time in memory, you should not have any memory problems.

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

추가 답변 (1개)

Vinh
Vinh 2011년 12월 19일
Oh, a thought just passed throught my mind. Can I use .mat files?

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by