%%

%%% GRAPHICAL RESULTS

close all;
clear all;
clc


%%% For plane_model_road_segmentation

in=dlmread('image_data_input');
w=dlmread('wide');
s=dlmread('short');
sm=dlmread('point_output');

time_step=1.0;

in=transp(in);
w=transp(w);
s=transp(s);


s=s*time_step;
w=w*time_step;

time=1:time_step:108;

plot(time,in,'b','LineWidth',3);
hold on;
plot(time,sm,'r','LineWidth',3);
plot(time,w,'c','LineWidth',3);
plot(time,s,'k','LineWidth',3);


size=20;


h_leg=legend('xb3 (imagem da esquerda)','wide','wide (em simult\^{a}neo)','short (em simult\^{a}neo)');
set(h_leg,'interpreter','latex');
x_l_handle=xlabel('Tempo (s)','interpreter','latex','FontSize',size,'FontWeight','b');
y_l_handle=ylabel('Frequ\^{e}ncia (Hz)','interpreter','latex','FontSize',size,'FontWeight','b');

set(gca,'FontSize',size,'FontWeight','b');

%%  Média de pontos

M_image=mean(in)

M_cloud=mean(sm)

M_short=mean(s)

M_wide=mean(w)