Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 1dc429fc0da4cc5ff4f62617760447613f85980b authored by vbhandawat on 01 February 2021, 13:54:09 UTC, committed by GitHub on 01 February 2021, 13:54:09 UTC
Add files via upload
1 parent 17f20a6
  • Files
  • Changes
  • 345c390
  • /
  • Tracking
  • /
  • mainTrack.m
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:1dc429fc0da4cc5ff4f62617760447613f85980b
directory badge Iframe embedding
swh:1:dir:d95c030c609a587149c58f34f4d09a16b4a9bdc6
content badge Iframe embedding
swh:1:cnt:8e8a85352fe919e143594825bae21c468d9f595f
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
mainTrack.m
%This code starts automatic video processing. Once the video is processed,
%shot.mat file will be saved. This file includes CoM kinematics data and
%leg positions, etc.
%
%@Chanwoo Chun <cc2465@cornell.edu>

close all

matdir = pwd;

%Define the location of the video
rootdir = ['..' filesep '..' filesep 'Data' filesep 'RawVideoExample' filesep '171231Video'];
% variable info is an array whose elements are:
% info(1): video number.
% info(2): first frame to begin analysis.
% info(3): final frame to finish analysis.
info = [165	500	700];
dataNum = info(1);
frBegin = info(2);
frEnd = info(3);

%Grab the video
M=load([rootdir filesep num2str(dataNum)]);

%store the first&last frame number
shot.dataNum = dataNum;
shot.timeStamp = M.data.timeStamp(frBegin:frEnd);
shot.frame = cumsum([frBegin; ones((frEnd-frBegin),1)]);

%get background
background = trueBackground(squeeze(M.data.frames));

%get initial CoM position
shot.com = getCOM3(M,frBegin,frEnd,background);

%binarize the bottom view portion of the video.
[binVid, legTips, notTouching, addedFirst, addedLast] = bottomViewAnalysis(M,frBegin,frEnd,shot.com.worldinfo.wallUpper,shot.com.worldinfo.wallLower,background);
shot.validity.notTouching=notTouching;

%determine validity of the frames. Here, by valid, we mean 1) no wall
%touching, 2) small slip angle (beta), 3) small turn angle (yaw).
[smallBeta, smallYaw, valid] = validity(shot);

shot.validity.smallBeta=smallBeta;
shot.validity.smallYaw=smallYaw;
shot.validity.valid=valid;


[~,name,~] = fileparts(rootdir);
analysisdir = ['..' filesep '..' filesep 'Data' filesep 'ProcessedData' filesep name];
mkdir(analysisdir);

%leg tracking
shot.leg = getLegs2(shot, binVid, legTips, analysisdir, addedFirst, addedLast);

%save processed data
save([analysisdir filesep 'shot_EXAMPLE.mat'],'shot');
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top