资源简介
SPAMS的原始代码,是稀疏表示的重要工具箱.
代码片段和文件信息
clear all;
get_architecture;
%%%%%%%%%%%%% COMPILER CONFIGURATION %%%%%%%%%%%%%%%%
% set up the compiler you want to use. Possible choices are
% - ‘mex‘ (default matlab compiler) this is the easy choice if your matlab
% is correctly configured. Note that this choice might not compatible
% with the option ‘use_multithread=true‘.
% - ‘icc‘ (intel compiler) usually produces the fastest code but the
% compiler is not free and not installed by default.
% - ‘gcc‘ (gnu compiler) good choice (for Mac use gcc >= 4.6 for
% the multi-threaded version otherwise set use_multithread=false).
% For windows you need to have cygwin installed.
% - ‘open64‘ (amd compiler) optimized for opteron cpus.
% - ‘vs‘ (visual studio compiler) for windows computers (10.0 or more is recommended)
% for some unknown reason the performance obtained with vs is poor compared to icc/gcc
compiler=‘mex‘;
%%%%%%%%%%%% BLAS/LAPACK CONFIGURATION %%%%%%%%%%%%%%
% set up the blas/lapack library you want to use. Possible choices are
% - builtin: blas/lapack shipped with Matlab
% same as mex: good choice if matlab is correctly configured.
% - mkl: (intel math kernel library) usually the fastest but not free.
% - acml: (AMD Core math library) optimized for opteron cpus
% - blas: (netlib at atlas version of blas/lapack) free
% ==> you can also tweak this script to include your favorite blas/lapack library
blas=‘builtin‘;
%%%%%%%%%%%% MULTITHREADING CONFIGURATION %%%%%%%%%%%%%%
% set true if you want to use multi-threaded capabilities of the toolbox. You
% need an appropriate compiler for that (intel compiler most recent gcc or visual studio pro)
use_multithread=true; % (might not compatible with compiler=mex)
% if the compilation fails on Mac try the single-threaded version.
% to run the toolbox on a cluster it can be a good idea to deactivate this
% if you use the options ‘mex‘ and ‘builtin‘ you can proceed with the compilation by
% typing ‘compile‘ in the matlab shell. Otherwise you need to set up a few path below.
%%%%%%%%%%%% PATH CONFIGURATION %%%%%%%%%%%%%%%%%%%%
% only if you do not use the options ‘mex‘ and ‘builtin‘
% set up the path to the compiler libraries that you intend to use below
if strcmp(compiler‘gcc‘)
if linux || mac
% example when compiler=‘gcc‘ for Linux/Mac: (path containing the files libgcc_s.*)
path_to_compiler_libraries=‘/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/‘;
path_to_compiler=‘/usr/bin/‘;
else
% example when compiler=‘gcc‘ for Windows+cygwin: (the script does not
% work at the moment in this configuration
path_to_compiler=‘C:\cygwin\bin\‘;
path_to_compiler_libraries=‘C:\cygwin\lib\gcc\i686-pc-cygwin\4.5.3\‘;
end
elseif strcmp(compiler‘open64‘)
% example when compiler=‘gcc‘ for Linux/Mac: (path containing libgcc_s.*)
path_to_compiler_libraries=‘/opt/amdsdk/v1.0/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 14947 2013-06-21 04:21 SPAMS-matlab-svn.rar\spams-matlab\compile.m
文件 35147 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\COPYING
文件 615 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\cpp_library\cppLasso.cpp
文件 747 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\cpp_library\Makefile
文件 6342 2012-05-20 13:47 SPAMS-matlab-svn.rar\spams-matlab\dags\dag.h
文件 2569 2012-05-20 13:47 SPAMS-matlab-svn.rar\spams-matlab\dags\mex\mexCountConnexComponents.cpp
文件 2243 2012-05-20 13:47 SPAMS-matlab-svn.rar\spams-matlab\dags\mex\mexCountPathsDAG.cpp
文件 2361 2012-05-20 13:47 SPAMS-matlab-svn.rar\spams-matlab\dags\mex\mexRemoveCyclesGraph.cpp
文件 4096 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\data\._boat.png
文件 4096 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\data\._lena.png
文件 177762 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\data\boat.png
文件 151199 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\data\lena.png
文件 84392 2013-06-21 04:21 SPAMS-matlab-svn.rar\spams-matlab\decomp\decomp.h
文件 3778 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexCD.cpp
文件 4340 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexL1L2BCD.cpp
文件 8526 2012-05-20 13:47 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexLasso.cpp
文件 3807 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexLassoMask.cpp
文件 3642 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexLassoWeighted.cpp
文件 4529 2012-05-20 13:47 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexOMP.cpp
文件 5054 2012-05-20 13:47 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexOMPMask.cpp
文件 4352 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexSOMP.cpp
文件 2734 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\decomp\mex\mexSparseProject.cpp
文件 27337 2012-05-27 03:49 SPAMS-matlab-svn.rar\spams-matlab\dictLearn\dicts.h
文件 7630 2013-06-21 04:21 SPAMS-matlab-svn.rar\spams-matlab\dictLearn\mex\mexTrainDL.cpp
文件 4210 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\dictLearn\mex\mexTrainDL_Memory.cpp
文件 1179 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\doc\doc_spams.blg
文件 5655 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\doc\doc_spams.haux
文件 6183 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\doc\doc_spams.hbbl
文件 5029 2012-03-15 00:29 SPAMS-matlab-svn.rar\spams-matlab\doc\doc_spams.htoc
文件 870908 2012-06-15 14:16 SPAMS-matlab-svn.rar\spams-matlab\doc\doc_spams.pdf
............此处省略146个文件信息
- 上一篇:LBP(局部二值模式)特征提取
- 下一篇:螺纹钢期货小波区间突破策略MATLAB代码
相关资源
- 螺纹钢期货小波区间突破策略MATLAB代
- 人工势场法进行机器人路径规划
- Crack dsp builder 11.1
- 《gps基本原理及其matlab仿真》程序源
- k-shell 根据k-shell算法
-
Matlab ba
sed DIC code Version 1 130814 - tofloat函数M文件
- local Maximum matlab函数
- matlab填充图像边界内部
- 小波变换的水下图像目标检测
- matlab 深度学习toolbox(Deep Learn Toolbo
- 基于多任务联合稀疏表示的的视觉分
- 边界的声波逆时偏移
- SPIN_Matlab
- 石墨烯结构编程图
- 计算聚类算法评价指标之一
- Color transfer between images 非常经典的彩
- 受限玻尔兹曼机matlab源代码
- matlab植物叶片分类
- OCR MATLAB OCR中英文段落的提取、分割
- ssim衡量两幅图像相似度的指标
- matlab的流体计算和传热
- Fuzzy Neural Network by matlab 四个不同的
- 手机拍摄图像的二维码的提取
- 利用四元数对彩色图像作图像处理
- LBP方法
- 织物疵点检测和识别系统
- SAO星表数据
- 粒子群算法路径规划动画演示
- 新型的配电网潮流计算的matlab源码
评论
共有 条评论