首页 > 代码库 > 相关性分析代码片段

相关性分析代码片段

ldcca_tms = img_To_4D_array(‘C:\Users\Administrator\Desktop\contrast\2014-05-20-17-10.img‘);spm_tms = img_To_4D_array(‘C:\Users\Administrator\Desktop\contrast\no_phycaa.img‘);% x = size(spm_tms,1);% y = size(spm_tms,2);% z = size(spm_tms,3);% % %spm_tms_1d = reshape(spm_tms ,[1,x*y*z] );% % % x = size(ldcca_tms,1);% y = size(ldcca_tms,2);% z = size(ldcca_tms,3);% % % ldcca_tms_1d = reshape( ldcca_tms , [1,x*y*z] );mask_ldcca_tms = ldcca_tms > 0;inv_mask_ldcca_tms = ~mask_ldcca_tms;mask_spm_tms = spm_tms > 0;inv_mask_spm_tms = ~mask_spm_tms;%% 先提取出被去噪去除的点的时间过程  实验结果,去除了435个点,% left_spm_tms = spm_tms(inv_mask_ldcca_tms);tmp_spm = spm_tms .* inv_mask_ldcca_tms;%>>这是最后的模板mask_big_left_spm_tms = tmp_spm>0;% big_left_spm_tms = left_spm_tms(left_spm_tms>0);% aa = size(big_left_spm_tms)%% 利用我们的去噪算法,得到的新的点,一个点都没有增加% left_ldcca_tms = ldcca_tms(ldcca_tms);tmp_ldcca = ldcca_tms .* inv_mask_spm_tms;%>>这是最后的模板mask_big_left_ldcca_tms = tmp_ldcca > 0;  tmp_ldcca_data = http://www.mamicode.com/tmp_ldcca>0;>