motion history image(MHI) matlab code
#1
Question 

Am working in a project of human action recognition in a video.. Am in need of MHI matlab code for a video...
Reply
#2
as my humble request .pls help me some one .iam new to matlab code.pls refer some code to learn and execute mhi output.
Reply
#3
Did u find the code?please can you share it with me also?
Reply
#4
motion history image(MHI) matlab code


1
down vote
accepted
MHI is just a ways of implementing motion detection (and uses silhouettes as the basis of it).

Let suppose that the silhouette of the most recent object has been created. It also uses a timestamp to identify if the current silhouette is recent or not. The older silhouettes have to be compared with the current silhouette in order to achieve movement detection. Hence, earlier silhouettes are also saved in the image, with an earlier timestamp.

MHI describes the changes of some moving objects over the image sequence. Basically, you should only maintain an image where every pixel encodes a time information - whether the silhouette is recent or not or where the movement occurs at a given time.

Therefore the implementation of MHI is very simple e.g.:

function MHI = MHI(fg)

% Initialize the output, MHI a.k.a. H(x,y,t,T)
MHI = fg;

% Define MHI parameter T
T = 15; % # of frames being considered; maximal value of MHI.

% Load the first frame
frame1 = fg{1};

% Get dimensions of the frames
[y_max x_max] = size(frame1);

% Compute H(x,y,1,T) (the first MHI)
MHI{1} = fg{1} .* T;

% Start global loop for each frame
for frameIndex = 2:length(fg)

%Load current frame from image cell
frame = fg{frameIndex};

% Begin looping through each point
for y = 1:y_max
for x = 1:x_max
if (frame(y,x) == 255)
MHI{frameIndex}(y,x) = T;
else
if (MHI{frameIndex-1}(y,x) > 1)
MHI{frameIndex}(y,x) = MHI{frameIndex-1}(y,x) - 1;
else
MHI{frameIndex}(y,x) = 0;
end
end
end
end
end
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Tagged Pages: motion history image matlab, motion histiory image source code, motion history image in matlab, motion history image matlab code,
Popular Searches: motion energy image matlab, matlab code for camshift for motion detection, motion history image using matlab, motion histiory image source code, action recognition motion history image seminar, matlab mition history image action recognition, descent image motion estimation system ppt,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  how to calculate distance in heed protocol by using matlab 1 1,887 15-06-2018, 03:54 PM
Last Post: Guest
  matlab code for incremental conductance mppt 1 1,425 02-05-2018, 02:28 PM
Last Post: eksi
  anomaly detection code in matlab 3 2,090 23-04-2018, 12:04 AM
Last Post: Guest
  matlab code for liver tumor segmentation 2 1,585 01-04-2018, 06:29 PM
Last Post: [email protected]
  matlab code for vehicle tracking using unscented kalman filter 3 16,836 26-03-2018, 08:57 PM
Last Post: fodayj
  dwt code in java for image 2 6,348 24-03-2018, 10:06 PM
Last Post: Guest
  matlab code for facial expression recognition using frequency domain 1 2,679 19-02-2018, 06:03 PM
Last Post: Guest
  history of rain alarm 1 1,360 23-01-2018, 01:55 AM
Last Post: Asia.
  matlab code shadow detection and removal in colour images using matlab 2 2,258 12-01-2018, 01:24 PM
Last Post: dhanabhagya
  simulink matlab model upqc mdl 3 6,774 18-12-2017, 09:08 AM
Last Post: jaseela123d

Forum Jump: