Commit 5890696e authored by Shaima'a Ahmed Bassim Ali Doma's avatar Shaima'a Ahmed Bassim Ali Doma

Merge branch 'master' of git.rwth-aachen.de:ita/toolbox

added arg 'axes_handle' for itaHRTF.plot_ITD
parents 1598241b 92905277
......@@ -684,11 +684,7 @@ classdef itaHRTF < itaAudio
end
%HRTFout = this.direction(idxCoord);
end
function this = buildsearchdatabase(this)
this.dirCoord = this.dirCoord.build_search_database;
end
end
function obj = direction(this, idxCoord)
%return the HRTF (L&R) for a/multiple given direction indices
......
function [polar_DEG] = ita_elevation2polarDEG(ele_DEG)
%ELEVATION2POLAR Converts elevation angle to polar angle
% Elevation angle, where frontal direction is 0°, to polar angle, where
% above direction is 0°
polar_DEG=90-ele_DEG;
end
function [ele_DEG] = ita_polar2elevationDEG(polar_DEG)
%ELEVATION2POLAR Converts elevation angle to polar angle
% To Elevation angle, where frontal direction is 0°, from polar angle, where
% above direction is 0°
ele_DEG=90-polar_DEG;
end
......@@ -27,9 +27,6 @@ if exist('KNNSearch','file') == 3 && ~isempty(this.mPtrtree) % Only if external
[ind,dist] = KNNSearch(this.cart,coords.cart,this.mPtrtree,num);
else
%% Old one, using Matlab code
if ita_preferences('verboseMode') && size(this.cart,1) > 10
disp('findnearest@itaCoordinates: You can speed this up by calling ''build_search_database'' prior to the search')
end
for idinput = 1:size(coords.cart,1)
dists = sqrt(sum((this.cart-repmat(coords.cart(idinput,:),size(this.cart,1),1)).^2,2));
for idx = 1:num
......
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