View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
3-D HRTF interpolation

Be the first to rate this file! 27 Downloads (last 30 days) File Size: 6.15 KB File ID: #43809 Version: 1.5
image thumbnail

3-D HRTF interpolation



07 Oct 2013 (Updated )

Head-related transfer function (HRTF) interpolation in azimuth, elevation, and distance

| Watch this File

File Information

Matlab demonstration of an algorithm for interpolating distance-dependent (near-field) head-related transfer functions (HRTFs).
The interpolation is performed using barycentric weights of 4 HRTF measurements forming a tetrahedron that encloses the desired source position.
The main steps of the interpolation algorithm are:
1) Initialisation: organise HRTF measurement positions in tetrahedral mesh via Delaunay triangulation and generate an octree;

2) Source update: find a tetrahedron that encloses the desired source position (via brute-force search, or via adjacency walk with/without octree lookup);

3) Interpolation: calculate barycentric weights for linear interpolation of HRTF measurements at the vertices of the tetrahedron selected in 2)

Gamper, H. (2013). "Head-related transfer function interpolation in azimuth, elevation, and distance", Journal of the Acoustical Society of America 134(6), JASA EL547-EL554. Available online:


Octree Partitioning 3 D Points Into Spatial Subvolumes inspired this file.

MATLAB release MATLAB 8.1 (R2013a)
MATLAB Search Path
Other requirements Tested on Matlab R2010b and R2013a.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
17 May 2014 farhan saari

how to use this coding if i already have point cloud data set.?? for example sphere data set..

Comment only
09 Oct 2013 Archontis Politis

Excellent demonstration of the algorithm!

Comment only
08 Oct 2013 1.1

Added comments and references.

09 Oct 2013 1.2

Tags, comments

12 Nov 2013 1.3

updated reference and link to JASA article

09 Jan 2015 1.4

removed tilde placeholders in function output calls for backward compatibility with Matlab versions earlier than 2009b

12 Jan 2015 1.5

fixed call to Delaunay to support earlier Matlab versions ( < 2009b)

Contact us