% Hassan Nahas
%This script finds and plots the procsesing time of the target dataset
[dataset,warps] = readDataset(mydirName);

load(sprintf('Tree35-%d.mat',9));
[~,~,fast_time,~] = classifyDataSetAccordingToTree(dataset,Tree, 35,[]);
[~,~,harris_time,~] = classifyDataSetAccordingToHarris(dataset, 35,[]);
[~,~,susan_time,~] = classifyDataSetAccordingToSUSAN(dataset, 35,[]);
[~,~,segment_time,~] = classifyDataSetAccordingToSegment(dataset, 35, []);

% x = ['FAST-9','Segment Test-9','Harris','SUSAN'];

name = {'FAST-9';'Segment Test-9';'Harris';'SUSAN'};
x = [1:4]; 
bar(x,[fast_time, segment_time, harris_time, susan_time]);
set(gca,'xticklabel',name)
xlabel('Detector')
ylabel('Testing Time (s)')
title('Testing time for different detectors')