THE AUDITORY MODELING TOOLBOX

This documentation applies to the most recent AMT version (1.6.0).

View the code

Go to function

EXTRACTSP
Sagittal plane (SP) HRTFs from measurement data

Usage:

[sphrtfs,polangs] = extractsp( lat,hM,pos )
[sphrtfs,polangs] = extractsp( lat,Obj )
[sphrtfs,polangs,latangs] = extractsp( lat,hM,pos )
[sphrtfs,polangs,latangs,idx] = extractsp( lat,hM,pos )
[sphrtfs,polangs,latangs] = extractsp( lat,Obj )
[sphrtfs,polangs,latangs,idx] = extractsp( lat,Obj )

Input parameters:

lat Lateral angle (in degrees) of the SP.
Obj SOFA structure withe the HRIRs.
hM Matrix containing head-related impulse responses in the ARI format. Size: (time x position x channel).
pos Matrix with the source positions referring to 2nd dimension of hM and formated according to meta.pos in the ARI HRTF format. The 6th column is the lateral angle. The 7th column is the polar angle.

Output parameters:

sphrtfs All available HRTFs in the current SP, sorted according to ascending polar angle.
polangs Corresponding polar angles (in degrees).
latangs Corresponding actual lateral angles (in degrees).
idx Index to the considered positions.

Description:

extractsp(...) extracts all HRTFs available for a specific SP or lateral angle. In order to result in a representative HRTF template, demands are made on:

  1. lateral tolerance to be as small as possible, but min. 2 and max. 5.
  2. polar angles to range from max. -30 deg. to min. 210 deg.,
  3. gaps of polar angles to be max. 30 deg. large.