I was running these codes on Windows platform and had recompiled the SARD_c.c into .mexw64 format. However, it still went wrong when using inter_layer function...... Here shows the error message:
Error using inter_layer
Requested 356482285639x150x246656821888772 (17179869184.0GB) array exceeds maximum array size preference. Creation of arrays greater than this
limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.
Error in comp_res (line 75)
[tmp_pair]=inter_layer(dflt_ht(l),dflt_ht(l+1),tmp7,d_inter_mn(l,:),d_inter_std(l,:),thk(l),thk(l+1),w2b(l),d_inter_min(l,:),d_inter_max(l,:));
Error in main_script (line 18)
res=comp_res(img,w);
I was running these codes on Windows platform and had recompiled the SARD_c.c into .mexw64 format. However, it still went wrong when using inter_layer function...... Here shows the error message:
Error using inter_layer Requested 356482285639x150x246656821888772 (17179869184.0GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.
Error in comp_res (line 75) [tmp_pair]=inter_layer(dflt_ht(l),dflt_ht(l+1),tmp7,d_inter_mn(l,:),d_inter_std(l,:),thk(l),thk(l+1),w2b(l),d_inter_min(l,:),d_inter_max(l,:));
Error in main_script (line 18) res=comp_res(img,w);