资 源 简 介
高斯背景建模进行目标检测,实验效果不错clc; clear all; close all;mov = mmreader("1.avi");Height = mov.Height;Width = mov.Width;nframes = mov.NumberOfFrames;% ----------------------- frame size variables -----------------------fr = read(mov);%fg = read(mov,1);bg = zeros(Height, Width,3);bgR = zeros(Height, Width);bgG = zeros(Height, Width);bgB = zeros(Height, Width);fr_bw = rgb2gray(fr(:,:,:,1));