[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 )
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. |
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. |
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: