plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | kristinbranson/APT-master | FrameSetVariable.m | .m | APT-master/matlab/FrameSetVariable.m | 6,075 | utf_8 | 622cb0a3fc9cd8a79c85adb795cfb7d6 | classdef FrameSetVariable < FrameSet
properties
prettyStringHook % fcn with sig str = fcn(labeler)
prettyCompactStringHook % fcn with sig str = fcn(labeler)
% fcn with sig frms = fcn(labeler,mIdx,nfrm,iTgt). Returns "base"
% frames. nfrm is number of frames in mIdx (purely convenience).
getFr... |
github | kristinbranson/APT-master | APTCluster.m | .m | APT-master/matlab/APTCluster.m | 15,679 | utf_8 | 661a3917582488a8e32ca9e612558806 | function APTCluster(varargin)
% Compiled APT operations
%
% % Do a full retrain of a project's tracker
% APTCluster(lblFile,'retrain')
%
% % Track a single movie
% APTCluster(lblFile,'track',moviefullpath)
%
% APTCluster(lblFile,'track',moviefullpath,trxfullpath)
%
% % Options passed to Labeler.trackAndExpor... |
github | kristinbranson/APT-master | ProjectSetup.m | .m | APT-master/matlab/ProjectSetup.m | 10,666 | utf_8 | c1484b5d26adbdbef0f6844705cac715 | function varargout = ProjectSetup(varargin)
% New project creation
% Last Modified by GUIDE v2.5 24-Oct-2018 09:38:44
% Begin initialization code - DO NOT EDIT
gui_Singleton = 0;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_Opening... |
github | kristinbranson/APT-master | MovieManager.m | .m | APT-master/matlab/MovieManager.m | 1,529 | utf_8 | 613a7b6f2e926d5453a4c0c017e11d75 | function varargout = MovieManager(varargin)
% Movie table GUI
% Last Modified by GUIDE v2.5 24-Aug-2017 11:16:51
% Begin initialization code - DO NOT EDIT
gui_Singleton = 0;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn',... |
github | kristinbranson/APT-master | parseToTrackJSON.m | .m | APT-master/matlab/parseToTrackJSON.m | 3,598 | utf_8 | 9e8f58c1750eea56bc91df7454bb0b2f | function toTrackOut = parseToTrackJSON(jsonfile,lObj)
res = jsondecode(fileread(jsonfile));
assert(isfield(res,'toTrack'));
res = res.toTrack;
if iscell(res),
toTrack = res{1};
for i = 2:numel(res),
toTrack = structappend(toTrack,res{i});
end
elseif isstruct(res),
toTrack = res;
end
nviews = lObj.nview;
n... |
github | kristinbranson/APT-master | TrackMonitorGUI.m | .m | APT-master/matlab/TrackMonitorGUI.m | 6,893 | utf_8 | 916f6a54e05970051a949733cf482c84 | function varargout = TrackMonitorGUI(varargin)
% TRACKMONITORGUI MATLAB code for TrackMonitorGUI.fig
% TRACKMONITORGUI, by itself, creates a new TRACKMONITORGUI or raises the existing
% singleton*.
%
% H = TRACKMONITORGUI returns the handle to a new TRACKMONITORGUI or the handle to
% the existing si... |
github | kristinbranson/APT-master | CheckSplitTracking.m | .m | APT-master/matlab/CheckSplitTracking.m | 3,289 | utf_8 | 61eab880c68b36f5d04a9357b648bc36 | function [info,isdone] = CheckSplitTracking(lblFile,infoFile,varargin)
% added support for passing unbundled project AR 20190913
[resubmit,ncores,unbundledLbl] = myparse(varargin,'resubmit',false,'ncores',1,'unbundledLbl',[]);
fid = fopen(infoFile,'r');
fns = {'jobi','movieFile','trxFile','startFrame','endFrame','jo... |
github | kristinbranson/APT-master | TrainMonitorGUI.m | .m | APT-master/matlab/TrainMonitorGUI.m | 5,939 | utf_8 | 20386b3f0ea19462df3d7791de023b8d | function varargout = TrainMonitorGUI(varargin)
% TRAINMONITORGUI MATLAB code for TrainMonitorGUI.fig
% TRAINMONITORGUI, by itself, creates a new TRAINMONITORGUI or raises the existing
% singleton*.
%
% H = TRAINMONITORGUI returns the handle to a new TRAINMONITORGUI or the handle to
% the existing si... |
github | kristinbranson/APT-master | get_readscore_fcn.m | .m | APT-master/matlab/get_readscore_fcn.m | 842 | utf_8 | 3255f933d28e9f031e401fb168f045d0 | function readscorefun = get_readscore_fcn(hmdir,fly,pti,varargin)
[hmtype,firstframe] = myparse(varargin,...
'hmtype','jpg',...
'firstframe',1 ... % readscorefun(1) will actually read firstframe; readscorefun(i) will read i+firstframe-1, etc
);
switch hmtype,
case 'jpg',
readscorefun = @(n) readscorefil... |
github | kristinbranson/APT-master | get_reconstruct_fcn.m | .m | APT-master/matlab/get_reconstruct_fcn.m | 2,977 | utf_8 | c946cdb56bb8728f88b8e08610ba45f5 | function reconstructfun = get_reconstruct_fcn(caldata,usegeometricerror)
% [XYZ,uv_re,err] = reconstructfun(uv)
% reconstructfun(uv) takes input uv which is [2 x nviews x n]
% and produces outputs:
% XYZ: [3 x n] 3-d reconstructed points
% uv_re: [2 x nviews x n] reprojections
% err: [1 x n] reprojection error per vie... |
github | kristinbranson/APT-master | MovieIndexSetVariable.m | .m | APT-master/matlab/MovieIndexSetVariable.m | 1,818 | utf_8 | 65ed6191eaab8e19c7c3ca53eb14050a | classdef MovieIndexSetVariable < MovieIndexSet
properties
prettyString
prettyCompactString
getMovieIndicesHook % fcn with sig mIdx = fcn(labeler)
end
methods
function obj = MovieIndexSetVariable(ps,cps,fcn)
obj.prettyString = ps;
obj.prettyCompactString = cps;
obj.getMovieIndices... |
github | kristinbranson/APT-master | MFTSetCreate.m | .m | APT-master/matlab/MFTSetCreate.m | 4,777 | utf_8 | b229be853dd59c9467422d9a4660fc16 | function varargout = MFTSetCreate(varargin)
% MFTSETCREATE MATLAB code for MFTSetCreate.fig
% MFTSETCREATE, by itself, creates a new MFTSETCREATE or raises the existing
% singleton*.
%
% H = MFTSETCREATE returns the handle to a new MFTSETCREATE or the handle to
% the existing singleton*.
%
% MF... |
github | kristinbranson/APT-master | RunPostProcessing_HeatmapData2.m | .m | APT-master/matlab/RunPostProcessing_HeatmapData2.m | 8,911 | utf_8 | e8c332cc55c8387520c95f1f49f27bcb | function allppobj = RunPostProcessing_HeatmapData2(hmdir,varargin)
% Run single-view heatmap postproc
ncores = feature('numcores');
if isdeployed,
fprintf('Starting RunPostProcessing_HeatmapData, ncores = %d...\n',ncores);
end
if ncores == 1,
ncores = 0;
end
if isdeployed,
varargin = DeployedChar2NumberArgs(va... |
github | kristinbranson/APT-master | LabelerGUI.m | .m | APT-master/matlab/LabelerGUI.m | 163,950 | utf_8 | fce2bffeab1e6bf8161ea9a75efb1233 | function varargout = LabelerGUI(varargin)
% Labeler GUI
% Last Modified by GUIDE v2.5 07-Nov-2018 14:52:48
% Begin initialization code - DO NOT EDIT
gui_Singleton = 0;
% AL20151104: 'dpi-aware' MATLAB graphics introduced in R2015b have trouble
% with .figs created in previous versions. Did significant testing across
... |
github | kristinbranson/APT-master | paramChecker.m | .m | APT-master/matlab/paramChecker.m | 2,301 | utf_8 | 783185a3a4fc75711f77e7c45013e054 | function [isOk,msgs] = paramChecker(sPrm)
isOk = init(sPrm,true);
msgs = {};
% if using background subtraction, bgreadfcn must be set
if sPrm.ROOT.ImageProcessing.BackSub.Use && isempty(sPrm.ROOT.ImageProcessing.BackSub.BGReadFcn),
isOk.ROOT.ImageProcessing.BackSub.Use = false;
isOk.ROOT.ImageProcessing.BackSub.B... |
github | kristinbranson/APT-master | Icons.m | .m | APT-master/matlab/Icons.m | 1,146 | utf_8 | 3bce11f818cf55c8975c73f4603231e2 | classdef Icons
properties (Constant)
GFXDIR = lclInitGfxDir();
ims = lclInitIms(); % ims.keyword is [nxnx3] RGB icon image with nan for transparency
end
end
function d = lclInitGfxDir()
d = fullfile(APT.getRoot,'gfx');
% PNGSHOULDEXIST = 'playsegmentblack.png';
% if exist(fullfile(d,PNGSHOULDEXIST),'file')... |
github | kristinbranson/APT-master | NavPrefs.m | .m | APT-master/matlab/NavPrefs.m | 5,084 | utf_8 | 7fb7a0c0231c2cc1a9d174ad8fa85cbb | function varargout = NavPrefs(varargin)
% NAVPREFS MATLAB code for NavPrefs.fig
% NAVPREFS, by itself, creates a new NAVPREFS or raises the existing
% singleton*.
%
% H = NAVPREFS returns the handle to a new NAVPREFS or the handle to
% the existing singleton*.
%
% NAVPREFS('CALLBACK',hObject,ev... |
github | kristinbranson/APT-master | parseConfigYaml.m | .m | APT-master/matlab/misc/parseConfigYaml.m | 1,088 | utf_8 | d0af3bedbb03a1a93ac55d47d2d90785 | function t = parseConfigYaml(filename)
% t = parseConfigYaml(filename)
% Parse a configuration yaml.
s = ReadYaml(filename);
t = lclParse(s);
function tagg = lclParse(s)
vallen = 9;
fns = fieldnames(s);
tagg = [];
for f=fns(:)',f=f{1}; %#ok<FXSET>
val = s.(f);
isLeaf = iscell(val) && ischar(val{1});
if isLeaf... |
github | kristinbranson/APT-master | imcontrast_kb.m | .m | APT-master/matlab/misc/imcontrast_kb.m | 56,182 | utf_8 | d70f0c1089aa9f90628c2430d0a28426 | function hfigure = imcontrast_kb(handle)
%IMCONTRAST Adjust Contrast tool.
% IMCONTRAST creates an Adjust Contrast tool in a separate figure that is
% associated with the grayscale image in the current figure, called the
% target image. The Adjust Contrast tool is an interactive contrast and
% brightness adju... |
github | kristinbranson/APT-master | alignLandmarks.m | .m | APT-master/matlab/misc/alignLandmarks.m | 1,028 | utf_8 | 61f78ea781151e5b4d91a6b35ffb7bee | % alignLandmarks(pts,mux,muy,theta)
% pts is 2 x n x T, where n is the number of landmarks
% mux is 1 x T, x-coord of centroid of the fly from Ctrax
% muy is 1 x T, x-coord of centroid of the fly from Ctrax
% theta is 1 x T, orientation of the fly from Ctrax
function pts = alignLandmarks(pts,mux,muy,theta)
% pts [2,n,... |
github | kristinbranson/APT-master | inputdlgWithBrowse.m | .m | APT-master/matlab/misc/inputdlgWithBrowse.m | 19,971 | utf_8 | bdcd03b69228d21c222dc485fba4fe7a | function Answer=inputdlgWithBrowse(Prompt, Title, NumLines, DefAns, Resize, BrowseInfo)
%INPUTDLGWITHBROWSE Input dialog box.
% ANSWER = INPUTDLG(PROMPT) creates a modal dialog box that returns user
% input for multiple prompts in the cell array ANSWER. PROMPT is a cell
% array containing the PROMPT strings.
%
% IN... |
github | kristinbranson/APT-master | glob.m | .m | APT-master/matlab/misc/glob.m | 17,025 | utf_8 | d7ae5f5b7df0771b8c97a8f3046c3f1f | %% Expand wildcards for files and directory names
%
% Pattern matching of file and directory names, based on wildcard
% characters. This function is similar to wildcard expansion performed by
% the Unix shell and Python glob.glob function, but it can handle more
% types of wildcards.
%
% [LIST, ISDIR] = glob(... |
github | kristinbranson/APT-master | structdiff.m | .m | APT-master/matlab/misc/structdiff.m | 3,181 | utf_8 | f3b7d2f4ecb3f9d589b235afc381cbc0 | function [fdiff,fnot1,fnot2] = structdiff(s1,s2,varargin)
% [fdiff,fnot1,fnot2] = structdiff(s1,s2,varargin)
%
% fdiff: cellstr, fields present in s1 and s2 that differ
% fnot1: cellstr, fields not present in s1 but present in s2
% fnot2: etc
%
% Output args apply only to top-level fields.
%
% Optional PVs:
... |
github | kristinbranson/APT-master | VideoTest.m | .m | APT-master/matlab/misc/VideoTest.m | 23,492 | utf_8 | a3ad1ac4db7ed4973b533179b99bb68a | classdef VideoTest
% We have found movie-reading of some JRC vids to be fragile on Linux,
% with results varying depending on i) order of frames read, ii) host
% machine, and iii) matlab version.
%
% This class encapsulates a test whereby frames are read from a movie a)
% sequentially, starting from the fi... |
github | kristinbranson/APT-master | whereisjavaclassloadingfrom.m | .m | APT-master/matlab/misc/whereisjavaclassloadingfrom.m | 2,459 | utf_8 | eda664a4448b6168a5e664e926051a35 | function whereisjavaclassloadingfrom(ClassName)
%WHEREISJAVACLASSLOADINGFROM Show where a Java class is loaded from
%
% whereisjavaclassloadingfrom(ClassName)
%
% Shows where a Java class is loaded from in this Matlab session's JVM.
% This is for diagnosing Java class load problems, such as classpath
% ordering issues... |
github | kristinbranson/APT-master | findjobj_modern.m | .m | APT-master/matlab/misc/findjobj_modern.m | 171,374 | utf_8 | 1c79c06bf82fb5b1c34315bf441c4cb0 | function [handles,levels,parentIdx,listing] = findjobj_modern(container,varargin) %#ok<*CTCH,*ASGLU,*MSNU,*NASGU>
%findjobj Find java objects contained within a specified java container or Matlab GUI handle
%
% Syntax:
% [handles, levels, parentIds, listing] = findjobj(container, 'PropName',PropValue(s), ...)
%... |
github | kristinbranson/APT-master | SelectWrappingSampleSubsets.m | .m | APT-master/matlab/misc/SelectWrappingSampleSubsets.m | 516 | utf_8 | b158caf44d19db64df929e6b0f6db8c0 | % [samplestarts,sampleends] = SelectWrappingSampleSubsets(K,N,nsample)
% K: number of intervals to sample
% N: number of things to sample from
% nsample: interval size
function [samplestarts,sampleends] = SelectWrappingSampleSubsets(K,N,nsample)
coroff = 0;
samplestarts = nan(1,K);
sampleends = nan(1,K);
for k = 1:K,... |
github | kristinbranson/APT-master | im_pt_2_im_line.m | .m | APT-master/matlab/user/im_pt_2_im_line.m | 4,073 | utf_8 | ae15bfe6ff7a75887c7866e65c6c10ae | function [u_2, v_2] = im_pt_2_im_line( u_1, v_1, DLT_1, DLT_2, im_bndry, len )
% IM_PT_2_IM_LINE: get line in image #2 corresponding to point (u_1, v_1)
% in image #1
%
% DLT_1 = 11 DLT coefficients for camera 1
% DLT_2 = 11 DLT coefficients for camera 2
% im_bndry = [xmin xmax ymin ymax] for image #2
% len = number of... |
github | kristinbranson/APT-master | dlt_2D_to_3D_point_vectorized.m | .m | APT-master/matlab/user/dlt_2D_to_3D_point_vectorized.m | 4,483 | utf_8 | 23c8c06729ef6250d1c577dc3f719614 | function [P,err,Pfront,Pside,ptfront_re,ptside_re] = dlt_2D_to_3D_point_vectorized(dlt_front,dlt_side,ptfront,ptside,varargin)
[geometricerror,Sfront,Sside] = myparse(varargin,'geometricerror',true,...
'Sfront',[],'Sside',[]);
[d1,n] = size(ptfront);
[d2,n2] = size(ptside);
assert(d1==2 && d2==2 && n==n2);
% if geo... |
github | kristinbranson/APT-master | viewpref3dreconhmap.m | .m | APT-master/matlab/user/viewpref3dreconhmap.m | 3,586 | utf_8 | 2f5861fc2691403273ba1fb1590be906 | function [sbest,Xbest,xy1best,xy2best,hm1roi,hm2roi] = ...
viewpref3dreconhmap(loghm1,loghm2,cr,varargin)
% hm*: NORMALIZED heatmaps
[dxyz,lambda2,hm1roi,hm2roi] = myparse(varargin,...
'dxyz',0.01,...
'lambda2',1,...
'hm1roi',[],...
'hm2roi',[]...
);
tfROI = ~isempty(hm1roi);
assert(tfROI==~isempty(hm2roi... |
github | kristinbranson/APT-master | findNearestNborTrx.m | .m | APT-master/matlab/user/findNearestNborTrx.m | 987 | utf_8 | 443f935864f0b061034b85e8ccf92f4a | function tblout = findNearestNborTrx(tbl,movifo,tfaf,trxCache)
% Find the nearest neighboring trx/target for each row in a tbl
%
% tbl: [n x <width>] MFT table
% tfaf: cellstr. tbl.iTgt are indices into trxFilesAllFull
% trxCache: trxCache
%
% nbrDist: [nx1] L2 nearest nbor distance
% nbrTgt: [nx1] nearest nbor targe... |
github | kristinbranson/APT-master | viewpref3drecon.m | .m | APT-master/matlab/user/viewpref3drecon.m | 11,522 | utf_8 | 829900c6a4b8ca7799f8e9b256afa90a | function [X3d,x2d,trpeconf,isspecial,prefview,...
x2dcmp,... % nan(nfrm,3,2,nview,npts); % 2nd dim: [best/chosen, trkorig, trkorigRP]
hmapscore,hmapscorecmp,hmaproi ... % these outputs only relevant when hmbig supplied
] = viewpref3drecon(trk1,trk2,crobj,varargin)
% very experimental for RF!
% TODO: preferviewn... |
github | kristinbranson/APT-master | mycreatesubplots.m | .m | APT-master/matlab/user/mycreatesubplots.m | 1,411 | utf_8 | c3dc4156cb09d9458b7a7f39ebc70900 | % Usage:
% h = createsubplots(nrows,ncols,border)
% h = createsubplots(nrows,ncols,[borderx,bordery])
% h = createsubplots(nrows,ncols,[[sideborderx, middleborderx];[sidebordery, middlebordery]])
% h = createsubplots(...,[hfig]);
function h = mycreatesubplots(n1,n2,border,hfig)
if nargin == 0,
error('usage: createsu... |
github | kristinbranson/APT-master | absoluteOrientationQuaternion.m | .m | APT-master/matlab/user/APT2RT/absoluteOrientationQuaternion.m | 4,839 | utf_8 | 04cfe79be7eb461c5a3b109b3dff6544 | % [s R T error] = absoluteOrientationQuaternion( A, B, doScale)
%
% downloaded from http://www.mathworks.com/matlabcentral/fileexchange/22422-absolute-orientation
%
% Computes the orientation and position (and optionally the uniform scale
% factor) for the transformation between two corresponding 3D point sets Ai
% a... |
github | kristinbranson/APT-master | qMul.m | .m | APT-master/matlab/user/APT2RT/qMul.m | 1,463 | utf_8 | 3e4c9889b0b6b0a75b38766e16486336 | function Q = qMul( Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10 )
% qMul: quaternion multiplication
% Q = qMul( Q1, Q2, Q3, ..., Q10 );
% IN:
% Q1 - first quaternion
% Q2 - second quaternion
% Q3 - third quaternion
% ....
%
% OUT:
% Q - output quaternion, Q = Q1*Q2*Q3*Q4*....
%
% REMARKS:
% 1... |
github | kristinbranson/APT-master | estimatePivot.m | .m | APT-master/matlab/user/APT2RT/estimatePivot.m | 4,715 | utf_8 | 4ac098b381cdb8731ce9d23d288b1fe7 | function [pivot]= estimatePivot(points,pivot)
% function to estimate pivot/orgin that 3D points rotate about. Given 3D
% points at multiple time points that rotate about some pivot it will
% iteratively run an optimization to try and find that pivot point.
%
% See kine2RotationWrapper.m for example of how to use this.... |
github | kristinbranson/APT-master | quat2eulzyx.m | .m | APT-master/matlab/user/APT2RT/quat2eulzyx.m | 1,351 | utf_8 | c2cf9471c170a253ecdb94da1e46d9cc | % Function QUAT2EULZYX(q)
%
% CALLING FUNCTION: obj_function (frame)
% ACTIONS: Convert quaternion to Euler angles in ZYX scheme
% PARENT PROGRAM: Kine_v3_0
% LAST MODIFIED: September 26, 2007 by gwyneth
%
% Input, q, is a unit quaternion representing a rotation.
% The outputs are Euler angles in radians representing ... |
github | kristinbranson/APT-master | detectCheckerboardPoints.m | .m | APT-master/matlab/user/orthocam/detectCheckerboardPoints.m | 17,327 | utf_8 | ffa8f53808b59dbd2252114172311c76 | function [imagePoints, boardSize, imageIdx, userCanceled] = detectCheckerboardPoints(I, varargin)
% detectCheckerboardPoints Detect a checkerboard pattern in images
% detectCheckerboardPoints can detect the keypoints of a checkerboard
% calibration pattern in a single image, a set of images, or stereo image
% pai... |
github | kristinbranson/APT-master | OrthoCamCalPair.m | .m | APT-master/matlab/user/orthocam/OrthoCamCalPair.m | 24,363 | utf_8 | 0934475f674083991a8d01fa07614920 | classdef OrthoCamCalPair < CalRig
% A pair of calibrated Orthocams, with calibration info
properties
tblInt % table of intrinsics
% extrinsics
r2vec1 % [3x1]
t2vec1 % [2x1]
r2vec2 % [3x1]
t2vec2 % [2x1]
rvecs % [nPatx3] IMPORTANT: Note this has a row for EVERY PATTERN not patter... |
github | kristinbranson/APT-master | Session.m | .m | APT-master/matlab/user/orthocam/+vision/+internal/+calibration/+tool/Session.m | 33,236 | utf_8 | 8cba9ca3593612d4e4b224f1c2f06616 | % Session holds the state of the Camera Calibration App
%
% This class holds the entire state of the camera calibration UI.
% It is used to save and load the camera calibration session. It is also
% used to pass data amongst other classes.
% Copyright 2012-2013 The MathWorks, Inc.
classdef Session < handle
... |
github | kristinbranson/APT-master | mergeimports.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/mergeimports.m | 5,211 | utf_8 | 4da2dd097dd2a6bc8760a552a3772599 | %==========================================================================
% Walks through a tree structure data. Whenever it finds a structure, which
% have field named 'import' it assumes that in that field is a cell array
% and merges all structures found in that array. Parameter verb is used for
% debugging purpos... |
github | kristinbranson/APT-master | ReadYamlRaw.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/ReadYamlRaw.m | 7,855 | utf_8 | 08547bee9155d85872d5c3aa02188c11 | %==========================================================================
% Reads YAML file, converts YAML sequences to MATLAB cell columns and YAML
% mappings to MATLAB structs
%
% filename ... name of yaml file to be imported
% verbose ... verbosity level (0 or absent = no messages,
% ... |
github | kristinbranson/APT-master | makematrices.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/makematrices.m | 5,776 | utf_8 | 5e2c5a71f4db197cfef0b478896c4dd4 | %==========================================================================
% Recursively walks through a Matlab hierarchy and substitutes cell vectors
% by a matrix when possible.
% Specifically substitutes cell objects like
%
% {{1,2,3},{4,5,6}}
%
% by
%
% {1,2,3;4,5,6}
%
% It leaves other objects unchanged e... |
github | kristinbranson/APT-master | deflateimports.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/deflateimports.m | 1,778 | utf_8 | e53673892cee46273e1d082ce414e2eb | %==========================================================================
% Transforms structures:
% - import: A, B
% - import: C
% - import: D, E, F
%
% into:
% - import: A, B, C, D, F, F
%
%==========================================================================
function result = deflateimports(r)
res... |
github | kristinbranson/APT-master | dosubstitution.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/dosubstitution.m | 1,049 | utf_8 | e636b95c55cfbd365bef23bf26cca2e9 | %==========================================================================
%==========================================================================
function result = dosubstitution(r, dictionary)
if ~exist('dictionary','var')
dictionary = {};
end;
result = recurse(r, 0, dictionary);
end
functi... |
github | kristinbranson/APT-master | merge_struct.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/merge_struct.m | 1,324 | utf_8 | 598e80779e8f9b41cc46b4e653cf9c64 |
%--------------------------------------------------------------------------
% Does merge of two structures. The result is structure which is union of
% fields of p and s. If there are equal field names in p and s, fields in p
% are overwriten with their peers from s.
%
function result = merge_struct(p, s, donotmerge, ... |
github | kristinbranson/APT-master | datadump.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/datadump.m | 1,033 | utf_8 | 494cf2ee060b8fc4ea99610e7e8b6361 | function datadump(data)
recurse(data, 0, []);
end
function result = recurse(data, level, addit)
indent = repmat(' | ',1,level);
if iscell(data) && ~ismymatrix(data)
result = iter_cell(data, level, addit);
elseif isstruct(data)
result = iter_struct(data, level, addit);
else
f... |
github | kristinbranson/APT-master | ReadYaml.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/ReadYaml.m | 2,924 | utf_8 | 1c28bc6dd157d003287d1d0bf38cc065 | %==========================================================================
% Actually reads YAML file and transforms it using several mechanisms:
%
% - Transforms mappings and lists into Matlab structs and cell arrays,
% for timestamps uses DateTime class, performs all imports (when it
% finds a struct field... |
github | kristinbranson/APT-master | doinheritance.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/doinheritance.m | 3,174 | utf_8 | 2a6bc392a640f0b1c1388ddc7032b751 | %==========================================================================
% Searches through some hierarchy and performs inheritance. Whenever finds
% struct field named 'parent' it tries to find all points, defined by its
% content and uses them as the struct ancestors. Example:
%
% Given:
%
% s.a.a = 1
% s.a.b ... |
github | kristinbranson/APT-master | WriteYaml.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/WriteYaml.m | 6,739 | utf_8 | 7457702c6232fc6ccb7c1304975670f7 | %==========================================================================
% Recursively walks through a Matlab hierarchy and converts it to the
% hierarchy of java.util.ArrayListS and java.util.MapS. Then calls
% Snakeyaml to write it to a file.
%=======================================================================... |
github | kristinbranson/APT-master | selftest_yamlmatlab.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/Tests/selftest_yamlmatlab.m | 2,954 | utf_8 | 4b0ea27db95878c651e0c46855f39e18 | function selftest_yamlmatlab(varargin)
% This function tests consistency of YAMLMatlab, by default, the results
% are stored in selftest_report.html in current work folder.
% Example
% >> selftest_yamlmatlab()
% >> selftest_yamlmatlab(outFileName)
%
% %=================================================================... |
github | kristinbranson/APT-master | test_ReadYaml.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/Tests/test_ReadYaml.m | 8,883 | utf_8 | 1647e455763d95a6c10948a007741f02 | function stat = test_ReadYaml()
% this function tests reading in the yaml file
stat.ok = 1;
stat.desc = '';
try
%stat.test_ReadYaml_SimpleStructure = test_ReadYaml_SimpleStructure();
%stat.test_ReadYaml_DateTime = test_ReadYaml_DateTime();
fprintf('Testing read ');
stat.test_RY_Matrices = test_RY_... |
github | kristinbranson/APT-master | test_WriteYaml.m | .m | APT-master/matlab/YAMLMatlab_0.4.3/Tests/test_WriteYaml.m | 1,745 | utf_8 | de37cbde8a33d40a7b1f05ef8e7f16cf | function stat = test_WriteYaml()
stat.ok = 1;
stat.desc = '';
try
fprintf('Testing write ');
stat.test_WY_Matrices = test_WY_Universal(PTH_PRIMITIVES(), 'matrices');
fprintf('.');
stat.test_WY_FloatingPoints = test_WY_Universal(PTH_PRIMITIVES(), 'floating_points');
fprintf('.');
stat.test_WY_In... |
github | kristinbranson/APT-master | propertiesGUI.m | .m | APT-master/matlab/propertiesGUI/propertiesGUI.m | 69,523 | utf_8 | 63f864a791fdbe13b6151d32c275c80a | function [hPropsPane,parameters] = propertiesGUI(hParent, parameters, filename, selectedBranch)
% propertiesGUI displays formatted editable list of properties
%
% Syntax:
%
% Initialization:
% [hPropsPane,parameters] = propertiesGUI(hParent, parameters)
%
% Run-time interaction:
% propertiesGUI(hPropsPane, mo... |
github | kristinbranson/APT-master | propertiesGUI2.m | .m | APT-master/matlab/propertiesGUI/propertiesGUI2.m | 64,272 | utf_8 | 9d165483795a2de780a41a625dfe1730 | function [hPropsPane,parameters] = propertiesGUI2(hParent,parameters,varargin)
% propertiesGUI displays formatted editable list of properties
%
% Syntax:
%
% Initialization:
% [hPropsPane,parameters] = propertiesGUI(hParent, parameters)
%
% Run-time interaction:
% propertiesGUI(hPropsPane, mode, filename, bra... |
github | kristinbranson/APT-master | savejson.m | .m | APT-master/matlab/jsonlab-1.2/jsonlab/savejson.m | 18,983 | utf_8 | 2f510ad749556cadd303786e2549f30a | function json=savejson(rootname,obj,varargin)
%
% json=savejson(rootname,obj,filename)
% or
% json=savejson(rootname,obj,opt)
% json=savejson(rootname,obj,'param1',value1,'param2',value2,...)
%
% convert a MATLAB object (cell, struct or array) into a JSON (JavaScript
% Object Notation) string
%
% author: Qianqian Fa... |
github | kristinbranson/APT-master | loadjson.m | .m | APT-master/matlab/jsonlab-1.2/jsonlab/loadjson.m | 16,145 | ibm852 | 7582071c5bd7f5e5f74806ce191a9078 | function data = loadjson(fname,varargin)
%
% data=loadjson(fname,opt)
% or
% data=loadjson(fname,'param1',value1,'param2',value2,...)
%
% parse a JSON (JavaScript Object Notation) file or string
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% created on 2011/09/09, including previous works from
%
% ... |
github | kristinbranson/APT-master | loadubjson.m | .m | APT-master/matlab/jsonlab-1.2/jsonlab/loadubjson.m | 13,300 | utf_8 | b15e959f758c5c2efa2711aa79c443fc | function data = loadubjson(fname,varargin)
%
% data=loadubjson(fname,opt)
% or
% data=loadubjson(fname,'param1',value1,'param2',value2,...)
%
% parse a JSON (JavaScript Object Notation) file or string
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% created on 2013/08/01
%
% $Id$
%
% input:
% fname: ... |
github | kristinbranson/APT-master | saveubjson.m | .m | APT-master/matlab/jsonlab-1.2/jsonlab/saveubjson.m | 17,723 | utf_8 | 3414421172c05225dfbd4a9c8c76e6b3 | function json=saveubjson(rootname,obj,varargin)
%
% json=saveubjson(rootname,obj,filename)
% or
% json=saveubjson(rootname,obj,opt)
% json=saveubjson(rootname,obj,'param1',value1,'param2',value2,...)
%
% convert a MATLAB object (cell, struct or array) into a Universal
% Binary JSON (UBJSON) binary string
%
% author... |
github | kristinbranson/APT-master | linkToolName.m | .m | APT-master/matlab/private_imuitools/linkToolName.m | 1,189 | utf_8 | 89dfa4a309b7e84fbf91810d426b0e01 | function linkToolName(tool_fig,target_fig,tool_name)
% LINKTOOLNAME(TOOL_FIG, TARGET_FIG, TOOL_NAME) uses the function
% createFigureName to set the name of TOOL_FIG. It then creates a listener
% that will update the TOOL_FIG name property to match changes that occur
% to the TARGET_FIG name property.
% Copyright 2... |
github | kristinbranson/APT-master | getHistogramData.m | .m | APT-master/matlab/private_imuitools/getHistogramData.m | 6,898 | utf_8 | 7bbcc2b37d6ad661d63f420362f00841 | function histDataStruct = getHistogramData(hImage)
% GETHISTOGRAMDATA Returns data needed to create the image histogram.
% The fields inside of HISTDATASTRUCT are:
% histRange Histogram Range
% finalBins Bin locations
% counts Histogram counts
% nBins Number of bins
%
%
% ... |
github | kristinbranson/APT-master | reactToImageChangesInFig.m | .m | APT-master/matlab/private_imuitools/reactToImageChangesInFig.m | 2,227 | utf_8 | 2ed2ec78f86c0ad24b2ffbe10e50f788 | function reactToImageChangesInFig(target_images,h_caller,deleteFcn,refreshFcn)
%reactToImageChangesInFig sets up listeners to react to image changes.
% reactToImageChangesInFig(TARGET_IMAGES,H_CALLER,DELETE_FCN,REFRESH_FCN)
% calls DELETE_FCN if any of TARGET_IMAGES are deleted and calls the
% REFRESH_FCN if the ... |
github | kristinbranson/APT-master | createWindowClipPanel.m | .m | APT-master/matlab/private_imuitools/createWindowClipPanel.m | 19,510 | utf_8 | 2f85477bc1775ac11b9e2a3eb6644e90 | function [backgroundColor, API, windowClipPanelWidth] = ...
createWindowClipPanel(hFlow, imgModel)
%createWindowClipPanel Create windowClipPanel in imcontrast tool
% outputs =
% createWindowClipPanel(hFig,imageRange,imgHasLessThan5Levels,imgModel)
% creates the WindowClipPanel (top panel in contrast tool) in ... |
github | kristinbranson/APT-master | windowlevel.m | .m | APT-master/matlab/private_imuitools/windowlevel.m | 6,395 | utf_8 | 34ac51cace55426f02e045ae2fe7cb63 | function windowlevel(hImage, hCaller)
%WINDOWLEVEL Interactive Window/Level adjustment.
% WINDOWLEVEL(HIMAGE, HCALLER) activates window/level interactivity on
% the target image. Clicking and dragging the mouse on the target image
% changes the image's window values. Dragging the mouse horizontally from
% lef... |
github | kristinbranson/APT-master | createClimWindowOnAxes.m | .m | APT-master/matlab/private_imuitools/createClimWindowOnAxes.m | 5,987 | utf_8 | 61038fe5705cfc3910dfa2c8e29d4be8 | function widgetAPI = createClimWindowOnAxes(hAx,clim,maxCounts)
%createClimWindowOnAxes Create draggable window in imcontrast tool
% widgetAPI = createClimWindowOnAxes(hAx,clim,maxCounts) creates a draggable
% window on the axes specified by the handle HAX.
%
% This is used by IMCONTRAST.
% Copyright 2005-2008... |
github | kristinbranson/APT-master | graysampler.m | .m | APT-master/matlab/private_imuitools/graysampler.m | 1,512 | utf_8 | 93fb2d477c281fb2b35666fbd23db8ce | function value = graysampler(imageHandle)
%GRAYSAMPLER Returns grayscale value of pixel after a button press.
% VALUE = GRAYSAMPLER(IMAGEHANDLE) returns a grayscale value from an
% image with a handle of IMAGEHANDLE. The value will be the intensity of
% the pixel under the cursor when a mouse button is pressed.
... |
github | kristinbranson/APT-master | getHistogramData_KB.m | .m | APT-master/matlab/private_imuitools/getHistogramData_KB.m | 7,148 | utf_8 | 675db062b0664d404ac35b4fbcf0f96e | function histDataStruct = getHistogramData_KB(hImage,ClimInit)
% GETHISTOGRAMDATA Returns data needed to create the image histogram.
% The fields inside of HISTDATASTRUCT are:
% histRange Histogram Range
% finalBins Bin locations
% counts Histogram counts
% nBins Number of b... |
github | kristinbranson/APT-master | treeTable.m | .m | APT-master/matlab/treeTable/treeTable.m | 32,737 | UNKNOWN | af55f43b7b36db15c296003778abf541 | function jtable = treeTable(varargin)
% treeTable - create Java-based tree-table based on javax.swing.JTable and javax.swing.JTree
%
% Syntax:
% jtable = treeTable (pnContainer, headers, data, 'PropName',PropValue, ...)
%
% Input Parameters:
% pnContainer - optional handle to container uipanel or figure. If empty... |
github | kristinbranson/APT-master | rcprTrain.m | .m | APT-master/matlab/trackers/cpr/rcprTrain.m | 9,703 | utf_8 | 0e9d13c4baf373097745867e39f63def | function [regModel,pAll] = rcprTrain( Is, pGt, varargin )
% Train multistage robust cascaded shape regressor
%
% USAGE
% [regModel,pAll] = rcprTrain( Is, pGt, varargin )
%
% INPUTS
% Is - cell [N] input images, optionally with 'channels' in 3rd dim
% pGt - [NxR] ground truth shape for each image
% vararg... |
github | kristinbranson/APT-master | RegressorCascade.m | .m | APT-master/matlab/trackers/cpr/RegressorCascade.m | 42,774 | utf_8 | 176c63b597402e7d832b82f8c95b7027 | classdef RegressorCascade < handle
properties %(SetAccess=private)
% model/params
%
% These are set at construction time and are immutable. You can't set
% them, that would require a full reinit of the obj anyway. So you can
% create a RegressorCascade, train it, and propagate through it, but i... |
github | kristinbranson/APT-master | rcprTest1.m | .m | APT-master/matlab/trackers/cpr/rcprTest1.m | 9,704 | utf_8 | c4c0c7f83702a4faeec4c987fc24f02a | function [p,p_t,fail] = rcprTest1( Is, regModel, p, regPrm, ftrPrm, iniData, ...
verbose, prunePrm)
% Apply robust cascaded shape regressor.
%
% USAGE
% p = rcprTest1( Is, regModel, p, regPrm, bboxes, verbose, prunePrm)
%
% INPUTS
% Is - cell(N,1) input images. Optionally with channels in 3rd dim
% regMode... |
github | kristinbranson/APT-master | regTrain.m | .m | APT-master/matlab/trackers/cpr/regTrain.m | 11,459 | utf_8 | eb7bb03bff34e65c8b1160018919a56a | function [regInfo,ysPr,timingInfo] = regTrain(data,ys,varargin)
% Train boosted regressor.
%
% USAGE
% [regInfo,ysPr] = regTrain( data, ys, [varargin] )
%
% INPUTS
% data - [NxF] N length F feature vectors
% ys - [NxD] target output values
% varargin - additional params (struct or name/value pair... |
github | kristinbranson/APT-master | shapeGt.m | .m | APT-master/matlab/trackers/cpr/shapeGt.m | 45,299 | utf_8 | 4bb91b1ff6703656e507c3a6519f82ec | function varargout = shapeGt( action, varargin )
%
% Wrapper with utils for handling shape as list of landmarks
%
% shapeGt contains a number of utility functions, accessed using:
% outputs = shapeGt( 'action', inputs );
%
% USAGE
% varargout = shapeGt( action, varargin );
%
% INPUTS
% action - string specifying... |
github | kristinbranson/APT-master | regApply.m | .m | APT-master/matlab/trackers/cpr/regApply.m | 4,716 | utf_8 | 4210de640086e9c55be2a3176fa8d56d | function ysSum = regApply(p,X,regInfo,regPrm,ftrPrm)
% Apply boosted regressor.
%
% USAGE
% ysSum = regApply(p,X,regInfo,regPrm)
%
% INPUTS
% p - [NxD] initial pose. AL20151204: This arg used only for its size
% X - [NxF] N length F feature vectors
% regInfo - structure containing regressor ... |
github | kristinbranson/APT-master | read_exp_list_NONlabeled.m | .m | APT-master/matlab/trackers/cpr/misc/read_exp_list_NONlabeled.m | 973 | utf_8 | d83af70d167d7c43cecd11550564a750 | % Read list of NON labeled experiments.
% - fid is the file identifer of a previously opened text flie containing
% the path to one or directories containing experiment folders.
function [expdirs_all,moviefiles_all,labeledpos,dotest]=read_exp_list_NONlabeled(fid)
datadir={};
while true
l = fgetl(fid);
if ~... |
github | kristinbranson/APT-master | trkppAssess.m | .m | APT-master/matlab/trackers/cpr/misc/trkppAssess.m | 8,989 | utf_8 | 2ebd22ff6fd44777257daf985d00eb6c | function trkppAssess(varargin)
% trkppAssess(varargin)
% Assess tracking via various metrics correlated to tracking err
%
% resFile: string, results file
% PVs:
% - res. Results structure
% - resFile. If res not supplied, file to load for res
% - td. CPRData object
% - tdFile. If td is not supplied, file to load for t... |
github | kristinbranson/APT-master | read_exp_list_labeled.m | .m | APT-master/matlab/trackers/cpr/misc/read_exp_list_labeled.m | 1,321 | utf_8 | 5a94fb7c18821a670db9798b39f1f664 | % Read list of labeled experiments and extract labels.
% - fid is the file identifer of a previously opened text flie containing
% the path to one or several label files.
% - Each labels file will be the output of the Labeler, containing:
% + expdirs, a cell containing the path to each video
% + label... |
github | kristinbranson/APT-master | train_cvcluster.m | .m | APT-master/matlab/trackers/cpr/misc/train_cvcluster.m | 7,470 | utf_8 | cd49dea41760527900e56ab9fc50dc1d | % Train function
% + phisTr: training labels.
% + bboxesTr: bounding boxes.
% + IsTr: training images
% + cpr_type: 1 for Cao et al 2013, 2 for Burgos-Artizzu et al 2013
% (without occlusion) and 3 for Burgos-Artizzu et al 2013
% (occlusion).
% + model_type: 'larva' (Mar... |
github | kristinbranson/APT-master | CPRData.m | .m | APT-master/matlab/trackers/cpr/misc/CPRData.m | 57,375 | utf_8 | 874580794433b56a7d83d6f734f03bf4 | classdef CPRData < handle
properties
Name % Name of this CPRData
MD % [NxR] Table of Metadata
I % [NxnView] cell vec, images
pGT % [NxD] GT shapes for I
bboxes % [Nx2d] bboxes for I
Ipp % [NxnView] cell vec of preprocessed 'channel' images. .iPP{i,iView} is... |
github | kristinbranson/APT-master | SaveFigLotsOfWays.m | .m | APT-master/matlab/trackers/cpr/misc/SaveFigLotsOfWays.m | 1,327 | utf_8 | d8efe875b57b1188681a763615d40ffb | % outfilenames = SaveFigLotsOfWays(hfig,basename,[formats])
function outfilenames = SaveFigLotsOfWays(hfig,basename,formats)
if nargin < 3,
formats = {'fig','png','pdf','svg'};
end
[path,basename] = myfileparts(basename);
outfilenames = {};
if ismember('svg',formats),
filename = [basename,'.svg'];
... |
github | kristinbranson/APT-master | Features.m | .m | APT-master/matlab/trackers/cpr/misc/Features.m | 42,330 | utf_8 | c4a4636f93314223d7115d5f0c96d733 | classdef Features
properties (Constant)
% take sgs = SGS{i1,i2}; it will have a hist in range [0,max]; this
% array gives the maxes for sig1,sig2 = [0 2 4 8]
JAN_SGS_MAX_SIG0248 = [
103 44 30 17;37 25 19 12;16 15 13 9;9 9 9 7];
JAN_SGS_99P9_SIG0248_160211 = [
53.5000 34.500... |
github | kristinbranson/APT-master | test_rcpr.m | .m | APT-master/matlab/trackers/cpr/misc/test_rcpr.m | 1,161 | utf_8 | ced6afedf359ad1c3d992f61833a772a | % Test function
% + phisT: labels to compute the loss (empty if there are no labels)
% + bboxesT: bounding boxes
% + IsT: images
% + regModel: regressor model (obtained from training)
% + regParam: regression parameters
% + prunePrm: prune parameters
% + piT: inital la... |
github | kristinbranson/APT-master | train.m | .m | APT-master/matlab/trackers/cpr/misc/train.m | 8,125 | utf_8 | ac3d9214d384bb4929c30c2423067189 | % Train function
% + phisTr: training labels.
% + bboxesTr: bounding boxes.
% + IsTr: training images
%
% AL 20160314: semi-obsolete stuff
%
% + cpr_type: 1 for Cao et al 2013, 2 for Burgos-Artizzu et al 2013
% (without occlusion) and 3 for Burgos-Artizzu et al 2013
% ... |
github | kristinbranson/APT-master | test_rcpr3D.m | .m | APT-master/matlab/trackers/cpr/misc/test_rcpr3D.m | 868 | utf_8 | cc0188aef7b4d5ce0bb16c324af81bb1 | % Test function for 3D recosntruction
% + bboxesT: bounding boxes
% + IsT: images
% + regModel: regressor model (obtained from training)
% + regParam: regression parameters
% + prunePrm: prune parameters
% + piT: inital label position (optional)
function [pT3D,pRTT3D]=test_rcpr3D(bbo... |
github | kristinbranson/APT-master | RigViewGUI.m | .m | APT-master/matlab/trackers/cpr/romain/RigViewGUI.m | 4,305 | utf_8 | 1861b1c51818c42e94582f66fd117b8b | function varargout = RigViewGUI(varargin)
% RIGVIEWGUI MATLAB code for RigViewGUI.fig
% RIGVIEWGUI, by itself, creates a new RIGVIEWGUI or raises the existing
% singleton*.
%
% H = RIGVIEWGUI returns the handle to a new RIGVIEWGUI or the handle to
% the existing singleton*.
%
% RIGVIEWGUI('CALL... |
github | kristinbranson/APT-master | track_video_all.m | .m | APT-master/matlab/trackers/cpr/video_tracking/track_video_all.m | 6,067 | utf_8 | 9a0dfdd04329477b67c39166189c5e49 | % Track multiple videos.
% There are three steps:
% 1. Main tracking: All the landmarks are tracked simultaneously (even if
% there are multiple views)
% 2. The results are smoothed using a median filter.
% 3. A bounding of side 80 centered in each of the points form step 2.
% Each point is the tracke... |
github | kristinbranson/APT-master | poseNMS_K.m | .m | APT-master/matlab/trackers/cpr/video_tracking/poseNMS_K.m | 13,710 | utf_8 | e2048b66465e4a756082c10b55b58faf | function [Y,e,eData,eSmth,eCnst] = poseNMS_K( X, S, R, K, varargin )
%% "Merging Pose Estimates Across Space and Time". X.P. Burgos-Artizzu,
% D.Hall, P.Perona, P.Dollar. BMVC 2013, Bristol, UK.
%
% Compute sequence of trajectories explaining observed detections, for a
% given number of objects K known. (For unkn... |
github | kristinbranson/APT-master | track_video.m | .m | APT-master/matlab/trackers/cpr/video_tracking/track_video.m | 3,736 | utf_8 | b22a67976391c10a49364a85517b659f | % Function for tracking a single video. The video is tracked partSize
% frames at a time
% - domerge: merge the results as in faceTracking.m (Burgos-Artizzu et al.,
% 2103)
% - dotest: compare the results with manually tracked labels and compute
% the loss.
% - bboxes: bonding boxes
% + empty to use the wh... |
github | kristinbranson/APT-master | track_video_3D_all.m | .m | APT-master/matlab/trackers/cpr/video_tracking/track_video_3D_all.m | 6,239 | utf_8 | 0d4ecca9e9ec0926a81363a6761cca68 | % Track multiple videos in 3D (main tracking) and 2D (secondary tracking).
% There are three steps:
% 1. Main tracking: All the landmarks are tracked simultaneously (even if
% there are multiple views)
% 2. The results are reprojected in 2D and smoothed using a median filter.
% 3. A bounding of side 80 center... |
github | kristinbranson/APT-master | poseNMS.m | .m | APT-master/matlab/trackers/cpr/video_tracking/poseNMS.m | 4,675 | utf_8 | 8b37b12c25925c379452b6274e0c60c4 | function Y = poseNMS( X, S, R, maxK, prmTrack )
%% "Merging Pose Estimates Across Space and Time". X.P. Burgos-Artizzu,
% D.Hall, P.Perona, P.Dollar. BMVC 2013, Bristol, UK.
%
% Compute sequence of trajectories explaining observed detections for a
% unknown number of objects (Section 2.3 in paper).
% (For known numb... |
github | kristinbranson/APT-master | track_video_bb3D_all.m | .m | APT-master/matlab/trackers/cpr/video_tracking/track_video_bb3D_all.m | 6,002 | utf_8 | 5681bbfa5352f921194fddaddf377504 | % Track multiple videos in 3D.
% There are three steps:
% 1. Main tracking: All the landmarks are tracked simultaneously (even if
% there are multiple views)
% 2. The results are smoothed using a median filter.
% 3. A bounding cube of side 80 centered in each of the points form step 2.
% Each point is the tr... |
github | psmoveservice/psmoveapi-master | mat4fromvec7.m | .m | psmoveapi-master/contrib/coreg_check_matlab/mat4fromvec7.m | 748 | utf_8 | 871a014361f4caccf27df1961dee7eed | function mat4 = mat4fromvec7(vec7)
%mat4fromvec7(vec7)
%Returns a 4x4 transformation matrix representing the pose in vec7
%where vec7 is [posx posy posz quatw quatx quaty quatz]
position = vec7(1:3);
quaternion = vec7(4:7);
mat4 = eye(4); mat4(1:3, 4) = position;
mat4 = mat4 * mat4fromquat(quaternion);
functi... |
github | songcheng/OpenSoT-master | make.m | .m | OpenSoT-master/external/qpOASES-ext/interfaces/simulink/make.m | 8,452 | utf_8 | 6655d64d04de9b8ceb8dd0cfc3b82a13 | function [] = make( varargin )
%MAKE Compiles the Simulink interface of qpOASES.
%
%Type make to compile all interfaces that
% have been modified,
%type make clean to delete all compiled interfaces,
%type make clean all to first delete and then compile
% ... |
github | songcheng/OpenSoT-master | qpOASES_options.m | .m | OpenSoT-master/external/qpOASES-ext/interfaces/octave/qpOASES_options.m | 10,337 | utf_8 | cbb59a749eb43c2d272aef7d18e0377d | %qpOASES -- An Implementation of the Online Active Set Strategy.
%Copyright (C) 2007-2014 by Hans Joachim Ferreau, Andreas Potschka,
%Christian Kirches et al. All rights reserved.
%
%qpOASES is distributed under the terms of the
%GNU Lesser General Public License 2.1 in the hope that it will be
%useful, but WITHOUT ANY... |
github | songcheng/OpenSoT-master | make.m | .m | OpenSoT-master/external/qpOASES-ext/interfaces/octave/make.m | 8,327 | utf_8 | 7584bac3e96bbd9e1a56f9033aa4934b | function [] = make( varargin )
%MAKE Compiles the octave interface of qpOASES.
%
%Type make to compile all interfaces that
% have been modified,
%type make clean to delete all compiled interfaces,
%type make clean all to first delete and then compile
% ... |
github | songcheng/OpenSoT-master | qpOASES_options.m | .m | OpenSoT-master/external/qpOASES-ext/interfaces/matlab/qpOASES_options.m | 10,339 | utf_8 | 5161990085a21a3db569d608b6088ce3 | %qpOASES -- An Implementation of the Online Active Set Strategy.
%Copyright (C) 2007-2014 by Hans Joachim Ferreau, Andreas Potschka,
%Christian Kirches et al. All rights reserved.
%
%qpOASES is distributed under the terms of the
%GNU Lesser General Public License 2.1 in the hope that it will be
%useful, but WITHOUT ANY... |
github | songcheng/OpenSoT-master | make.m | .m | OpenSoT-master/external/qpOASES-ext/interfaces/matlab/make.m | 8,220 | utf_8 | 5cebb0c00a23ac9255346516b8e1c9a1 | function [] = make( varargin )
%MAKE Compiles the Matlab interface of qpOASES.
%
%Type make to compile all interfaces that
% have been modified,
%type make clean to delete all compiled interfaces,
%type make clean all to first delete and then compile
% ... |
github | mtudaya/ProjectP-master | sv_channel_parameter.m | .m | ProjectP-master/SV_model/sv_channel_parameter.m | 1,445 | utf_8 | 7cf2045c5a8bde50fad3072d4fe9e35a | %Function sv_channel_parameter
function [Lam,lambda,Gam,gamma,std_ln_1,std_ln_2,nlos,std_shdw] = sv_channel_parameter( channel_model )
% Return S-V model parameters for standard UWB channel models
% Lam Cluster arrival rate (clusters per nsec)
% lambda Ray arrival rate (rays per nsec)
% Gam Cluster decay factor (time c... |
github | mtudaya/ProjectP-master | sv_channel_parameter.m | .m | ProjectP-master/simulation_old/SV/sv_channel_parameter.m | 1,444 | utf_8 | c1f0592cc2f5b15652c392a1535e420f | %Function sv_channel_parameter
function [Lam,lambda,Gam,gamma,std_ln_1,std_ln_2,nlos,std_shdw] = sv_channel_parameter( channel_model )
% Return S-V model parameters for standard UWB channel models
% Lam Cluster arrival rate (clusters per nsec)
% lambda Ray arrival rate (rays per nsec)
% Gam Cluster decay factor (time c... |
github | mtudaya/ProjectP-master | ista.m | .m | ProjectP-master/simulation_old/Ivan_SP/matlab (2)/matlab/misc/ista.m | 1,025 | utf_8 | decf175e687758ad6eed2e37b5a31345 | function [x,J] = ista(y,H,Ht,lambda,alpha,Nit)
% [x, J] = ista(y, H, Ht, lambda, alpha, Nit)
% L1-regularized signal restoration using the iterated
% soft-thresholding algorithm (ISTA)
% Minimizes J(x) = norm2(y-H*x)^2 + lambda*norm1(x)
% INPUT
% y - observed signal
% H - function handle
% Ht - function handle f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.