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

📄 conv_clips2datasets.m

📁 cuboid democuboid democuboid democuboid demo
💻 M
字号:
% Converts between representations of behavior (mat -> DATASETS).%% See RECOGNITION_DEMO for general info.%   [datadir(set_ind)/namei.mat] --> DATASETS%% INPUTS%   nsets       - number of sets%   cliptypes       - types of clips (cell of strings)%% OUTPUTS%   DATASETS    - array of structs, will have fields:%           .IS         - the N behavior clips %           .IDX        - length N vector of clip types%% See also RECOGNITION_DEMO, CONV_DATASETS2CLIPSfunction DATASETS = conv_clips2datasets( nsets, cliptypes )    matcontents = {'I','clipname'};    for s=0:(nsets-1)        srcdir = datadir(s);        X = feval_mats( @clips2datasets1, matcontents, {}, srcdir, 'clip' );        clipnames = {X.clipname};        IS = cell2array( {X.I} );        [disc, IDX] = ismember(clipnames, cliptypes);        IDX = uint8(IDX)';        DATASETS(s+1).IS = IS;        DATASETS(s+1).IDX = IDX;    end;function x = clips2datasets1( vals, params )     [I,clipname] = deal( vals{:} );    x.clipname = clipname(1:end-3);    x.I = I;        

⌨️ 快捷键说明

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