Can anyone suggest Matlab code for adaptive resampling in particle filter used for objct tracking in video?
Show older comments
I am using particle filter for tracking object in the video using Lab and HSV color spaces. I want to use adaptive resampling approach in order to make tracking process free of errors due to occlusion/overlapping. The code used by me for resampling is given below:
function X = resample_particles(X, L_log)
% Calculating Cumulative Distribution
L = exp(L_log - max(L_log));
Q = L / sum(L, 2);
R = cumsum(Q, 2);
% Generating Random Numbers N = size(X, 2);
T = rand(1, N);
% Resampling [~, I] = histc(T, R);
X = X(:, I + 1);
end
Please suggest me code to perform adaptive resampling algorithm to eliminate effect of occlusion/ overlapping.
Answers (0)
Categories
Find more on Computer Vision Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!