Code covered by the BSD License  

Highlights from
GUI for denoising video signals with Kalman filter

image thumbnail

GUI for denoising video signals with Kalman filter

by

 

filter grayscale video signals(avi || Webcam) with 1st Order Estimation & Kalman filter .

Mean_square_error( X,Y)
function MSE = Mean_square_error( X,Y)

if size(X)~=size(Y)
    error('The images must have the same size');
end
if ~isa(X,'double')
    X=im2double(X);
end
if ~isa(Y,'double')
    Y=im2double(X);
end
[n p]=size(X);
MSE= 0;
for i=1:n
    for j=1:p
        if isnan(X(i,j)) || isinf(X(i,j)) || isnan(Y(i,j)) || isinf(Y(i,j))
            continue;
        end
        MSE=MSE+((abs(X(i,j)-Y(i,j))).^2);
    end
end

MSE=MSE./(n*p);

Contact us