Skip to content

Commit

Permalink
Remove GmtkLocationKS from DNN localisation example
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Dec 18, 2015
1 parent f28bce8 commit 858a677
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 78 deletions.
36 changes: 0 additions & 36 deletions examples/localisation_DNNs/BlackboardGmtk.xml

This file was deleted.

27 changes: 0 additions & 27 deletions examples/localisation_DNNs/BlackboardGmtkNoHeadRotation.xml

This file was deleted.

26 changes: 11 additions & 15 deletions examples/localisation_DNNs/localise.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ function localise()

warning('off','all');

% Initialize Two!Ears model and check dependencies
startTwoEars('Config.xml');

% === Configuration
% Different source positions given by BRIRs
% see:
Expand Down Expand Up @@ -34,16 +37,10 @@ function localise()
phi1 = estimateAzimuth(sim, 'BlackboardDnn.xml'); % DnnLocationKS w head movements
resetBinauralSimulator(sim, headOrientation);
phi2 = estimateAzimuth(sim, 'BlackboardDnnNoHeadRotation.xml'); % DnnLocationKS wo head movements
resetBinauralSimulator(sim, headOrientation);
phi3 = estimateAzimuth(sim, 'BlackboardGmtk.xml'); % GmtkLocationKS w head movements
resetBinauralSimulator(sim, headOrientation);
phi4 = estimateAzimuth(sim, 'BlackboardGmtkNoHeadRotation.xml'); % GmtkLocationKS wo head movements

printLocalisationTableColumn(direction, ...
phi1 - headOrientation, ...
phi2 - headOrientation, ...
phi3 - headOrientation, ...
phi4 - headOrientation);
phi2 - headOrientation);

sim.ShutDown = true;
end
Expand All @@ -55,19 +52,18 @@ function localise()

function printLocalisationTableHeader()
fprintf('\n');
fprintf('------------------------------------------------------------------------------------------------------------------------------------\n');
fprintf('Source direction DnnLocationKS w head rot. DnnLocationKS wo head rot. GmtkLocationKS w head rot. GmtkLocationKS wo head rot.\n');
fprintf('------------------------------------------------------------------------------------------------------------------------------------\n');
fprintf('-------------------------------------------------------------------------\n');
fprintf('Source direction DnnLocationKS w head rot. DnnLocationKS wo head rot.\n');
fprintf('-------------------------------------------------------------------------\n');
end

function printLocalisationTableColumn(direction, phi1, phi2, phi3, phi4)
fprintf(' %4.0f %4.0f %4.0f %4.0f %4.0f\n', ...
wrapTo180(direction), wrapTo180(phi1), wrapTo180(phi2), ...
wrapTo180(phi3), wrapTo180(phi4));
function printLocalisationTableColumn(direction, phi1, phi2)
fprintf(' %4.0f %4.0f %4.0f\n', ...
wrapTo180(direction), wrapTo180(phi1), wrapTo180(phi2));
end

function printLocalisationTableFooter()
fprintf('------------------------------------------------------------------------------------------------------------------------------------\n');
fprintf('------------------------------------------------------------------------\n');
end

% vim: set sw=4 ts=4 expandtab textwidth=90 :

0 comments on commit 858a677

Please sign in to comment.