The "brisque" function requires this built-in MAT file, and this error message indicates that the compiled application cannot find this file.
One possible way to work around this issue is to manually add the Image Processing Toolbox into the dependencies of your project:
- Open Application Compiler. To find this: On the MATLAB Apps tab, on the far right of the Apps section, click the arrow. In Application Deployment, click Application Compiler.
- In Files required for your application to run, manually add the folder <MATLAB ROOT>\toolbox\images\imdata into the list. You will also need to add any other files required for you application to run.
- Re-compile the application, and test if it executes without issue.
If this does not work, you could just ship the .mat file separately and install it in
Another similar workaround would be to copy defaultBRISQUEModel.mat from
C:\Program Files\MATLAB\R2021b\toolbox\images\imdata\defaultBRISQUEModel.mat to
C:\Program Files\MATLAB\R2021b\mcr\toolbox\images\imdata\defaultBRISQUEModel.mat. This process would have to be repeated on every client of the standalone application to the MATLAB runtime (mcr) they are using.