Commit e8697bba authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter
Browse files

changed ita_read to ita_read_ita for a speedup

parent e54d2870
...@@ -43,12 +43,12 @@ wb = itaWaitbar(numAzAngle, 'calculate HRTF', {'azimuth'}); ...@@ -43,12 +43,12 @@ wb = itaWaitbar(numAzAngle, 'calculate HRTF', {'azimuth'});
% reference % reference
% first determine how many channels the measurement has % first determine how many channels the measurement has
currentDataEnding = num2str(1); currentDataEnding = num2str(1);
currentData = ita_merge(ita_read([currentPath filesep currentDataEnding '.ita'])); currentData = ita_merge(ita_read_ita([currentPath filesep currentDataEnding '.ita']));
numChannels = currentData.nChannels; numChannels = currentData.nChannels;
%read the reference %read the reference
currentRefTmp = ita_read([path_ref filesep sArgs.ref_name '.ita']); currentRefTmp = ita_read_ita([path_ref filesep sArgs.ref_name '.ita']);
currentRef = merge(currentRefTmp(1:1:length(currentRefTmp))); currentRef = merge(currentRefTmp(1:1:length(currentRefTmp)));
if currentRef.nChannels == 2 if currentRef.nChannels == 2
...@@ -86,7 +86,7 @@ for iAz = 1:numAzAngle ...@@ -86,7 +86,7 @@ for iAz = 1:numAzAngle
currentDataEnding = num2str(iAz); currentDataEnding = num2str(iAz);
try try
currentData = ita_merge(ita_read([currentPath filesep currentDataEnding '.ita'])); currentData = ita_merge(ita_read_ita([currentPath filesep currentDataEnding '.ita']));
if sArgs.eimar if sArgs.eimar
phi = mod(2*pi-currentData.channelCoordinates.phi+deg2rad(sArgs.phiAdd) ,2*pi); phi = mod(2*pi-currentData.channelCoordinates.phi+deg2rad(sArgs.phiAdd) ,2*pi);
else phi = mod(currentData.channelCoordinates.phi+deg2rad(sArgs.phiAdd) ,2*pi); else phi = mod(currentData.channelCoordinates.phi+deg2rad(sArgs.phiAdd) ,2*pi);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment