Commit 63d9a58a authored by Hark Simon Braren's avatar Hark Simon Braren
Browse files

Plot and animation GUI for itaOptitrack saves and small bugfix

parent ef7486f7
......@@ -1021,9 +1021,10 @@ classdef itaHRTF < itaAudio
ita_verbose_info('itaHRTF: Excluding invalid bin (f=0Hz) for ITD calculation (phase_delay method)', 2)
end
usedBins( usedBins <= 1 ) = [];
phase = unwrap(angle(thisC.freqData(usedBins,:)));
if sArgs.compensateMinPhase
minPhase = unwrap(angle(ita_minimumphase(thisC).freqData(usedBins,:)));
phase = unwrap(angle(thisC.freqData(usedBins,:)));
phase = phase-minPhase;
end
freqVector = thisC.freqVector(usedBins);
......
% ITAOPTITRACKVISUALIZER - GUI to look into itaOptitrack save files
%
% A quick way to look into .mat files saved by itaOptitrack class.
% Supports plots and animation of the position and orientation of the
% tracked rigid bodys.
% Click in the 2D plot to select the time interval plotted or animated in
% the 3D Plot.
%
% Examples:
% itaOptitrackVisualizer() - opens the GUI
% itaOptitrackVisualizer('file.mat') - opens GUI and loads the
% provided optitrack savefile
%
% See also:
% itaOptitrack, itaOrientation
%
% <ITA-Toolbox>
% This file is part of the application HRTF_class for the ITA-Toolbox. All rights reserved.
% You can find the license for this m-file in the application folder.
% </ITA-Toolbox>
% Author: Hark Braren -- Email: hbr@akustik.rwth-aachen.de
% Created: 15-Jan-2021
% Created using Appdesigner - Needs Matlab 2020a or later
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment