⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compile_mex.m

📁 This document is intended to serve as an introduction to Wavelet processing through a set of Matlab
💻 M
字号:
clear all;

rep = 'jp2k/src/';
strbase = 'mex ';
if ispc
    % windows special definitions
    strbase = [strbase ' -Dcompil_vcc -DWIN32 '];
end

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Compile jp2_class
files = {'jp2_codec.c' 'bio.c' 'dwt.c' 'j2k.c' 'mct.c' 'pi.c' 't2.c' 'tgt.c' ...
            'cio.c' 'fix.c' 'int.c' 'mqc.c' 't1.c' ...
            'tcd.c' 'image_jp2.c' 'liw_jp2_dll.c' 'liw_error.c'};
str = [strbase '-output jp2_class '];
for i=1:length(files)
    str = [str rep files{i} ' '];
end
eval(str);
    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Compile jp2_class
files = {'jp2_codec.c' 'bio.c' 'dwt.c' 'j2k.c' 'mct.c' 'pi.c' 't2.c' ...
            'tgt.c' 'cio.c' 'fix.c' 'int.c' 'mqc.c' 't1.c' 'tcd.c' ...
            'image_jp2.c' 'liw_jp2_dll.c' 'liw_error.c'};
str = [strbase ' -DENCODE_ONLY -output jp2_codec_encod '];
for i=1:length(files) 
    str = [str rep files{i} ' '];
end
eval(str);


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% compile mex files for arithmetic coding
mex mex/perform_arithmetic_coding_mex.cpp mex/ac.cpp
% mex mex/perform_arithmetic_coding_escape.cpp mex/coder/Arith.cpp mex/coder/BitIO.cpp mex/coder/IntCoding.cpp mex/coder/coder.cpp mex/coder/entropy.cpp mex/coder/global.cpp mex/coder/iHisto.cpp
% mex mex/perform_arithmetic_coding_fixed.cpp mex/nr/arcmak.cpp mex/nr/arcode.cpp mex/nr/arcsum.cpp mex/nr/nrutil.cpp
% mex mex/perform_adaptive_filtering.cpp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -