view nonExposed/checkClassPresence.m @ 44:b7b1672b3c3b

Reading and writing of files now is done by soundfile since there seems to be a bug with writing .wav files with librosa (mplayer would play them as rubbish). Added soundfile as a requirement.
author Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk>
date Mon, 09 Oct 2017 11:55:03 +0100
parents 39399de892ef
children
line wrap: on
line source
function [] = checkClassPresence( sceneSchedule,sceneObjects )

classIndex=ones(1,length(sceneObjects));
classIndex(unique([sceneSchedule.classId]))=0;

if(find(classIndex==1))
    classLabel= {sceneObjects.classLabel};
    disp({classLabel{logical(classIndex)}})
    fprintf(2, 'At least one class has been removed during the simulation process\n')
end