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
CohenBerkeleyLab/BEHR-core-utils-master
gridIndx2.m
.m
BEHR-core-utils-master/AMF_tools/gridIndx2.m
949
utf_8
5829fca79601db18102ad655de285131
%%gridIndx2 %%arr 10/22/2008 %.......................................................................... % % Description: % Given a defined grid, the procedure finds the grid indices % corresponding to input values of latitude, and/or longitude, and/or % date. % % Arguments: % % x s...
github
CohenBerkeleyLab/BEHR-core-utils-master
omiAmfAK2.m
.m
BEHR-core-utils-master/AMF_tools/omiAmfAK2.m
15,201
utf_8
0b4ea30e665b2277679e15eed0c303a6
%OMIAMFAK2 - Compute OMI AMFs and AKs given scattering weights and NO2 profiles % % [ amf, amfVis, amfCld, amfClr, sc_weights, avgKernel, no2ProfileInterp, % swPlev ] = omiAmfAK2( pTerr, pCld, cldFrac, cldRadFrac, pressure, % dAmfClr, dAmfCld, temperature, no2Profile ) % % INPUTS: % pTerr - the 2D a...
github
CohenBerkeleyLab/BEHR-core-utils-master
integPr2.m
.m
BEHR-core-utils-master/AMF_tools/integPr2.m
7,989
utf_8
da0cf11ddd46f634b372d935cfac8ea0
% INTEGPR2 Integrate mixing ratios over pressure % % VCD = INTEGPR2(MIXINGRATIO, PRESSURE, PRESSURESURFACE) Integrates the % profile given by MIXINGRATIO (which must be unscaled, i.e. mol/mol or % volume/volume) defined at the vertical levels given by PRESSURE (which % must be monotonically decreasing and ...
github
CohenBerkeleyLab/BEHR-core-utils-master
rProfile_US.m
.m
BEHR-core-utils-master/AMF_tools/rProfile_US.m
2,349
utf_8
fdbb2f144688bf6869789f9a2ff51a10
%%rProfile_US %%arr 04/22/2011 %Reads monthly WRF profiles from Lukas (for new retrieval, trends) %NO2 is in ppm function [no2_bins] = rProfile_US(PROFILE, loncorns, latcorns, c) pressure = PROFILE.Pressure; lat_prs = PROFILE.Latitude; lon_prs = PROFILE.Longitude; sz = size(PROFILE.NO2_profile); %no2=r...
github
CohenBerkeleyLab/BEHR-core-utils-master
rDamf2.m
.m
BEHR-core-utils-master/AMF_tools/rDamf2.m
3,684
utf_8
692dc78d4bd9352518525b3eecf3f1b5
%%rDamf %%arr 07/23/2008 % Reads the dAMF file used in the FORTRAN OMI NO2 algorithm %.......................................................................... % Returns vector of dAMFs on input pressure grid, interpolated % at input solar zenith angle, viewing zenith angle, relative azimuth angle % surfac...
github
CohenBerkeleyLab/BEHR-core-utils-master
behr_montecarlo_uncertainty.m
.m
BEHR-core-utils-master/AMF_tools/behr_montecarlo_uncertainty.m
2,630
utf_8
55e4df50366d705d87c0ef52ed7926e8
function [ amf_var, amf_relvar, param_vals ] = behr_montecarlo_uncertainty( AMFS, uncert_param, uncert_range ) %UNTITLED Summary of this function goes here % Detailed explanation goes here E = JLLErrors; params = {'SZAs', 'VZAs', 'RAAs', 'ALBs', 'SurfPs'}; n_params = numel(params); if ~ismember(uncert_param, params...
github
CohenBerkeleyLab/BEHR-core-utils-master
merge_hong_kong_output.m
.m
BEHR-core-utils-master/AMF_tools/Hong Kong Profile Tools/merge_hong_kong_output.m
15,885
utf_8
899d599cd0838abdebe2f6b460b70d23
function [ ] = merge_hong_kong_output( root_dir, start_date, end_date, varargin ) %MERGE_HONG_KONG_OUTPUT Merges CMAQ and WRF data into standard wrfout files % MERGE_HONG_KONG_OUTPUT( ROOT_DIR, START_DATE, END_DATE ) Looks for % folders dated 'dd mmm yyyy' in ROOT_DIR and merges the hourly pressure, % temperatur...
github
chamara84/proactiveChannelSelectionCR-master
rewardCalcForChannel.m
.m
proactiveChannelSelectionCR-master/rewardCalcForChannel.m
5,042
utf_8
d8c8c83c480054af02c9a678f036f063
function [channelIndex,reward] = rewardCalcForChannel(channelIndex,current_slot,senseResult,senseTime,channelTransitionMat,stationProb,falseAlarm,missedDet, bufferSize, channelAcqProb, pktTrProb) %vector order [busy;idle] %transitionMatrix order = [11,10; % 01,00] Q = 1000; %% initial ...
github
EnyaHermite/fastDesp-corrProp-master
flann_search.m
.m
fastDesp-corrProp-master/flann/flann_search.m
3,564
utf_8
7dfb2eee171a6fef9aa4adec527e3145
%Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. %Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. % %THE BSD LICENSE % %Redistribution and use in source and binary forms, with or without %modification, are permitted provided that the following conditions %are met: % ...
github
EnyaHermite/fastDesp-corrProp-master
flann_load_index.m
.m
fastDesp-corrProp-master/flann/flann_load_index.m
1,578
utf_8
f9bcc41fd5972c5c987d6a4d41bdc796
%Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. %Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. % %THE BSD LICENSE % %Redistribution and use in source and binary forms, with or without %modification, are permitted provided that the following conditions %are met: % ...
github
EnyaHermite/fastDesp-corrProp-master
test_flann.m
.m
fastDesp-corrProp-master/flann/test_flann.m
10,328
utf_8
151c22994b0192f8a071649ad26fbc6b
%Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. %Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. % %THE BSD LICENSE % %Redistribution and use in source and binary forms, with or without %modification, are permitted provided that the following conditions %are met: % ...
github
EnyaHermite/fastDesp-corrProp-master
flann_free_index.m
.m
fastDesp-corrProp-master/flann/flann_free_index.m
1,614
utf_8
5d719d8d60539b6c90bee08d01e458b5
%Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. %Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. % %THE BSD LICENSE % %Redistribution and use in source and binary forms, with or without %modification, are permitted provided that the following conditions %are met: % ...
github
EnyaHermite/fastDesp-corrProp-master
flann_save_index.m
.m
fastDesp-corrProp-master/flann/flann_save_index.m
1,563
utf_8
5a44d911827fba5422041529b3c01cf6
%Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. %Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. % %THE BSD LICENSE % %Redistribution and use in source and binary forms, with or without %modification, are permitted provided that the following conditions %are met: % ...
github
EnyaHermite/fastDesp-corrProp-master
flann_set_distance_type.m
.m
fastDesp-corrProp-master/flann/flann_set_distance_type.m
1,914
utf_8
a62dd85add564e04c01aefeb65083f5d
%Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. %Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. % %THE BSD LICENSE % %Redistribution and use in source and binary forms, with or without %modification, are permitted provided that the following conditions %are met: % ...
github
EnyaHermite/fastDesp-corrProp-master
flann_build_index.m
.m
fastDesp-corrProp-master/flann/flann_build_index.m
2,299
utf_8
f4cdee51a1c9616f205dcc814c943903
function [index, params, speedup] = flann_build_index(dataset, build_params) %FLANN_BUILD_INDEX Builds an index for fast approximate nearest neighbors search % % [index, params, speedup] = flann_build_index(dataset, build_params) - Constructs the % index from the provided 'dataset' and (optionally) computes the optima...
github
nthallen/keutsch-hcho-master
scancorrect.m
.m
keutsch-hcho-master/eng/workup/scancorrect.m
295
utf_8
67a0828b2a94fb56b7877df5e6b990c4
% Fix scan index issue (FPGA switches to online label before the scan is % actually complete) function NewIndices = scancorrect(i) chunks = chunker(i); NewChunks = [chunks(:,1) chunks(:,2)+25]; %There are 15 points at the end not labeled as scan points NewIndices = ChunkIndices(NewChunks);
github
nthallen/keutsch-hcho-master
RemoveFirstPoints.m
.m
keutsch-hcho-master/eng/workup/RemoveFirstPoints.m
595
utf_8
d041c4bc460d842a5ce6281b3474747e
%function FirstPointsRemoved = RemoveFirstPoints(i,n) %input is the online indices and the number of points at the start of each %cycles you wish to remove, assessed after viewing the raw data for errors %output is the online indices without erroneous points %111811 JBK %05APR2018 JDS function [NewIndices,RemovedIndi...
github
nthallen/keutsch-hcho-master
refcellcorrect.m
.m
keutsch-hcho-master/eng/workup/refcellcorrect.m
4,249
utf_8
3d23c2f77e8a0db570d5c2bc8315df04
%refcellcorrect_return = refcellcorrect(Data10Hz,Data1Hz,maxLaserV,method,plotme) % PURPOSE: Correct for any drift in difference count signal that resulted % in shifting of the laser voltage or peak position (that wasn't recorded % by the instrument) function refcellcorrect_return = refcellcorrect(Data10Hz,Data1Hz,ma...
github
nthallen/keutsch-hcho-master
ChunkIndices.m
.m
keutsch-hcho-master/eng/workup/ChunkIndices.m
411
utf_8
1f6bb48cbfa520023cbe4302f4066384
% function ChunkIndices = ChunkIndices(chunks) %input is a vector containing output from chunker, which is [start indices, %stop indices] %output is single vector that contains all the indices within each chunk %111811 JBK function ChunkIndices = ChunkIndices(chunks) ChunkIndices=[]; l=length(chunks); for i=1:length(...
github
nthallen/keutsch-hcho-master
powercal.m
.m
keutsch-hcho-master/eng/workup/powercal.m
3,594
utf_8
207f516749a481337a289b0e140ce1f8
% function power = UDTcal(udt,caldate,plotme) % feed this function a udt signal (in V) to get back power (in mW). Note % that using this function requires that you have done a power calibration % on the UDT, which can change with orientation and time. % INPUTS: % udt: raw udt voltage % caldate: date of calibrat...
github
nthallen/keutsch-hcho-master
chunker.m
.m
keutsch-hcho-master/eng/workup/chunker.m
548
utf_8
214091d3c261ea5f11605f0a116267bf
% function chunks = chunker(index) %input is a vector containing indices for all data chunks of a certain type (e.g. cals or zeroes) %output is a 2-column matrix containing start and stop indices for each chunk %Edited from the MBO2006 function autoindexer.m. %070707 GMW function chunks = chunker(index) if isempty(in...
github
altMITgcm/MITgcm-master
VERT_FSFB2.m
.m
MITgcm-master/verification/obcs_ctrl/input_ad/VERT_FSFB2.m
2,369
utf_8
19506cceb9851b2b63996c09e7d4c207
function [c2, Psi, G, N2, Pmid] = VERT_FSFB2(N2,Pmid) %function [c2, Psi, G, N2, Pmid] = VERT_FSFB2(N2,Pmid) % % VERT_FSFB.m % % Gabriel A. Vecchi - May 12, 1998 %%%%%%%%%%%%%%%% % % Solves the discretized wave projection problem % given the vertical profiles of Temperature, Salinity, Pressure % and t...
github
altMITgcm/MITgcm-master
sq.m
.m
MITgcm-master/verification/tutorial_global_oce_latlon/diags_matlab/sq.m
396
utf_8
59792ebeb18f9e9415e48efbc7ad5ce8
% sq(A) is similar to squeeze(A) except that elements =0 are set to NaN % % sq(A) 0 -> NaN % sq(A,val1) val1 -> NaN % sq(A,val1,val2) val1 -> val2 function [A] = sq(B,varargin); A=squeeze(B); if nargin>=2 nodata=varargin{1}; else nodata=0; end if nargin==3 newval=varargin{2}; else newval=NaN;...
github
altMITgcm/MITgcm-master
rdmds.m
.m
MITgcm-master/verification/tutorial_global_oce_latlon/diags_matlab/rdmds.m
15,573
utf_8
ac107b0882b69bd8a4721de82e1f1d24
function [AA,itrs,MM] = rdmds(fnamearg,varargin) % RDMDS Read MITgcmUV meta/data files % % A = RDMDS(FNAME) % A = RDMDS(FNAME,ITER) % A = RDMDS(FNAME,[ITER1 ITER2 ...]) % A = RDMDS(FNAME,NaN) % A = RDMDS(FNAME,Inf) % [A,ITS,M] = RDMDS(FNAME,[...]) % A = RDMDS(FNAME,[...],'rec',RECNUM) % % A = RDMDS(FNAME) reads data...
github
altMITgcm/MITgcm-master
mit_getparm.m
.m
MITgcm-master/verification/tutorial_global_oce_latlon/diags_matlab/mit_getparm.m
2,288
utf_8
fc7cff3c2b1d1b5330d556f335f072ef
function y = mit_getparm(fname,pname); %function y = mit_getparm(fname,pname); y = []; [fp, msg] = fopen(fname,'r'); if fp > 0 str{1} = []; notfound = 0; while isempty(mystrfind(str{1},pname)) str{1} = fgetl(fp); if ~ischar(str{1}); % this catches the end of file (not very clean) notf...
github
altMITgcm/MITgcm-master
rdmeta.m
.m
MITgcm-master/verification/tutorial_global_oce_latlon/diags_matlab/rdmeta.m
8,213
utf_8
1474707bccd022cacade050a0d58558b
function [AA] = rdmds(fname,varargin) % % Read MITgcmUV Meta/Data files % % A = RDMDS(FNAME) reads data described by meta/data file format. % FNAME is a string containing the "head" of the file names. % % eg. To load the meta-data files % T.0000002880.000.000.meta, T.0000002880.000.000.data % T.0000002880.001.0...
github
altMITgcm/MITgcm-master
pcol.m
.m
MITgcm-master/verification/tutorial_global_oce_latlon/diags_matlab/pcol.m
1,497
utf_8
a292554987c9d7d3edd0a8a6622c1754
% Similar to pcolor except that pcol() doesn't drop the last column % or row of data (ie. doesn't interpolated). It uses the shading flat % method by default. % % See also PCOLOR, IMAGESC function [hh] = pcol(varargin); %cmap=colormap; %if cmap(size(cmap,1),:)==[0 0 0] %else % if sum(sum(isnan(data)))~=0 % colormap(...
github
altMITgcm/MITgcm-master
ncep2global_ocean.m
.m
MITgcm-master/verification/tutorial_global_oce_latlon/diags_matlab/ncep2global_ocean.m
6,746
utf_8
821818da9e42e4b9a02bbb53c9b88afb
function ncep2global_ocean % function ncep2global_ocean % read various fluxes, adds them up to have net heat flux and net % freshwater flux (E-P only) % interpolates the fluxes onto 90x40 grid of global_ocean.90x40x15 % % constants ql_evap = 2.5e6; % latent heat due to evaporation rho_fresh = 1000; % density of fr...
github
altMITgcm/MITgcm-master
rdda.m
.m
MITgcm-master/verification/advect_cs/input/rdda.m
2,915
utf_8
b7991cf916c2f5ec04c925ee65ba6ebd
% result = RDDA( file, dim, irec [options] ) % % This routine reads the irec'th record of shape 'dim' from the % direct-access binary file (float or double precision) 'file'. % % Required arguments: % % file - string - name of file to read from % dim - vector - dimensions of the file records and the resulting ...
github
altMITgcm/MITgcm-master
inpaint_nans.m
.m
MITgcm-master/utils/matlab/inpaint_nans.m
12,366
utf_8
b1af604b26fc4537e04313983bb36eca
function B=inpaint_nans(A,method) % inpaint_nans: in-paints over nans in an array % usage: B=inpaint_nans(A) % % solves approximation to one of several pdes to % interpolate and extrapolate holes % % Written by John D'Errico (woodchips@rochester.rr.com) % % arguments (input): % A - nxm array with some NaNs to be fil...
github
altMITgcm/MITgcm-master
griddata_fast.m
.m
MITgcm-master/utils/matlab/griddata_fast.m
1,322
utf_8
5714c2fff7314b59ee02a68191fa02c3
function zi = griddata_fast(delau,z,method) %GRIDDATA_FAST Data gridding and surface fitting. % ZI = GRIDDATA_FAST(DEL,Z) % % See also GRIDDATA_PREPROCESS % Based on % Clay M. Thompson 8-21-95 % Copyright 1984-2001 The MathWorks, Inc. error(nargchk(2,3,nargin)) if nargin<3, method = 'linear'; end if ~isst...
github
altMITgcm/MITgcm-master
rdmds.m
.m
MITgcm-master/utils/matlab/rdmds.m
15,720
utf_8
8e75fe4ad76e960b801f21359b052089
function [AA,itrs,MM] = rdmds(fnamearg,varargin) % RDMDS Read MITgcmUV meta/data files % % A = RDMDS(FNAME) % A = RDMDS(FNAME,ITER) % A = RDMDS(FNAME,[ITER1 ITER2 ...]) % A = RDMDS(FNAME,NaN) % A = RDMDS(FNAME,Inf) % [A,ITS,M] = RDMDS(FNAME,[...]) % A = RDMDS(FNAME,[...],'rec',RECNUM) % % A = RDMDS(FNAME) reads data...
github
altMITgcm/MITgcm-master
griddata_preprocess.m
.m
MITgcm-master/utils/matlab/griddata_preprocess.m
2,885
utf_8
2aa1c7df8924cad853c90486c8438f04
function [del] = griddata_preprocess(x,y,xi,yi,method) %GRIDDATA_PREPROCESS Pre-calculate Delaunay triangulation for use % with GRIDDATA_FAST. % % DEL = GRIDDATA_PREPROCESS(X,Y,XI,YI) % Based on % Clay M. Thompson 8-21-95 % Copyright 1984-2001 The MathWorks, Inc. error(nargchk(4,5,nargin)) %- To interpola...
github
altMITgcm/MITgcm-master
rdmnc.m
.m
MITgcm-master/utils/matlab/rdmnc.m
18,248
utf_8
b3cbc9f16462fc93fe28ebc1bc8e6eee
function [S] = rdmnc(varargin) % Usage: % S=RDMNC(FILE1,FILE2,...) % S=RDMNC(FILE1,...,ITER) % S=RDMNC(FILE1,...,'VAR1','VAR2',...) % S=RDMNC(FILE1,...,'VAR1','VAR2',...,ITER) % % Input: % FILE1 Either a single file name (e.g. 'state.nc') or a wild-card % strings expanding to a group of file name...
github
altMITgcm/MITgcm-master
rdmeta.m
.m
MITgcm-master/utils/matlab/rdmeta.m
8,213
utf_8
1474707bccd022cacade050a0d58558b
function [AA] = rdmds(fname,varargin) % % Read MITgcmUV Meta/Data files % % A = RDMDS(FNAME) reads data described by meta/data file format. % FNAME is a string containing the "head" of the file names. % % eg. To load the meta-data files % T.0000002880.000.000.meta, T.0000002880.000.000.data % T.0000002880.001.0...
github
altMITgcm/MITgcm-master
densjmd95.m
.m
MITgcm-master/utils/matlab/densjmd95.m
6,582
utf_8
4771d90926365a39ace86ac088351fb4
function rho = densjmd95(s,t,p); % % DENSJMD95 Density of sea water %========================================================================= % % USAGE: dens = densjmd95(S,Theta,P) % % DESCRIPTION: % Density of Sea Water using Jackett and McDougall 1995 (JAOT 12) % polynomial (modified UNESCO polynomial). ...
github
altMITgcm/MITgcm-master
cm_landwater.m
.m
MITgcm-master/utils/matlab/cm_landwater.m
1,351
utf_8
6c91417081d672740729bfc946eee0e1
function [c] = cm_landwater(n,varargin) % [c] = cm_landwater(n) % [c] = cm_landwater(n,f) % % n - is size of color map % f is scalar fraction that should be water (default=0.5) % or vector [hmin hmax] from which f will be calculated % % e.g. % >> cm_landwater(64,caxis); % % Green-yellor land/blue water colormap i...
github
altMITgcm/MITgcm-master
set_mask.m
.m
MITgcm-master/utils/matlab/ocean_basin/set_mask.m
5,044
utf_8
4eb4ec826e20fede5dbee22bd57dd25a
function [newmask,iMask,XV,YV]=set_mask(x,y,mask,val) % [newmask,iMask,XV,YV]=set_mask(x,y,mask,val) % GUI to create mask by hand. Idea is to set masking area % by selecting polygon(s) or selecting single points. % Area enclosed by the polygon or the selected point is % set to value 'val'. % Press 'v' or 'o...
github
altMITgcm/MITgcm-master
GraphixLoad.m
.m
MITgcm-master/utils/matlab/Graphix/GraphixLoad.m
11,982
utf_8
0895483a27fd13e552cc564235db7460
function [data,xax,yax,time,pltslc,XG,YG] = ... GraphixLoad(fil,fln,trl,dat,dad,grd,itr,tst,flu,ddf,gdf,avg,slc,pst,... LoadGridData,GraphixDebug,GridSuffix,ZcordFile,Index,... Dim,Vector,Mate,uFld,vFld,gmfile,KwxFld,KwyFld,Grads,... Year0Iter,SecPerYear,Months,PlotFl...
github
altMITgcm/MITgcm-master
displaytiles.m
.m
MITgcm-master/utils/matlab/cs_grid/displaytiles.m
714
utf_8
325f08e4dd87446d887ea548a0751f3f
function [] = displaytiles(A) % Display tiled field. % % Dimensions of A must be (n,n,6) % % Written by adcroft@.mit.edu, 2001. global cmin cmax clf if size(A,3)==1 A=tiles(A,1:6); end cmin=min(min(min(A))); cmax=max(max(max(A))); if isnan(cmin) cmin = 0; end if isnan(cmax) cmax = 1; end if cmin==cmax cmax = cmin...
github
altMITgcm/MITgcm-master
uvLatLon2cube.m
.m
MITgcm-master/utils/matlab/cs_grid/uvLatLon2cube.m
4,280
utf_8
94ef18e807e841554f45873f687e5912
function [uCs,vCs,errFlag]=uvLatLon2cube(xc,yc,uFld,vFld,xcs,ycs,spv,cosalpha,sinalpha); % [uCs,vCs]=uvLatLon2cube(xc,yc,uFld,vFld,xcs,ycs,spv); % put a vector field (uFld,vFld) on to the C-grid, Cubed-sphere grid: uCs,vCs % xc,yc = long,lat position of vector field (uFld,vFld) % assume: size(xc) == size(uF...
github
altMITgcm/MITgcm-master
grph_CS.m
.m
MITgcm-master/utils/matlab/cs_grid/bk_line/grph_CS.m
6,836
utf_8
5194ef2b0c209422ae42f586731cf648
function [fac]=grph_CS(var,xcs,ycs,xcg,ycg,c1,c2,shift,cbV,AxBx,kEnv) % [fac]=grph_CS(var,xcs,ycs,xcg,ycg,c1,c2,shift[,cbV,AxBx,kEnv]) : % produce a flat plot of the cube_sphere field "var", % keeping the initial grid (no interpolation, use "surf") % xcs,ycs,xcg,ycg = center + corner grid point coordinates % c1 < c2 =...
github
altMITgcm/MITgcm-master
grph_CSz.m
.m
MITgcm-master/utils/matlab/cs_grid/bk_line/grph_CSz.m
7,506
utf_8
e06faa836aaf90bfa4b2e880979b55a0
function grph_CSz(var,xcs,ycs,xcg,ycg,c1,c2,shift,cbV,AxBx,kEnv) % grph_CSz(var,xcs,ycs,xcg,ycg,c1,c2,shift[,cbV,AxBx,kEnv]) : % produce a flat plot of the cube_sphere "var" (@ C-grid corner position) % keeping the initial grid (no interpolation, use "surf"). % xcs,ycs,xcg,ycg = center + corner grid point coordinates ...
github
altMITgcm/MITgcm-master
llc_pcol.m
.m
MITgcm-master/utils/matlab/cs_grid/latloncap/llc_pcol.m
4,388
utf_8
2365f63799298f0149ad467287f3baf1
%function h=llc_pcol(t,fldname,iter) %function h=llc_pcol(t,fldname,iter,'sphere') %function h=llc_pcol(t,fldname,iter,'m_map arguments') % with default iter = 1 %function h=llc_pcol(t,fldname) %function h=llc_pcol(t,fldname,[],'m_map arguments') % % plots 2D scalar fields v on the MITgcm llc (lat-lon-cap) grid with p...
github
P-Chao/acfdetect-master
CropPosSample.m
.m
acfdetect-master/CropPosSample.m
25,366
utf_8
82fa96eca30453d1405adc4ebd3ea773
function varargout = CropPosSample(varargin) % CROPPOSSAMPLE MATLAB code for CropPosSample.fig % CROPPOSSAMPLE, by itself, creates a new CROPPOSSAMPLE or raises the existing % singleton*. % % H = CROPPOSSAMPLE returns the handle to a new CROPPOSSAMPLE or the handle to % the existing singleton*. % % ...
github
P-Chao/acfdetect-master
chnsCompute.m
.m
acfdetect-master/toolbox/channels/chnsCompute.m
9,241
UNKNOWN
10cd4fb60e464bb5aeceab01ff4b499e
function chns = chnsCompute( I, varargin ) % Compute channel features at a single scale given an input image. % % Compute the channel features as described in: % P. Doll�r, Z. Tu, P. Perona and S. Belongie % "Integral Channel Features", BMVC 2009. % Channel features have proven very effective in sliding window object...
github
P-Chao/acfdetect-master
imagesAlign.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
opticalFlow.m
.m
acfdetect-master/toolbox/videos/opticalFlow.m
7,361
utf_8
b97e8c1f623eca07c6f1a0fff26d171e
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
P-Chao/acfdetect-master
seqWriterPlugin.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
kernelTracker.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
seqIo.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
seqReaderPlugin.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
pcaApply.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
forestTrain.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
fernsRegTrain.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
rbfDemo.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
pdist2.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
pca.m
.m
acfdetect-master/toolbox/classify/pca.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
P-Chao/acfdetect-master
kmeans2.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
acfModify.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
acfTrain.m
.m
acfdetect-master/toolbox/detector/acfTrain.m
16,517
UNKNOWN
a3e566f4a2f6911d7de22c43d54811ef
function detector = acfTrain( varargin ) % Train aggregate channel features object detector. % % Train aggregate channel features (ACF) object detector as described in: % P. Doll�r, R. Appel, S. Belongie and P. Perona % "Fast Feature Pyramids for Object Detection", PAMI 2014. % The ACF detector is fast (30 fps on a ...
github
P-Chao/acfdetect-master
acfDetect.m
.m
acfdetect-master/toolbox/detector/acfDetect.m
3,704
utf_8
fc0b5fb5b9172ffeec4acf6785bac9ca
function [data, 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 sc...
github
P-Chao/acfdetect-master
bbGt.m
.m
acfdetect-master/toolbox/detector/bbGt.m
34,249
utf_8
402dd4f5c62f7879a4da8690cb14e77d
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
P-Chao/acfdetect-master
bbApply.m
.m
acfdetect-master/toolbox/detector/bbApply.m
21,195
utf_8
cc9744e55c6b8442486ba7f71e3f84ce
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
P-Chao/acfdetect-master
imwrite2.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
convnFast.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
imMlGauss.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
montage2.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
jitterImage.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
movieToImages.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
toolboxUpdateHeader.m
.m
acfdetect-master/toolbox/external/toolboxUpdateHeader.m
2,255
utf_8
7a5b75e586be48da97c84d20b59887ff
function toolboxUpdateHeader % Update the headers of all the files. % % USAGE % toolboxUpdateHeader % % INPUTS % % OUTPUTS % % EXAMPLE % % See also % % Piotr's Computer Vision Matlab Toolbox Version 3.40 % Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com] % Licensed under the Simplified BSD License [see extern...
github
P-Chao/acfdetect-master
toolboxGenDoc.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
toolboxHeader.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
mdot.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
m2html.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
doxysearch.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
doxywrite.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
doxyread.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
imwrite2split.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
playmovies.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
pca_apply_large.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
montages2.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
filter_gauss_1D.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
clfEcoc.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
getargs.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
normxcorrn_fg.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
makemovie.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
localsum_block.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
imrotate2.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
imSubsResize.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
imtranslate.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
randperm2.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
apply_homography.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
pca_apply.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
mode2.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
savefig.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
dirSynch.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
plotRoc.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
simpleCache.m
.m
acfdetect-master/toolbox/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
P-Chao/acfdetect-master
tpsInterpolate.m
.m
acfdetect-master/toolbox/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...