1 function [ likelihood ] = compute_likelihood(heat,mask,sig,radius,weight )
\r
2 %UNTITLED3 Summary of this function goes here
\r
3 % Detailed explanation goes here
\r
11 pd(i,j) = detection_probability(heat(i,j));
\r
18 for i = radius+1:m-radius
\r
19 for j = radius+1:m-radius
\r
22 %pp = compute_pixel_probability(i,j,heat,radius,weight,pd); %old
\r
23 pp = compute_pixel_probability(i,j,heat,sig,weight,pd);
\r
24 %compute_pixel_probability(pixel_x,pixel_y,heats,sig, weight, detection_probabilities )
\r
27 %pp = 1 - compute_pixel_probability(i,j,heat,sig,weight,pd);
\r
31 log_sum = log_sum + log(pp);
\r
35 likelihood = log_sum;
\r