Loading scripts/binauralRenderer_interface/matlab_hrir_generation_scripts/hrtf_library_loader.m +0 −38 Original line number Diff line number Diff line Loading @@ -382,44 +382,6 @@ classdef hrtf_library_loader < handle methods(Static=true) function mat = convert_numpy_2darray(np_array) py_list = np_array.tolist(); % List to cell matCell = cell(py_list)'; shape = cell(np_array.shape); shape_mat = zeros(1, length(shape)); for i=1:length(shape) shape_mat(i) = double(shape{i}); end mat = zeros(shape_mat); for i = 1:length(matCell) if isa(matCell{i}, 'py.list') mat(i,:) = cell2mat(cell(matCell{i})); end end end function mat = convert_numpy_3darray(np_array) py_list = np_array.tolist(); % List to cell matCell = cell(py_list)'; shape = cell(np_array.shape); shape_mat = zeros(1, length(shape)); for i=1:length(shape) shape_mat(i) = double(shape{i}); end mat = zeros(shape_mat); for i = 1:length(matCell) if isa(matCell{i}, 'py.list') for j = 1:length(matCell{i}) if isa(matCell{i}, 'py.list') mat(i,j,:) = cell2mat(cell(matCell{i}{j})); end end end end end function [Band2FR,FCs]=MakeBand2FR(FFTLen,FSample) % Compute the standard band filters for freq domain representations % Loading Loading
scripts/binauralRenderer_interface/matlab_hrir_generation_scripts/hrtf_library_loader.m +0 −38 Original line number Diff line number Diff line Loading @@ -382,44 +382,6 @@ classdef hrtf_library_loader < handle methods(Static=true) function mat = convert_numpy_2darray(np_array) py_list = np_array.tolist(); % List to cell matCell = cell(py_list)'; shape = cell(np_array.shape); shape_mat = zeros(1, length(shape)); for i=1:length(shape) shape_mat(i) = double(shape{i}); end mat = zeros(shape_mat); for i = 1:length(matCell) if isa(matCell{i}, 'py.list') mat(i,:) = cell2mat(cell(matCell{i})); end end end function mat = convert_numpy_3darray(np_array) py_list = np_array.tolist(); % List to cell matCell = cell(py_list)'; shape = cell(np_array.shape); shape_mat = zeros(1, length(shape)); for i=1:length(shape) shape_mat(i) = double(shape{i}); end mat = zeros(shape_mat); for i = 1:length(matCell) if isa(matCell{i}, 'py.list') for j = 1:length(matCell{i}) if isa(matCell{i}, 'py.list') mat(i,j,:) = cell2mat(cell(matCell{i}{j})); end end end end end function [Band2FR,FCs]=MakeBand2FR(FFTLen,FSample) % Compute the standard band filters for freq domain representations % Loading