Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
4
Merge Requests
4
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
831855ef
Commit
831855ef
authored
Nov 17, 2017
by
Jan-Gerrit Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix spherical slice
use exact search in plot_freqSlice
parent
0f11afd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
+9
-8
No files found.
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
View file @
831855ef
...
@@ -710,6 +710,12 @@ classdef itaHRTF < itaAudio
...
@@ -710,6 +710,12 @@ classdef itaHRTF < itaAudio
if
~
exactSearch
if
~
exactSearch
phiU
=
rad2deg
(
this
.
phi_Unique
);
phiU
=
rad2deg
(
this
.
phi_Unique
);
thetaU
=
rad2deg
(
this
.
theta_Unique
);
thetaU
=
rad2deg
(
this
.
theta_Unique
);
switch
dirID
case
{
'phi_deg'
,
'p'
}
slice
=
this
.
findnearestHRTF
(
thetaU
,
dir_deg
);
case
{
'theta_deg'
,
't'
}
slice
=
this
.
findnearestHRTF
(
dir_deg
,
phiU
);
end
else
else
earCoords
=
this
.
getEar
(
'L'
)
.
channelCoordinates
;
earCoords
=
this
.
getEar
(
'L'
)
.
channelCoordinates
;
switch
dirID
switch
dirID
...
@@ -731,12 +737,7 @@ classdef itaHRTF < itaAudio
...
@@ -731,12 +737,7 @@ classdef itaHRTF < itaAudio
slice
=
this
.
findnearestHRTF
(
dir_deg
,
phiU
);
slice
=
this
.
findnearestHRTF
(
dir_deg
,
phiU
);
end
end
end
end
% switch dirID
% case {'phi_deg', 'p'}
% slice = this.findnearestHRTF(thetaU,dir_deg);
% case {'theta_deg', 't'}
% slice = this.findnearestHRTF(dir_deg,phiU);
% end
end
end
function
slice
=
ss
(
this
,
dirID
,
dir_deg
)
function
slice
=
ss
(
this
,
dirID
,
dir_deg
)
...
@@ -1318,10 +1319,10 @@ classdef itaHRTF < itaAudio
...
@@ -1318,10 +1319,10 @@ classdef itaHRTF < itaAudio
ita_verbose_info
(
' More than one elevation in this object!'
,
0
);
ita_verbose_info
(
' More than one elevation in this object!'
,
0
);
if
strcmp
(
sArgs
.
plane
,
'horizontal'
)
if
strcmp
(
sArgs
.
plane
,
'horizontal'
)
thetaC_deg
=
90
;
thetaC_deg
=
90
;
thisC
=
this
.
sphericalSlice
(
'theta_deg'
,
thetaC_deg
);
thisC
=
this
.
sphericalSlice
(
'theta_deg'
,
thetaC_deg
,
1
);
elseif
strcmp
(
sArgs
.
plane
,
'median'
)
elseif
strcmp
(
sArgs
.
plane
,
'median'
)
phiC_deg
=
0
;
phiC_deg
=
0
;
thisC
=
this
.
sphericalSlice
(
'phi_deg'
,
phiC_deg
);
thisC
=
this
.
sphericalSlice
(
'phi_deg'
,
phiC_deg
,
1
);
end
end
else
thisC
=
this
;
else
thisC
=
this
;
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment