From: kishor lad on 8 Apr 2010 11:34 hello friends, we are developing a project called as object tracking in video sequences to track the motion of an object in a video. for this frames are captured from video. then background subtraction algorithm is applied. to detect the moving object in an image i want to calculate the mean intensity of the particular pixel in successive frames to distinguish it as foreground. i also need to calculate the standard deviation in successive frames. so please help me and post code to find the mean intensity and standard deviation of a particular pixel in successive frames.
From: us on 8 Apr 2010 11:48 "kishor lad" <ladkishor003(a)gmial.com> wrote in message <hpkt1h$7ob$1(a)fred.mathworks.com>... > hello friends, we are developing a project called as object tracking in video sequences to track the motion of an object in a video. for this frames are captured from video. then background subtraction algorithm is applied. to detect the moving object in an image i want to calculate the mean intensity of the particular pixel in successive frames to distinguish it as foreground. i also need to calculate the standard deviation in successive frames. so please help me and post code to find the mean intensity and standard deviation of a particular pixel in successive frames. one of the solutions % assume you'll have three images of size 2x2... nimg=3; aimg=nan([2,2,nimg]); % - here, create images during runtime... for i=1:nimg aimg(:,:,i)=ceil(2*rand([2,2])); end % - now aimgm=mean(aimg,3); aimgs=std(aimg,[],3); us
|
Pages: 1 Prev: how to generate an array of objects Next: how to export some parameters in each iteration? |