image thumbnail

Simple Particle Filter Demo

by

 

07 Nov 2011 (Updated )

Tracking red object in a movie using particle filter.

show_state_estimated(X, Y_k)
function show_state_estimated(X, Y_k)

X_mean = mean(X, 2);

figure(1)
image(Y_k)
title('+++ Showing mean value +++')

hold on
plot(X_mean(2,:), X_mean(1,:), 'h', 'MarkerSize', 16, 'MarkerEdgeColor', 'y', 'MarkerFaceColor', 'y')
hold off

drawnow

Contact us