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 | load_tracks.m | .m | APT-master/external/JAABA/filehandling/load_tracks.m | 2,820 | utf_8 | 67fcaa1c4ee6bfef4b16de7c572ed584 | % [trx,matname,succeeded] = load_tracks(matname,[moviename])
function [trx,matname,succeeded,timestamps,rest] = load_tracks(matname,moviename,varargin)
[dosave,savename,annname,verbose] = myparse(varargin,'dosave',false,'savename','','annname','','verbose',false);
succeeded = false;
trx = [];
rest = struct;
isinter... |
github | kristinbranson/APT-master | sbfmf_write_gui.m | .m | APT-master/external/JAABA/filehandling/sbfmf_write_gui.m | 13,455 | utf_8 | 14766244be9a07b106a6db18549997d2 | function varargout = sbfmf_write_gui(varargin)
% SBFMF_WRITE_GUI M-file for sbfmf_write_gui.fig
% SBFMF_WRITE_GUI, by itself, creates a new SBFMF_WRITE_GUI or raises the existing
% singleton*.
%
% H = SBFMF_WRITE_GUI returns the handle to a new SBFMF_WRITE_GUI or the handle to
% the existing singlet... |
github | kristinbranson/APT-master | ufmf_read_header.m | .m | APT-master/external/JAABA/filehandling/ufmf_read_header.m | 4,287 | utf_8 | c40289952ce1905d95fb1fd02b286b1d | % header = ufmf_read_header(filename)
function header = ufmf_read_header(filename)
MAXNMEANSCACHED = 5;
header.filename = filename;
% open the file for reading, binary, little-endian
fp = fopen( filename, 'rb' , 'ieee-le');
if ~exist(filename,'file'),
error('File %s does not exist',filename);
end
if fp < 0,
erro... |
github | kristinbranson/APT-master | SaveFMFSettings.m | .m | APT-master/external/JAABA/filehandling/SaveFMFSettings.m | 11,886 | utf_8 | db9a238f47bf2e67fae0be93d6c21e9e | function varargout = SaveFMFSettings(varargin)
% SAVEFMFSETTINGS M-file for SaveFMFSettings.fig
% SAVEFMFSETTINGS, by itself, creates a new SAVEFMFSETTINGS or raises the existing
% singleton*.
%
% H = SAVEFMFSETTINGS returns the handle to a new SAVEFMFSETTINGS or the handle to
% the existing singlet... |
github | kristinbranson/APT-master | verify_tracks.m | .m | APT-master/external/JAABA/filehandling/verify_tracks.m | 2,772 | utf_8 | 22c20222b6ca75cdf6edf74f39964b23 | function [isvalid msg] = verify_tracks(filename,targettype)
% function [isvalid msg] = verify_tracks(filename,targettype)
% Check integrity of tracks file (see published doc as a guide).
%
% filename: full path to trx file
% targettype: JLabelData targetType
%
% isvalid: true if trx file passes all checks, false other... |
github | kristinbranson/APT-master | save_tracks.m | .m | APT-master/external/JAABA/filehandling/save_tracks.m | 678 | utf_8 | 5635e4a9f27df6f9f1581fbe8ae2f478 | % succeeded = save_tracks(trx,matname,...)
% optional arguments:
% 'doappend' = false
% 'varname' = trx
function succeeded = save_tracks(trx,matname,varargin)
[doappend,varname,timestamps] = myparse(varargin,'doappend',false,'varname','trx','timestamps',[]);
succeeded = false;
if isfield(trx,'f2i'),
trx = rmfield(... |
github | kristinbranson/APT-master | mmfwriter.m | .m | APT-master/external/JAABA/filehandling/mmfwriter.m | 6,447 | utf_8 | 07f97372639acd2ddca1d65290dad3e5 | %mmf writer
function [nkeyframes,nframes]=mmfwriter(inputfile,outputfile,firstframe,lastframe)
KEYFRAMEINTERVAL = 180;
obj=VideoReader(inputfile);
foutput=fopen(outputfile,'wb');
%load text
thisPath = mfilename('fullpath');
[parentDir] = fileparts(thisPath);
textfilename = fullfile(parentDir,'text.text');
ftexto=fope... |
github | kristinbranson/APT-master | mmf_read_mean.m | .m | APT-master/external/JAABA/filehandling/mmf_read_mean.m | 1,368 | utf_8 | ec31212f50698b1569444b66c336d2df | function [im,header] = mmf_read_mean(header,varargin)
[meani,framei] = myparse(varargin,'meani',[],'framei',[]);
fp = header.fid;
meani = [meani,header.frame2mean(framei)];
if isempty(meani),
[im,header] = mmf_read_mean_helper(fp,header);
else
if length(meani) > 1,
im = zeros([header.nr,header.nc,length(mean... |
github | kristinbranson/APT-master | mmf_get_readframe_fcn.m | .m | APT-master/external/JAABA/filehandling/mmf_get_readframe_fcn.m | 927 | utf_8 | b4958b9cec3bef015a2e28a2a5070d95 | % readframe = mmf_get_readframe_fcn(header)
%
% Returns the handle to a function which inputs the frame number and
% outputs the corresponding frame for a MMF file described by the input
% 'header'.
%
% Note that this 'header' is modified by mmf_read_frame and that header
% seems to be stored in the function ha... |
github | kristinbranson/APT-master | mmfwriter2.m | .m | APT-master/external/JAABA/filehandling/mmfwriter2.m | 4,951 | utf_8 | 9d933b73cc8c576906e49877af4e3231 | %mmf writer
function [keyframes,nframes]=mmfwriter2(inputfile,outputfile,obj,firstframe,lastframe)
%obj=VideoReader(inputfile);
foutput=fopen(outputfile,'wb');
%load text
ftexto=fopen('/groups/visitors/home/albam/Desktop/mmfreader/text.text');
texto=[];
for i=1:15
linea=fgets(ftexto);
texto=[texto linea];
end
%write... |
github | kristinbranson/APT-master | sbfmf_read_header.m | .m | APT-master/external/JAABA/filehandling/sbfmf_read_header.m | 734 | utf_8 | 91706e5981ebb8c0962aa7ea6fe87e34 | % [nr,nc,nframes,bgcenter,bgstd,frame2file,version,differencemode] = sbfmf_read_header(filename)
function [nr,nc,nframes,bgcenter,bgstd,frame2file,version,differencemode] = ...
sbfmf_read_header(filename)
fp = fopen( filename, 'r' );
nbytesver = double( fread( fp, 1, 'uint32' ) );
version = fread(fp,nbytesver);
nc ... |
github | kristinbranson/APT-master | createdata_perfile.m | .m | APT-master/external/JAABA/filehandling/createdata_perfile.m | 4,650 | utf_8 | 22d1e4536bc83c22c407115989e1c27d | % data = createdata_perfile(moviename,matname,annname)
%
% inputs:
% moviename: name of movie file
% matname: name of matfile in which tracks are stored
% annname: name of annotation file in which parameters are written
%
% outputs:
% data: array of structures of size 1 x nflies
% data(i) has the following fields:
% ... |
github | kristinbranson/APT-master | sbfmfreadframe.m | .m | APT-master/external/JAABA/filehandling/sbfmfreadframe.m | 242 | utf_8 | fa0250fef3c49dcbacdfd279272ab965 | % [im,stamp] = sbfmfreadframe(f,fid,frame2file,bgcenter)
function [im,stamp] = sbfmfreadframe(f,fid,frame2file,bgcenter)
if fseek(fid,frame2file(f),'bof') == 0,
[im,stamp] = sbfmf_read_frame(fid,bgcenter);
else
im = -1;
stamp = -1;
end |
github | kristinbranson/APT-master | showufmf.m | .m | APT-master/external/JAABA/filehandling/showufmf.m | 24,529 | utf_8 | 4a9b24ffbae856079faa95e1350ff894 | function varargout = showufmf(varargin)
% showufmf
%
% Opens a GUI to show UFMF-compressed video
% Optional inputs:
%
% UFMFName: Name of input video.
%
%
% Edit the above text to modify the response to help showufmf
% Last Modified by GUIDE v2.5 18-Jul-2014 11:42:42
% Begin initialization code - DO NOT EDIT
gui_Si... |
github | kristinbranson/APT-master | ufmf_get_readframe_fcn.m | .m | APT-master/external/JAABA/filehandling/ufmf_get_readframe_fcn.m | 1,034 | utf_8 | faa70980f1fde5a8001f2057466e8066 | % readframe = ufmf_get_readframe_fcn(header)
%
% Returns the handle to a function which inputs the frame number and
% outputs the corresponding frame for a UFMF file described by the input
% 'header'.
%
% Note that this 'header' is modified by ufmf_read_frame and that header
% seems to be stored in the function... |
github | kristinbranson/APT-master | mmf_read_header.m | .m | APT-master/external/JAABA/filehandling/mmf_read_header.m | 9,913 | utf_8 | 4892f0b7cabe64b5a7019811cc922376 | % header = mmf_read_header(filename)
% TODO: handle multichannel data, non 8-bit data
% mmf format documentation:
% Set of Image Stacks representing a movie. Beginning of file is a header, with this format:
% 10240 byte zero padded header beginning with a textual description of the file, followed by \0 then the follow... |
github | kristinbranson/APT-master | cadabra2ctrax.m | .m | APT-master/external/JAABA/filehandling/cadabra2ctrax.m | 7,804 | utf_8 | 6e491db60e27bff7409c309b09be576a | % [succeeded,outmatname,trx] = cadabra2ctrax(featname,roiname,moviename,[outmatname],[doflipup],[dofliplr],[rot])
% inputs cadabra mat file output names, loads in the trajectories, and
% converts to ctrax trx format. these trx will be saved to the file
% outmatname (user will be prompted for this name if none given).
... |
github | kristinbranson/APT-master | ufmf_read_mean.m | .m | APT-master/external/JAABA/filehandling/ufmf_read_mean.m | 2,941 | utf_8 | 7aab9718763b383cb693e4ecdb1b2df3 | function [im,header] = ufmf_read_mean(header,varargin)
[meani,framei,dopermute] = myparse(varargin,'meani',[],'framei',[],'dopermute',true);
fp = header.fid;
meani = [meani,header.frame2mean(framei)];
if isempty(meani),
[im,header] = ufmf_read_mean_helper(fp,header);
else
if length(meani) > 1,
im = zeros([he... |
github | kristinbranson/APT-master | crop_fmf.m | .m | APT-master/external/JAABA/filehandling/crop_fmf.m | 882 | utf_8 | 4c120ffac1540325bfb11bd8609274c2 | % crop_fmf(infmf,outfmf,startframe,endframe)
function crop_fmf(infmf,outfmf,startframe,endframe)
[header_size,version,nr,nc,bytes_per_chunk,nframes,data_format] = fmf_read_header(infmf);
if startframe < 1 || startframe > nframes || endframe < 0 || endframe > nframes || startframe > endframe,
error('startframe or ... |
github | kristinbranson/APT-master | MakeCtraxResultsMovieWrapper.m | .m | APT-master/external/JAABA/filehandling/MakeCtraxResultsMovieWrapper.m | 5,936 | utf_8 | bdbd51092b7b8a285a5ca5481cbe1de2 | % make results movies
function MakeCtraxResultsMovieWrapper(moviefile,trxfile,xvidfile,movietitle,ctraxresultsmovie_params)
%% ctrax movie parameters
defaulttempdatadir = '/groups/branson/bransonlab/projects/olympiad/TempData_FlyBowlMakeCtraxResultsMovie';
if ~isfield(ctraxresultsmovie_params,'tempdatadir'),
ctraxr... |
github | kristinbranson/APT-master | plot2svg.m | .m | APT-master/external/JAABA/filehandling/plot2svg.m | 159,741 | UNKNOWN | e4618a92179146c233444b1c7ec8e704 | function varargout = plot2svg(param1,id,pixelfiletype)
% Matlab to SVG converter
% Prelinary version supporting 3D plots as well
%
% Usage: plot2svg(filename,graphic handle,pixelfiletype)
% optional optional optional
% or
%
% plot2svg(figuresize,graphic handle,pixelfi... |
github | kristinbranson/APT-master | playfmf.m | .m | APT-master/external/JAABA/filehandling/playfmf.m | 22,726 | utf_8 | 5f8ed07fbe7e9262955f62a3b7d1458a | function varargout = playfmf(varargin)
% PLAYFMF M-file for playfmf.fig
% PLAYFMF, by itself, creates a new PLAYFMF or raises the existing
% singleton*.
%
% H = PLAYFMF returns the handle to a new PLAYFMF or the handle to
% the existing singleton*.
%
% PLAYFMF('CALLBACK',hObject,eventData,handl... |
github | kristinbranson/APT-master | anytoavi.m | .m | APT-master/external/JAABA/filehandling/anytoavi.m | 2,156 | utf_8 | 099d793d2bdd66709aff759fa205387d | function anytoavi(inmoviename,outmoviename,varargin)
% function anytoavi(inmoviename,outmoviename[,'firstframe',1][,'endframe',nframes])
% pairs in [] are optional and the default value are as shown above.
[readframe,nframes,fid] = get_readframe_fcn(inmoviename);
[firstframe,endframe,aviparams] = myparse(varargin,'fir... |
github | kristinbranson/APT-master | read_ann.m | .m | APT-master/external/JAABA/filehandling/read_ann.m | 2,970 | utf_8 | 6d587fc3a9bfab956cbfa6c9acc4ad19 | % [param1,param2,...] = read_ann(filename,'param1','param2',...)
%
% params:
%
% version, bg_type, n_bg_std_thresh, n_bg_std_thresh_low, bg_std_min,
% bg_std_max n_bg_frames, min_nonarena, max_nonarena, arena_center_x,
% arena_center_y, arena_radius, do_set_circular_arena, bg_algorithm,
% background_median, bg_norm_typ... |
github | kristinbranson/APT-master | mtrax2fixedtrx.m | .m | APT-master/external/JAABA/filehandling/mtrax2fixedtrx.m | 1,194 | utf_8 | cd48f43cbd63f42b8dc42c04dcaa97a0 | % mtrax2fixedtrx(inmatname,outmatname)
% inmatname: name of a matfile created by mtrax
% outmatname: name of a matfile to save results to
% results will be saved in the format returned by fixerrorsgui
function mtrax2fixedtrx(inmatname,outmatname)
load(inmatname);
load(inmatname,'angle'); % because matlab is retarded :... |
github | kristinbranson/APT-master | fixedtrx2mtrax.m | .m | APT-master/external/JAABA/filehandling/fixedtrx2mtrax.m | 1,200 | utf_8 | f2b4049cffebed007e127fb714b39986 | % fixedtrx2mtrax(inmatname,outmatname)
% inmatname: name of a matfile created by fixerrorsgui
% outmatname: name of a matfile to save results to
% results will be saved in the format returned by mtrax
function fixedtrx2mtrax(inmatname,outmatname)
load(inmatname);
nflies = length(trx);
nframes = 0;
for fly = 1:nflies,
... |
github | kristinbranson/APT-master | sbfmf_read_frame.m | .m | APT-master/external/JAABA/filehandling/sbfmf_read_frame.m | 292 | utf_8 | 0a68aa593685e0391b9ec72eda54aa0e | % [im,stamp] = sbfmf_read_frame(fp,bgcenter)
function [im,stamp] = sbfmf_read_frame(fp,bgcenter)
npixels = double(fread(fp,1,'uint32'));
stamp = fread(fp,1,'double');
idx = double(fread(fp,npixels,'uint32'))+1;
val = double(fread(fp,npixels,'uint8'));
im = bgcenter;
im(idx) = val;
im = im'; |
github | kristinbranson/APT-master | imagesAlign.m | .m | APT-master/external/PiotrDollarToolbox/videos/imagesAlign.m | 8,167 | utf_8 | d125eb5beb502d940be5bd145521f34b | function [H,Ip] = imagesAlign( I, Iref, varargin )
% Fast and robust estimation of homography relating two images.
%
% The algorithm for image alignment is a simple but effective variant of
% the inverse compositional algorithm. For a thorough overview, see:
% "Lucas-kanade 20 years on A unifying framework,"
% S. B... |
github | kristinbranson/APT-master | opticalFlow.m | .m | APT-master/external/PiotrDollarToolbox/videos/opticalFlow.m | 7,386 | utf_8 | bf636ebdd9a6e87b4705c8e9f4ffda81 | function [Vx,Vy,reliab] = opticalFlow( I1, I2, varargin )
% Coarse-to-fine optical flow using Lucas&Kanade or Horn&Schunck.
%
% Implemented 'type' of optical flow estimation:
% LK: http://en.wikipedia.org/wiki/Lucas-Kanade_method
% HS: http://en.wikipedia.org/wiki/Horn-Schunck_method
% SD: Simple block-based sum of ... |
github | kristinbranson/APT-master | seqWriterPlugin.m | .m | APT-master/external/PiotrDollarToolbox/videos/seqWriterPlugin.m | 8,280 | utf_8 | 597792f79fff08b8bb709313267c3860 | function varargout = seqWriterPlugin( cmd, h, varargin )
% Plugin for seqIo and videoIO to allow writing of seq files.
%
% Do not call directly, use as plugin for seqIo or videoIO instead.
% The following is a list of commands available (swp=seqWriterPlugin):
% h=swp('open',h,fName,info) % Open a seq file for writing ... |
github | kristinbranson/APT-master | kernelTracker.m | .m | APT-master/external/PiotrDollarToolbox/videos/kernelTracker.m | 9,315 | utf_8 | 4a7d0235f1e518ab5f1c9f1b5450b3f0 | function [allRct, allSim, allIc] = kernelTracker( I, prm )
% Kernel Tracker from Comaniciu, Ramesh and Meer PAMI 2003.
%
% Implements the algorithm described in "Kernel-Based Object Tracking" by
% Dorin Comaniciu, Visvanathan Ramesh and Peter Meer, PAMI 25, 564-577,
% 2003. This is a fast tracking algorithm that utili... |
github | kristinbranson/APT-master | seqIo.m | .m | APT-master/external/PiotrDollarToolbox/videos/seqIo.m | 17,019 | utf_8 | 9c631b324bb527372ec3eed3416c5dcc | function out = seqIo( fName, action, varargin )
% Utilities for reading and writing seq files.
%
% A seq file is a series of concatentated image frames with a fixed size
% header. It is essentially the same as merging a directory of images into
% a single file. seq files are convenient for storing videos because: (1)
%... |
github | kristinbranson/APT-master | seqReaderPlugin.m | .m | APT-master/external/PiotrDollarToolbox/videos/seqReaderPlugin.m | 9,617 | utf_8 | ad8f912634cafe13df6fc7d67aeff05a | function varargout = seqReaderPlugin( cmd, h, varargin )
% Plugin for seqIo and videoIO to allow reading of seq files.
%
% Do not call directly, use as plugin for seqIo or videoIO instead.
% The following is a list of commands available (srp=seqReaderPlugin):
% h = srp('open',h,fName) % Open a seq file for reading ... |
github | kristinbranson/APT-master | pcaApply.m | .m | APT-master/external/PiotrDollarToolbox/classify/pcaApply.m | 3,320 | utf_8 | a06fc0e54d85930cbc0536c874ac63b7 | function varargout = pcaApply( X, U, mu, k )
% Companion function to pca.
%
% Use pca.m to retrieve the principal components U and the mean mu from a
% set of vectors x, then use pcaApply to get the first k coefficients of
% x in the space spanned by the columns of U. See pca for general usage.
%
% If x is large, pcaAp... |
github | kristinbranson/APT-master | pca_pd.m | .m | APT-master/external/PiotrDollarToolbox/classify/pca_pd.m | 3,244 | utf_8 | 848f2eb05c18a6e448e9d22af27b9422 | function [U,mu,vars] = pca( X )
% Principal components analysis (alternative to princomp).
%
% A simple linear dimensionality reduction technique. Use to create an
% orthonormal basis for the points in R^d such that the coordinates of a
% vector x in this basis are of decreasing importance. Instead of using all
% d bas... |
github | kristinbranson/APT-master | forestTrain.m | .m | APT-master/external/PiotrDollarToolbox/classify/forestTrain.m | 6,138 | utf_8 | de534e2a010f452a7b13167dbf9df239 | function forest = forestTrain( data, hs, varargin )
% Train random forest classifier.
%
% Dimensions:
% M - number trees
% F - number features
% N - number input vectors
% H - number classes
%
% USAGE
% forest = forestTrain( data, hs, [varargin] )
%
% INPUTS
% data - [NxF] N length F feature vectors
% hs ... |
github | kristinbranson/APT-master | fernsRegTrain.m | .m | APT-master/external/PiotrDollarToolbox/classify/fernsRegTrain.m | 5,914 | utf_8 | b9ed2d87a22cb9cbb1e2632495ddaf1d | function [ferns,ysPr] = fernsRegTrain( data, ys, varargin )
% Train boosted fern regressor.
%
% Boosted regression using random ferns as the weak regressor. See "Greedy
% function approximation: A gradient boosting machine", Friedman, Annals of
% Statistics 2001, for more details on boosted regression.
%
% A few notes ... |
github | kristinbranson/APT-master | rbfDemo.m | .m | APT-master/external/PiotrDollarToolbox/classify/rbfDemo.m | 2,929 | utf_8 | 14cc64fb77bcac3edec51cf6b84ab681 | function rbfDemo( dataType, noiseSig, scale, k, cluster, show )
% Demonstration of rbf networks for regression.
%
% See rbfComputeBasis for discussion of rbfs.
%
% USAGE
% rbfDemo( dataType, noiseSig, scale, k, cluster, show )
%
% INPUTS
% dataType - 0: 1D sinusoid
% 1: 2D sinusoid
% 2: ... |
github | kristinbranson/APT-master | pdist2.m | .m | APT-master/external/PiotrDollarToolbox/classify/pdist2.m | 5,162 | utf_8 | 768ff9e8818251f756c8325368ee7d90 | function D = pdist2( X, Y, metric )
% Calculates the distance between sets of vectors.
%
% Let X be an m-by-p matrix representing m points in p-dimensional space
% and Y be an n-by-p matrix representing another set of points in the same
% space. This function computes the m-by-n distance matrix D where D(i,j)
% is the ... |
github | kristinbranson/APT-master | kmeans2.m | .m | APT-master/external/PiotrDollarToolbox/classify/kmeans2.m | 5,251 | utf_8 | f941053f03c3e9eda40389a4cc64ee00 | function [ IDX, C, d ] = kmeans2( X, k, varargin )
% Fast version of kmeans clustering.
%
% Cluster the N x p matrix X into k clusters using the kmeans algorithm. It
% returns the cluster memberships for each data point in the N x 1 vector
% IDX and the K x p matrix of cluster means in C.
%
% This function is in some w... |
github | kristinbranson/APT-master | acfModify.m | .m | APT-master/external/PiotrDollarToolbox/detector/acfModify.m | 4,202 | utf_8 | 7a49406d51e7a9431b8fd472be0476e8 | function detector = acfModify( detector, varargin )
% Modify aggregate channel features object detector.
%
% Takes an object detector trained by acfTrain() and modifies it. Only
% certain modifications are allowed to the detector and the detector should
% never be modified directly (this may cause the detector to be in... |
github | kristinbranson/APT-master | acfDetect.m | .m | APT-master/external/PiotrDollarToolbox/detector/acfDetect.m | 3,659 | utf_8 | cf1384311b16371be6fa4715140e5c81 | function bbs = acfDetect( I, detector, fileName )
% Run aggregate channel features object detector on given image(s).
%
% The input 'I' can either be a single image (or filename) or a cell array
% of images (or filenames). In the first case, the return is a set of bbs
% where each row has the format [x y w h score] and... |
github | kristinbranson/APT-master | acfSweeps.m | .m | APT-master/external/PiotrDollarToolbox/detector/acfSweeps.m | 10,731 | utf_8 | db60505e8ee70092d7967ff95c483db8 | function acfSweeps
% Parameter sweeps for ACF pedestrian detector.
%
% Running the parameter sweeps requires altering internal flags.
% The sweeps are not well documented, use at your own discretion.
%
% Piotr's Computer Vision Matlab Toolbox Version 3.50
% Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
% Li... |
github | kristinbranson/APT-master | bbGt.m | .m | APT-master/external/PiotrDollarToolbox/detector/bbGt.m | 34,046 | utf_8 | 69e66c9a0cc143fb9a794fbc9233246e | function varargout = bbGt( action, varargin )
% Bounding box (bb) annotations struct, evaluation and sampling routines.
%
% bbGt gives access to two types of routines:
% (1) Data structure for storing bb image annotations.
% (2) Routines for evaluating the Pascal criteria for object detection.
%
% The bb annotation sto... |
github | kristinbranson/APT-master | bbApply.m | .m | APT-master/external/PiotrDollarToolbox/detector/bbApply.m | 21,195 | utf_8 | 8c02a6999a84bfb5fcbf2274b8b91a97 | function varargout = bbApply( action, varargin )
% Functions for manipulating bounding boxes (bb).
%
% A bounding box (bb) is also known as a position vector or a rectangle
% object. It is a four element vector with the fields: [x y w h]. A set of
% n bbs can be stores as an [nx4] array, most funcitons below can handle... |
github | kristinbranson/APT-master | imwrite2.m | .m | APT-master/external/PiotrDollarToolbox/images/imwrite2.m | 5,086 | utf_8 | c98d66c2cddd9ec90beb9b1bbde31fe0 | function I = imwrite2( I, mulFlag, imagei, path, ...
name, ext, nDigits, nSplits, spliti, varargin )
% Similar to imwrite, except follows a strict naming convention.
%
% Wrapper for imwrite that writes file to the filename:
% fName = [path name int2str2(i,nDigits) '.' ext];
% Using imwrite:
% imwrite( I, fName, wri... |
github | kristinbranson/APT-master | convnFast.m | .m | APT-master/external/PiotrDollarToolbox/images/convnFast.m | 9,102 | utf_8 | 03d05e74bb7ae2ecb0afd0ac115fda39 | function C = convnFast( A, B, shape )
% Fast convolution, replacement for both conv2 and convn.
%
% See conv2 or convn for more information on convolution in general.
%
% This works as a replacement for both conv2 and convn. Basically,
% performs convolution in either the frequency or spatial domain, depending
% on wh... |
github | kristinbranson/APT-master | imMlGauss.m | .m | APT-master/external/PiotrDollarToolbox/images/imMlGauss.m | 5,674 | utf_8 | 56ead1b25fbe356f7912993d46468d02 | function varargout = imMlGauss( G, symmFlag, show )
% Calculates max likelihood params of Gaussian that gave rise to image G.
%
% Suppose G contains an image of a gaussian distribution. One way to
% recover the parameters of the gaussian is to threshold the image, and
% then estimate the mean/covariance based on the c... |
github | kristinbranson/APT-master | montage2.m | .m | APT-master/external/PiotrDollarToolbox/images/montage2.m | 7,484 | utf_8 | 828f57d7b1f67d36eeb6056f06568ebf | function varargout = montage2( IS, prm )
% Used to display collections of images and videos.
%
% Improved version of montage, with more control over display.
% NOTE: Can convert between MxNxT and MxNx3xT image stack via:
% I = repmat( I, [1,1,1,3] ); I = permute(I, [1,2,4,3] );
%
% USAGE
% varargout = montage2( IS, ... |
github | kristinbranson/APT-master | jitterImage.m | .m | APT-master/external/PiotrDollarToolbox/images/jitterImage.m | 5,252 | utf_8 | 3310f8412af00fd504c6f94b8c48992c | function IJ = jitterImage( I, varargin )
% Creates multiple, slightly jittered versions of an image.
%
% Takes an image I, and generates a number of images that are copies of the
% original image with slight translation, rotation and scaling applied. If
% the input image is actually an MxNxK stack of images then applie... |
github | kristinbranson/APT-master | movieToImages.m | .m | APT-master/external/PiotrDollarToolbox/images/movieToImages.m | 889 | utf_8 | 28c71798642af276951ee27e2d332540 | function I = movieToImages( M )
% Creates a stack of images from a matlab movie M.
%
% Repeatedly calls frame2im. Useful for playback with playMovie.
%
% USAGE
% I = movieToImages( M )
%
% INPUTS
% M - a matlab movie
%
% OUTPUTS
% I - MxNxT array (of images)
%
% EXAMPLE
% load( 'images.mat' ); [X,map]=gray2ind... |
github | kristinbranson/APT-master | toolboxUpdateHeader.m | .m | APT-master/external/PiotrDollarToolbox/external/toolboxUpdateHeader.m | 2,255 | utf_8 | ade06ae438e20ad8faa66e41267915f3 | function toolboxUpdateHeader
% Update the headers of all the files.
%
% USAGE
% toolboxUpdateHeader
%
% INPUTS
%
% OUTPUTS
%
% EXAMPLE
%
% See also
%
% Piotr's Computer Vision Matlab Toolbox Version 3.50
% Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
% Licensed under the Simplified BSD License [see extern... |
github | kristinbranson/APT-master | toolboxGenDoc.m | .m | APT-master/external/PiotrDollarToolbox/external/toolboxGenDoc.m | 3,639 | utf_8 | 4c21fb34fa9b6002a1a98a28ab40c270 | function toolboxGenDoc
% Generate documentation, must run from dir toolbox.
%
% 1) Make sure to update and run toolboxUpdateHeader.m
% 2) Update history.txt appropriately, including w current version
% 3) Update overview.html file with the version/date/link to zip:
% edit external/m2html/templates/frame-piotr/overv... |
github | kristinbranson/APT-master | toolboxHeader.m | .m | APT-master/external/PiotrDollarToolbox/external/toolboxHeader.m | 2,391 | utf_8 | 30c24a94fb54ca82622719adcab17903 | function [y1,y2] = toolboxHeader( x1, x2, x3, prm )
% One line description of function (will appear in file summary).
%
% General commments explaining purpose of function [width is 75
% characters]. There may be multiple paragraphs. In special cases some or
% all of these guidelines may need to be broken.
%
% Next come... |
github | kristinbranson/APT-master | mdot.m | .m | APT-master/external/PiotrDollarToolbox/external/m2html/mdot.m | 2,516 | utf_8 | 34a14428c433e118d1810e23f5a6caf5 | function mdot(mmat, dotfile,f)
%MDOT - Export a dependency graph into DOT language
% MDOT(MMAT, DOTFILE) loads a .mat file generated by M2HTML using option
% ('save','on') and writes an ascii file using the DOT language that can
% be drawn using <dot> or <neato> .
% MDOT(MMAT, DOTFILE,F) builds the graph containing... |
github | kristinbranson/APT-master | m2html.m | .m | APT-master/external/PiotrDollarToolbox/external/m2html/m2html.m | 49,063 | utf_8 | 472047b4c36a4f8b162012840e31b59b | function m2html(varargin)
%M2HTML - Documentation Generator for Matlab M-files and Toolboxes in HTML
% M2HTML by itself generates an HTML documentation of the Matlab M-files found
% in the direct subdirectories of the current directory. HTML files are
% written in a 'doc' directory (created if necessary). All the o... |
github | kristinbranson/APT-master | doxysearch.m | .m | APT-master/external/PiotrDollarToolbox/external/m2html/private/doxysearch.m | 7,724 | utf_8 | 8331cde8495f34b86aef8c18656b37f2 | function result = doxysearch(query,filename)
%DOXYSEARCH Search a query in a 'search.idx' file
% RESULT = DOXYSEARCH(QUERY,FILENAME) looks for request QUERY
% in FILENAME (Doxygen search.idx format) and returns a list of
% files responding to the request in RESULT.
%
% See also DOXYREAD, DOXYWRITE
% Copyright (C)... |
github | kristinbranson/APT-master | doxywrite.m | .m | APT-master/external/PiotrDollarToolbox/external/m2html/private/doxywrite.m | 3,584 | utf_8 | 3255d8f824957ebc173dde374d0f78af | function doxywrite(filename, kw, statinfo, docinfo)
%DOXYWRITE Write a 'search.idx' file compatible with DOXYGEN
% DOXYWRITE(FILENAME, KW, STATINFO, DOCINFO) writes file FILENAME
% (Doxygen search.idx. format) using the cell array KW containing the
% word list, the sparse matrix (nbword x nbfile) with non-null value... |
github | kristinbranson/APT-master | doxyread.m | .m | APT-master/external/PiotrDollarToolbox/external/m2html/private/doxyread.m | 3,093 | utf_8 | 3152e7d26bf7ac64118be56f72832a20 | function [statlist, docinfo] = doxyread(filename)
%DOXYREAD Read a 'search.idx' file generated by DOXYGEN
% STATLIST = DOXYREAD(FILENAME) reads FILENAME (Doxygen search.idx
% format) and returns the list of keywords STATLIST as a cell array.
% [STATLIST, DOCINFO] = DOXYREAD(FILENAME) also returns a cell array
% con... |
github | kristinbranson/APT-master | imwrite2split.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/imwrite2split.m | 1,617 | utf_8 | 4222fd45df123e6dec9ef40ae793004f | % Writes/reads a large set of images into/from multiple directories.
%
% This is useful since certain OS handle very large directories (of say
% >20K images) rather poorly (I'm talking to you Bill). Thus, can take
% 100K images, and write into 5 separate directories, then read them back
% in.
%
% USAGE
% I = imwrite2... |
github | kristinbranson/APT-master | playmovies.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/playmovies.m | 1,935 | utf_8 | ef2eaad8a130936a1a281f1277ca0ea1 | % [4D] shows R videos simultaneously as a movie.
%
% Plays a movie.
%
% USAGE
% playmovies( I, [fps], [loop] )
%
% INPUTS
% I - MxNxTxR or MxNx1xTxR or MxNx3xTxR array (if MxNxT calls
% playmovie)
% fps - [100] maximum number of frames to display per second use
% fps==0 to introduce n... |
github | kristinbranson/APT-master | pca_apply_large.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/pca_apply_large.m | 2,062 | utf_8 | af84a2179b9d8042519bc6b378736a88 | % Wrapper for pca_apply that allows for application to large X.
%
% Wrapper for pca_apply that splits and processes X in parts, this may be
% useful if processing cannot be done fully in parallel because of memory
% constraints. See pca_apply for usage.
%
% USAGE
% same as pca_apply
%
% INPUTS
% same as pca_apply
%
%... |
github | kristinbranson/APT-master | montages2.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/montages2.m | 2,269 | utf_8 | 505e2be915d65fff8bfef8473875cc98 | % MONTAGES2 [4D] Used to display R sets of T images each.
%
% Displays one montage (see montage2) per row. Each of the R image sets is
% flattened to a single long image by concatenating the T images in the
% set. Alternative to montages.
%
% USAGE
% varargout = montages2( IS, [montage2prms], [padSiz] )
%
% INPUTS
% ... |
github | kristinbranson/APT-master | filter_gauss_1D.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/filter_gauss_1D.m | 1,137 | utf_8 | 94a453b82dcdeba67bd886e042d552d9 | % 1D Gaussian filter.
%
% Equivalent to (but faster then):
% f = fspecial('Gaussian',[2*r+1,1],sigma);
% f = filter_gauss_nD( 2*r+1, r+1, sigma^2 );
%
% USAGE
% f = filter_gauss_1D( r, sigma, [show] )
%
% INPUTS
% r - filter size=2r+1, if r=[] -> r=ceil(2.25*sigma)
% sigma - standard deviation of filter
% ... |
github | kristinbranson/APT-master | clfEcoc.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/clfEcoc.m | 1,493 | utf_8 | e77e1b4fd5469ed39f47dd6ed15f130f | function clf = clfEcoc(p,clfInit,clfparams,nclasses,use01targets)
% Wrapper for ecoc that makes ecoc compatible with nfoldxval.
%
% Requires the SVM toolbox by Anton Schwaighofer.
%
% USAGE
% clf = clfEcoc(p,clfInit,clfparams,nclasses,use01targets)
%
% INPUTS
% p - data dimension
% clfInit - bi... |
github | kristinbranson/APT-master | getargs.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/getargs.m | 3,455 | utf_8 | de2bab917fa6b9ba3099f1c6b6d68cf0 | % Utility to process parameter name/value pairs.
%
% DEPRECATED -- ONLY USED BY KMEANS2? SHOULD BE REMOVED.
% USE GETPARAMDEFAULTS INSTEAD.
%
% Based on code fromt Matlab Statistics Toolobox's "private/statgetargs.m"
%
% [EMSG,A,B,...]=GETARGS(PNAMES,DFLTS,'NAME1',VAL1,'NAME2',VAL2,...)
% accepts a cell array PNAMES o... |
github | kristinbranson/APT-master | normxcorrn_fg.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/normxcorrn_fg.m | 2,699 | utf_8 | e65c38d97efb3a624e0fa94a97f75eb6 | % Normalized n-dimensional cross-correlation with a mask.
%
% Similar to normxcorrn, except takes an additional argument that specifies
% a figure ground mask for the T. That is T_fg must be of the same
% dimensions as T, with each entry being 0 or 1, where zero specifies
% regions to ignore (the ground) and 1 specifi... |
github | kristinbranson/APT-master | makemovie.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/makemovie.m | 1,266 | utf_8 | 9a03d9a5227c4eaa86520f206ce283e7 | % [3D] Used to convert a stack of T images into a movie.
%
% To display same data statically use montage.
%
% USAGE
% M = makemovies( IS )
%
% INPUTS
% IS - MxNxT or MxNx1xT or MxNx3xT array of movies.
%
% OUTPUTS
% M - resulting movie
%
% EXAMPLE
% load( 'images.mat' );
% M = makemovie(... |
github | kristinbranson/APT-master | localsum_block.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/localsum_block.m | 815 | utf_8 | 1216b03a3bd44ff1fc3256de16a2f1c6 | % Calculates the sum in non-overlapping blocks of I of size dims.
%
% Similar to localsum except gets sum in non-overlapping windows.
% Equivalent to doing localsum, and then subsampling (except more
% efficient).
%
% USAGE
% I = localsum_block( I, dims )
%
% INPUTS
% I - matrix to compute sum over
% dims -... |
github | kristinbranson/APT-master | imrotate2.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/imrotate2.m | 1,326 | utf_8 | bb2ff6c3138ce5f53154d58d7ebc4f31 | % Custom version of imrotate that demonstrates use of apply_homography.
%
% Works exactly the same as imrotate. For usage see imrotate.
%
% USAGE
% IR = imrotate2( I, angle, [method], [bbox] )
%
% INPUTS
% I - 2D image [converted to double]
% angle - angle to rotate in degrees
% method - ['linear'] 'neare... |
github | kristinbranson/APT-master | imSubsResize.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/imSubsResize.m | 1,338 | utf_8 | cd7dedf790c015adfb1f2d620e9ed82f | % Resizes subs by resizVals.
%
% Resizes subs in subs/vals image representation by resizVals.
%
% This essentially replaces each sub by sub.*resizVals. The only subtlety
% is that in images the leftmost sub value is .5, so for example when
% resizing by a factor of 2, the first pixel is replaced by 2 pixels and so
% l... |
github | kristinbranson/APT-master | imtranslate.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/imtranslate.m | 1,183 | utf_8 | 054727fb31c105414b655c0f938b6ced | % Translate an image to subpixel accuracy.
%
% Note that for subplixel accuracy cannot use nearest neighbor interp.
%
% USAGE
% IR = imtranslate( I, dx, dy, [method], [bbox] )
%
% INPUTS
% I - 2D image [converted to double]
% dx - x translation (right)
% dy - y translation (up)
% method - ['linear... |
github | kristinbranson/APT-master | randperm2.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/randperm2.m | 1,398 | utf_8 | 5007722f3d5f5ba7c0f83f32ef8a3a2c | % Returns a random permutation of integers.
%
% randperm2(n) is a random permutation of the integers from 1 to n. For
% example, randperm2(6) might be [2 4 5 6 1 3]. randperm2(n,k) is only
% returns the first k elements of the permuation, so for example
% randperm2(6) might be [2 4]. This is a faster version of randp... |
github | kristinbranson/APT-master | apply_homography.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/apply_homography.m | 3,582 | utf_8 | 9c3ed72d35b1145f41114e6e6135b44f | % Applies the homography defined by H on the image I.
%
% Takes the center of the image as the origin, not the top left corner.
% Also, the coordinate system is row/ column format, so H must be also.
%
% The bounding box of the image is set by the BBOX argument, a string that
% can be 'loose' (default) or 'crop'. When ... |
github | kristinbranson/APT-master | pca_apply.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/pca_apply.m | 2,427 | utf_8 | 0831befb6057f8502bc492227455019a | % Companion function to pca.
%
% Use pca to retrieve the principal components U and the mean mu from a
% set fo vectors X1 via [U,mu,vars] = pca(X1). Then given a new
% vector x, use y = pca_apply( x, U, mu, vars, k ) to get the first k
% coefficients of x in the space spanned by the columns of U. See pca for
% genera... |
github | kristinbranson/APT-master | mode2.m | .m | APT-master/external/PiotrDollarToolbox/external/deprecated/mode2.m | 731 | utf_8 | 5c9321ef4b610b4f4a2d43902a68838e | % Returns the mode of a vector.
%
% Was mode not part of Matlab before?
%
% USAGE
% y = mode2( x )
%
% INPUTS
% x - vector of integers
%
% OUTPUTS
% y - mode
%
% EXAMPLE
% x = randint2( 1, 10, [1 3] )
% mode(x), mode2( x )
%
% See also MODE
% Piotr's Image&Video Toolbox Version 1.5
% Written and maintain... |
github | kristinbranson/APT-master | savefig.m | .m | APT-master/external/PiotrDollarToolbox/external/other/savefig.m | 13,459 | utf_8 | 2b8463f9b01ceb743e440d8fb5755829 | function savefig(fname, varargin)
% Usage: savefig(filename, fighdl, options)
%
% Saves a pdf, eps, png, jpeg, and/or tiff of the contents of the fighandle's (or current) figure.
% It saves an eps of the figure and the uses Ghostscript to convert to the other formats.
% The result is a cropped, clean picture. There a... |
github | kristinbranson/APT-master | dirSynch.m | .m | APT-master/external/PiotrDollarToolbox/matlab/dirSynch.m | 4,570 | utf_8 | d288299d31d15f1804183206d0aa0227 | function dirSynch( root1, root2, showOnly, flag, ignDate )
% Synchronize two directory trees (or show differences between them).
%
% If a file or directory 'name' is found in both tree1 and tree2:
% 1) if 'name' is a file in both the pair is considered the same if they
% have identical size and identical datestamp... |
github | kristinbranson/APT-master | plotRoc.m | .m | APT-master/external/PiotrDollarToolbox/matlab/plotRoc.m | 5,212 | utf_8 | 008f9c63073c6400c4960e9e213c47e5 | function [h,miss,stds] = plotRoc( D, varargin )
% Function for display of rocs (receiver operator characteristic curves).
%
% Display roc curves. Consistent usage ensures uniform look for rocs. The
% input D should have n rows, each of which is of the form:
% D = [falsePosRate truePosRate]
% D is generated, for exampl... |
github | kristinbranson/APT-master | simpleCache.m | .m | APT-master/external/PiotrDollarToolbox/matlab/simpleCache.m | 4,098 | utf_8 | 92df86b0b7e919c9a26388e598e4d370 | function varargout = simpleCache( op, cache, varargin )
% A simple cache that can be used to store results of computations.
%
% Can save and retrieve arbitrary values using a vector (includnig char
% vectors) as a key. Especially useful if a function must perform heavy
% computation but is often called with the same in... |
github | kristinbranson/APT-master | tpsInterpolate.m | .m | APT-master/external/PiotrDollarToolbox/matlab/tpsInterpolate.m | 1,646 | utf_8 | d3bd3a26d048f32cfdc17884ccae6d8c | function [xsR,ysR] = tpsInterpolate( warp, xs, ys, show )
% Apply warp (obtained by tpsGetWarp) to a set of new points.
%
% USAGE
% [xsR,ysR] = tpsInterpolate( warp, xs, ys, [show] )
%
% INPUTS
% warp - [see tpsGetWarp] bookstein warping parameters
% xs, ys - points to apply warp to
% show - [1] will disp... |
github | kristinbranson/APT-master | checkNumArgs.m | .m | APT-master/external/PiotrDollarToolbox/matlab/checkNumArgs.m | 3,796 | utf_8 | 726c125c7dc994c4989c0e53ad4be747 | function [ x, er ] = checkNumArgs( x, siz, intFlag, signFlag )
% Helper utility for checking numeric vector arguments.
%
% Runs a number of tests on the numeric array x. Tests to see if x has all
% integer values, all positive values, and so on, depending on the values
% for intFlag and signFlag. Also tests to see if ... |
github | kristinbranson/APT-master | fevalDistr.m | .m | APT-master/external/PiotrDollarToolbox/matlab/fevalDistr.m | 11,227 | utf_8 | 7e4d5077ef3d7a891b2847cb858a2c6c | function [out,res] = fevalDistr( funNm, jobs, varargin )
% Wrapper for embarrassingly parallel function evaluation.
%
% Runs "r=feval(funNm,jobs{i}{:})" for each job in a parallel manner. jobs
% should be a cell array of length nJob and each job should be a cell array
% of parameters to pass to funNm. funNm must be a f... |
github | kristinbranson/APT-master | medfilt1m.m | .m | APT-master/external/PiotrDollarToolbox/filters/medfilt1m.m | 2,998 | utf_8 | a3733d27c60efefd57ada9d83ccbaa3d | function y = medfilt1m( x, r, z )
% One-dimensional adaptive median filtering with missing values.
%
% Applies a width s=2*r+1 one-dimensional median filter to vector x, which
% may contain missing values (elements equal to z). If x contains no
% missing values, y(j) is set to the median of x(j-r:j+r). If x contains
% ... |
github | kristinbranson/APT-master | FbMake.m | .m | APT-master/external/PiotrDollarToolbox/filters/FbMake.m | 6,692 | utf_8 | b625c1461a61485af27e490333350b4b | function FB = FbMake( dim, flag, show )
% Various 1D/2D/3D filterbanks (hardcoded).
%
% USAGE
% FB = FbMake( dim, flag, [show] )
%
% INPUTS
% dim - dimension
% flag - controls type of filterbank to create
% - if d==1
% 1: gabor filter bank for spatiotemporal stuff
% - if d==2
% ... |
github | kristinbranson/APT-master | runBaselines.m | .m | APT-master/unittest/runBaselines.m | 2,910 | utf_8 | 68aa3641c712120f338b80881c979fdf | function runBaselines(varargin)
% Prob use a test framework when there are more tests
[dotest,dosave,testdir,testmat,nrptMV] = myparse(varargin,...
'dotest',true,...
'dosave',false,...
'testdir','/groups/branson/bransonlab/apt/test',...
'testmat','20180507.develop',...
'nrptMV',1);
p = fileparts(mfilename('... |
github | kristinbranson/APT-master | ParameterSetup.m | .m | APT-master/matlab/ParameterSetup.m | 8,957 | utf_8 | 40c2e1bbe91ebf0b55d09021ded3a83f | function varargout = ParameterSetup(varargin)
% PARAMETERSETUP MATLAB code for ParameterSetup.fig
% PARAMETERSETUP, by itself, creates a new PARAMETERSETUP or raises the existing
% singleton*.
%
% H = PARAMETERSETUP returns the handle to a new PARAMETERSETUP or the handle to
% the existing singleton... |
github | kristinbranson/APT-master | LandmarkColors.m | .m | APT-master/matlab/LandmarkColors.m | 18,011 | utf_8 | a9f5931f08d61f37e27933e7c131ab03 | function varargout = LandmarkColors(varargin)
% LANDMARKCOLORS MATLAB code for LandmarkColors.fig
% LANDMARKCOLORS, by itself, creates a new LANDMARKCOLORS or raises the existing
% singleton*.
%
% H = LANDMARKCOLORS returns the handle to a new LANDMARKCOLORS or the handle to
% the existing singleton... |
github | kristinbranson/APT-master | APTParameters.m | .m | APT-master/matlab/APTParameters.m | 16,705 | utf_8 | 834288aca9418137a454959b98871983 | classdef APTParameters
properties (Constant)
PARAM_FILE_SPECS = lclInitParamFileSpecs();
end
properties (Constant, Access=private)
% This property stores parsetrees for yamls so that yaml files only
% need to be parsed once.
%
% This property is private as these trees are handles and mutable.... |
github | kristinbranson/APT-master | GTManager.m | .m | APT-master/matlab/GTManager.m | 10,409 | utf_8 | 3eb740d526779d4027161295a402bca2 | function varargout = GTManager(varargin)
% Movie table GUI
% Last Modified by GUIDE v2.5 08-May-2020 20:24:42
% Begin initialization code - DO NOT EDIT
gui_Singleton = 0;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @G... |
github | kristinbranson/APT-master | CrossValidResults.m | .m | APT-master/matlab/CrossValidResults.m | 1,819 | utf_8 | c965027c12526b5c2afbf65a174bf044 | function varargout = CrossValidResults(varargin)
% Display/UI for cross-validation results
% Last Modified by GUIDE v2.5 18-Jul-2017 09:55:33
% Begin initialization code - DO NOT EDIT
gui_Singleton = 0;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
... |
github | kristinbranson/APT-master | ViewConfig.m | .m | APT-master/matlab/ViewConfig.m | 8,720 | utf_8 | 72fb37c2770baf542877ae4b439d4b0e | classdef ViewConfig
properties (Constant)
GAMMA_CORRECT_CMAP_LEN = 256;
end
% A ViewConfig is essentially the .View substructure of a project
% configuration. It contains:
% * FigurePos
% * XLim, YLim (if present => .X/YLimMode='manual', otherwise 'auto')
% * XDir, YDir
% * CLim
% * Gamma co... |
github | kristinbranson/APT-master | RC.m | .m | APT-master/matlab/RC.m | 1,185 | utf_8 | 70b46a0088326592b176fc98d86b4fca | classdef RC
% Configuration file
properties (Constant)
FILE = lclInitFile();
end
methods (Static)
% AL 20150606: Currently every getprop involves a filesystem read
function v = getprop(name)
rc = RC.load;
if isfield(rc,name)
v = rc.(name);
else
v = [];... |
github | kristinbranson/APT-master | get_project_fcn.m | .m | APT-master/matlab/get_project_fcn.m | 1,538 | utf_8 | 176e11beae981dedf7288938f61acfe7 | function projectfun = get_project_fcn(caldata)
% [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 view
if isa(caldata,'CalRigS... |
github | kristinbranson/APT-master | CPRVizTrackDiagsGUI.m | .m | APT-master/matlab/CPRVizTrackDiagsGUI.m | 9,048 | utf_8 | 66179aee7e2cb20d3c96023f54064220 | function varargout = CPRVizTrackDiagsGUI(varargin)
% CPR diagnostics visualization
% Begin initialization code - DO NOT EDIT
gui_Singleton = 0;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @CPRVizTrackDiagsGUI_OpeningFc... |
github | kristinbranson/APT-master | LabelerTooltips.m | .m | APT-master/matlab/LabelerTooltips.m | 7,521 | utf_8 | 6730e6cc81220cca7bb0cdbc43a57271 | function LabelerTooltips(handles)
% LabelerTooltips: function to add tooltips to objects in the labeler
%
% form: handles=labeler_tooltips(handles)
set(handles.pbClear,'TooltipString','Clear labels in current frame');
set(handles.pbTrain,'TooltipString','Train the part tracker');
set(handles.pbTrack,'TooltipString',... |
github | kristinbranson/APT-master | trackBatch.m | .m | APT-master/matlab/trackBatch.m | 1,349 | utf_8 | 13180382e5fffc93c2d90c14da8d5147 | % trackBatch('lObj',lObj,'jsonfile',jsonfile)
% Track multiple videos that do not have to be part of the current APT
% project.
% This is only the start of this function. Currently, only reading details
% of what to track from a json file is implemented.
% Example json files are in
% examples/totrack_example*.json
f... |
github | kristinbranson/APT-master | TargetSetVariable.m | .m | APT-master/matlab/TargetSetVariable.m | 1,678 | utf_8 | a676ae1d0d725a0a12968b822a8ac5d9 | classdef TargetSetVariable < TargetSet
properties
prettyString
prettyCompactString
% fcn with sig iTgts = fcn(labeler,mIdx).
getTargetIndicesHook
end
methods
function obj = TargetSetVariable(ps,pcs,fcn)
obj.prettyString = ps;
obj.prettyCompactString = pcs;
obj.getTargetIndi... |
github | kristinbranson/APT-master | GTSuggest.m | .m | APT-master/matlab/GTSuggest.m | 6,672 | utf_8 | 26fe82800d430363884c3df1975b699b | function varargout = GTSuggest(varargin)
% GTSUGGEST MATLAB code for GTSuggest.fig
% GTSUGGEST, by itself, creates a new GTSUGGEST or raises the existing
% singleton*.
%
% H = GTSUGGEST returns the handle to a new GTSUGGEST or the handle to
% the existing singleton*.
%
% GTSUGGEST('CALLBACK',hO... |
github | kristinbranson/APT-master | ComputeLandmarkFeatureFromPos.m | .m | APT-master/matlab/ComputeLandmarkFeatureFromPos.m | 2,968 | utf_8 | 78cf253ab7d0c5f42cd618601f55f0ff | function [dmat2,units] = ComputeLandmarkFeatureFromPos(lpos,lpostag,bodytrx,prop)
% lpos: [npts x 2 x nfrm x ntgt] label array as in
% lObj.labeledpos{iMov}
% lpostag: [npts x nfrm x ntgt] logical as in lObj.labeledpostag{iMov}
% pcode: name/id of data to extract
%
% dmat: [npts x nfrm] data matrix for pcode, extract... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.