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
cs1471/Modelling-master
reconSFpyrLevs.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/reconSFpyrLevs.m
2,016
utf_8
ff83a4f3d2f0927dcaa8851535e6b20a
% RESDFT = reconSFpyrLevs(PYR,INDICES,LOGRAD,XRCOS,YRCOS,ANGLE,NBANDS,LEVS,BANDS) % % Recursive function for reconstructing levels of a steerable pyramid % representation. This is called by reconSFpyr, and is not usually % called directly. % Eero Simoncelli, 5/97. function resdft = reconSFpyrLevs(pyr,pind,log_rad,Xr...
github
cs1471/Modelling-master
rcosFn.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/rcosFn.m
1,122
utf_8
36283e0a34f1baf7ea2c5e6cb23aab89
% [X, Y] = rcosFn(WIDTH, POSITION, VALUES) % % Return a lookup table (suitable for use by INTERP1) % containing a "raised cosine" soft threshold function: % % Y = VALUES(1) + (VALUES(2)-VALUES(1)) * % cos^2( PI/2 * (X - POSITION + WIDTH)/WIDTH ) % % WIDTH is the width of the region over which the tra...
github
cs1471/Modelling-master
wpyrLev.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/wpyrLev.m
729
utf_8
77f309b76f98f3421e786fde4fe2d429
% [LEV,IND] = wpyrLev(PYR,INDICES,LEVEL) % % Access a level from a separable QMF/wavelet pyramid. % Return as an SxB matrix, B = number of bands, S = total size of a band. % Also returns an Bx2 matrix containing dimensions of the subbands. % Eero Simoncelli, 6/96. function [lev,ind] = wpyrLev(pyr,pind,level) if ((p...
github
cs1471/Modelling-master
binomialFilter.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/binomialFilter.m
309
utf_8
47b67219b2519bd65a435f3df318d41a
% KERNEL = binomialFilter(size) % % Returns a vector of binomial coefficients of order (size-1) . % Eero Simoncelli, 2/97. function [kernel] = binomialFilter(sz) if (sz < 2) error('size argument must be larger than 1'); end kernel = [0.5 0.5]'; for n=1:sz-2 kernel = conv([0.5 0.5]', kernel); end
github
cs1471/Modelling-master
cconv2.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/cconv2.m
1,325
utf_8
8e564b623ba5cebd51e585eac6c66ba8
% RES = CCONV2(MTX1, MTX2, CTR) % % Circular convolution of two matrices. Result will be of size of % LARGER vector. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % argument: % CTR origin % 0 DIM/2 (defaul...
github
cs1471/Modelling-master
reconSCFpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/reconSCFpyr.m
4,475
utf_8
a0a6a06af4b5c9f7aa195bb8188fc754
% RES = reconSCFpyr(PYR, INDICES, LEVS, BANDS, TWIDTH) % % The inverse of buildSCFpyr: Reconstruct image from its complex steerable pyramid representation, % in the Fourier domain. % % The image is reconstructed by forcing the complex subbands to be analytic % (zero on half of the 2D Fourier plane, as they are supossed...
github
cs1471/Modelling-master
buildSCFpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/buildSCFpyr.m
2,713
utf_8
d94b4004138b50b6651511e8ba6ccb93
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSCFpyr(IM, HEIGHT, ORDER, TWIDTH) % % This is a modified version of buildSFpyr, that constructs a % complex-valued steerable pyramid using Hilbert-transform pairs % of filters. Note that the imaginary parts will *not* be steerable. % % To reconstruct from this representati...
github
cs1471/Modelling-master
showIm.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/showIm.m
6,121
utf_8
164e6e96cbe0317bfda1dc32ec341a62
% RANGE = showIm (MATRIX, RANGE, ZOOM, LABEL, NSHADES ) % % Display a MatLab MATRIX as a grayscale image in the current figure, % inside the current axes. If MATRIX is complex, the real and imaginary % parts are shown side-by-side, with the same grayscale mapping. % % If MATRIX is a string, it should be the name of...
github
cs1471/Modelling-master
pyrLow.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/pyrLow.m
287
utf_8
b3514ec06e2e106d7b61e534cac20a8e
% RES = pyrLow(PYR, INDICES) % % Access the lowpass subband from a pyramid % (gaussian, laplacian, QMF/wavelet, steerable). % Eero Simoncelli, 6/96. function res = pyrLow(pyr,pind) band = size(pind,1); res = reshape( pyr(pyrBandIndices(pind,band)), pind(band,1), pind(band,2) );
github
cs1471/Modelling-master
pgmRead.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/pgmRead.m
1,259
utf_8
6f07c13cf0f5d8930a46ac0d778bf86f
% IM = pgmRead( FILENAME ) % % Load a pgm image into a MatLab matrix. % This format is accessible from the XV image browsing utility. % Only works for 8bit gray images (raw or ascii) % Hany Farid, Spring '96. Modified by Eero Simoncelli, 6/96. function im = pgmRead( fname ); [fid,msg] = fopen( fname, 'r' ); ...
github
cs1471/Modelling-master
upConv.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/upConv.m
2,781
utf_8
62206c605ad4e39f382ccc2917a008ed
% RES = upConv(IM, FILT, EDGES, STEP, START, STOP, RES) % % Upsample matrix IM, followed by convolution with matrix FILT. These % arguments should be 1D or 2D matrices, and IM must be larger (in % both dimensions) than FILT. The origin of filt % is assumed to be floor(size(filt)/2)+1. % % EDGES is a string determinin...
github
cs1471/Modelling-master
mean2.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mean2.m
97
utf_8
cacc007ef6e32ba40a1e0da3b3d80a0e
% M = MEAN2(MTX) % % Sample mean of a matrix. function res = mean2(mtx) res = mean(mean(mtx));
github
cs1471/Modelling-master
range2.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/range2.m
524
utf_8
5d4a52482a0c4028b2fee27f69d6fd6d
% [MIN, MAX] = range2(MTX) % % Compute minimum and maximum values of MTX, returning them as a 2-vector. % Eero Simoncelli, 3/97. function [mn, mx] = range2(mtx) %% NOTE: THIS CODE IS NOT ACTUALLY USED! (MEX FILE IS CALLED INSTEAD) %fprintf(1,'WARNING: You should compile the MEX version of "range2.c",\n foun...
github
cs1471/Modelling-master
buildSCFpyrLevs.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/buildSCFpyrLevs.m
2,187
utf_8
26747285064a0eaa2f3db75013e80849
% [PYR, INDICES] = buildSCFpyrLevs(LODFT, LOGRAD, XRCOS, YRCOS, ANGLE, HEIGHT, NBANDS) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSCFpyr, and is not usually called directly. % Original code: Eero Simoncelli, 5/97. % Modified by Javier Portilla to generate complex b...
github
cs1471/Modelling-master
clip.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/clip.m
814
utf_8
13c82937ba69d5bc8c94b2ccca783e1b
% [RES] = clip(IM, MINVALorRANGE, MAXVAL) % % Clip values of matrix IM to lie between minVal and maxVal: % RES = max(min(IM,MAXVAL),MINVAL) % The first argument can also specify both min and max, as a 2-vector. % If only one argument is passed, the range defaults to [0,1]. function res = clip(im, minValOrRange, m...
github
cs1471/Modelling-master
upBlur.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/upBlur.m
1,213
utf_8
7b07d26940520537edb6e8dc25b72242
% RES = upBlur(IM, LEVELS, FILT) % % Upsample and blur an image. The blurring is done with filter % kernel specified by FILT (default = 'binom5'), which can be a string % (to be passed to namedFilter), a vector (applied separably as a 1D % convolution kernel in X and Y), or a matrix (applied as a 2D % convolution kern...
github
cs1471/Modelling-master
nextFig.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/nextFig.m
363
utf_8
94a66b00983cd3840ff1cc88f118a022
% nextFig (MAXFIGS, SKIP) % % Make figure number mod((GCF+SKIP), MAXFIGS) the current figure. % MAXFIGS is optional, and defaults to 2. % SKIP is optional, and defaults to 1. % Eero Simoncelli, 2/97. function nextFig(maxfigs, skip) if (exist('maxfigs') ~= 1) maxfigs = 2; end if (exist('skip') ~= 1) skip = 1;...
github
cs1471/Modelling-master
zconv2.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/zconv2.m
1,164
utf_8
cd266795530db4cb146c1038383316f3
% RES = ZCONV2(MTX1, MTX2, CTR) % % Convolution of two matrices, with boundaries handled as if the larger mtx % lies in a sea of zeros. Result will be of size of LARGER vector. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % arg...
github
cs1471/Modelling-master
mkZonePlate.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mkZonePlate.m
633
utf_8
d88329c8d374e54e124222c825679768
% IM = mkZonePlate(SIZE, AMPL, PHASE) % % Make a "zone plate" image: % AMPL * cos( r^2 + PHASE) % SIZE specifies the matrix size, as for zeros(). % AMPL (default = 1) and PHASE (default = 0) are optional. % Eero Simoncelli, 6/96. function [res] = mkZonePlate(sz, ampl, ph) sz = sz(:); if (size(sz,1) == 1) sz ...
github
cs1471/Modelling-master
steer2HarmMtx.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/steer2HarmMtx.m
1,803
utf_8
35816be985c308717168260dc97419d8
% MTX = steer2HarmMtx(HARMONICS, ANGLES, REL_PHASES) % % Compute a steering matrix (maps a directional basis set onto the % angular Fourier harmonics). HARMONICS is a vector specifying the % angular harmonics contained in the steerable basis/filters. ANGLES % (optional) is a vector specifying the angular position of...
github
cs1471/Modelling-master
mkAngularSine.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mkAngularSine.m
845
utf_8
78a5e0afe3fef5c42804516e2ea1ccc8
% IM = mkAngularSine(SIZE, HARMONIC, AMPL, PHASE, ORIGIN) % % Make an angular sinusoidal image: % AMPL * sin( HARMONIC*theta + PHASE), % where theta is the angle about the origin. % SIZE specifies the matrix size, as for zeros(). % AMPL (default = 1) and PHASE (default = 0) are optional. % Eero Simoncelli, 2/97....
github
cs1471/Modelling-master
mkRamp.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mkRamp.m
1,110
utf_8
28989822e19c604a816a287a4bee873d
% IM = mkRamp(SIZE, DIRECTION, SLOPE, INTERCEPT, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of a ramp function, with given gradient DIRECTION % (radians, CW from X-axis, default = 0), SLOPE (per pixel, default = % 1), and a value of INTERCEPT (default = 0) at the...
github
cs1471/Modelling-master
histoMatch.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/histoMatch.m
858
utf_8
8936fc2eadacc591ecdffe5967726780
% RES = histoMatch(MTX, N, X) % % Modify elements of MTX so that normalized histogram matches that % specified by vectors X and N, where N contains the histogram counts % and X the histogram bin positions (see histo). % Eero Simoncelli, 7/96. function res = histoMatch(mtx, N, X) if ( exist('histo') == 3 ) [oN, oX]...
github
cs1471/Modelling-master
subMtx.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/subMtx.m
420
utf_8
c660029ce728dcb8c540c9cf419fa7bc
% MTX = subMtx(VEC, DIMENSIONS, START_INDEX) % % Reshape a portion of VEC starting from START_INDEX (optional, % default=1) to the given dimensions. % Eero Simoncelli, 6/96. function mtx = subMtx(vec, sz, offset) if (exist('offset') ~= 1) offset = 1; end vec = vec(:); sz = sz(:); if (size(sz,1) ~= 2) error('D...
github
cs1471/Modelling-master
showLpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/showLpyr.m
5,421
utf_8
0646b94ae144cf6160a44f50e67f8dd5
% RANGE = showLpyr (PYR, INDICES, RANGE, GAP, LEVEL_SCALE_FACTOR) % % Display a Laplacian (or Gaussian) pyramid, specified by PYR and % INDICES (see buildLpyr), in the current figure. % % RANGE is a 2-vector specifying the values that map to black and % white, respectively. These values are scaled by % LEVEL_SCALE_F...
github
cs1471/Modelling-master
sp1Filters.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/sp1Filters.m
9,435
utf_8
81cfbf726744492bee2374b9b564ebdf
% Steerable pyramid filters. Transform described in: % % @INPROCEEDINGS{Simoncelli95b, % TITLE = "The Steerable Pyramid: A Flexible Architecture for % Multi-Scale Derivative Computation", % AUTHOR = "E P Simoncelli and W T Freeman", % BOOKTITLE = "Second Int'l Conf on Image Processing", % ADDRESS = "Washington, DC"...
github
cs1471/Modelling-master
spyrHt.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/spyrHt.m
305
utf_8
06e83c1f45c1a99e242fa7ea37093a11
% [HEIGHT] = spyrHt(INDICES) % % Compute height of steerable pyramid with given index matrix. % Eero Simoncelli, 6/96. function [ht] = spyrHt(pind) nbands = spyrNumBands(pind); % Don't count lowpass, or highpass residual bands if (size(pind,1) > 2) ht = (size(pind,1)-2)/nbands; else ht = 0; end
github
cs1471/Modelling-master
spyrBand.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/spyrBand.m
819
utf_8
7d15b24244e521c9e85c68b3037f569b
% [LEV,IND] = spyrBand(PYR,INDICES,LEVEL,BAND) % % Access a band from a steerable pyramid. % % LEVEL indicates the scale (finest = 1, coarsest = spyrHt(INDICES)). % % BAND (optional, default=1) indicates which subband % (1 = vertical, rest proceeding anti-clockwise). % Eero Simoncelli, 6/96. function res =...
github
cs1471/Modelling-master
wpyrBand.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/wpyrBand.m
873
utf_8
12e08d90ccd6261b737e2d3c5ac5b1e7
% RES = wpyrBand(PYR, INDICES, LEVEL, BAND) % % Access a subband from a separable QMF/wavelet pyramid. % % LEVEL (optional, default=1) indicates the scale (finest = 1, % coarsest = wpyrHt(INDICES)). % % BAND (optional, default=1) indicates which subband (1=horizontal, % 2=vertical, 3=diagonal). % Eero Simoncelli...
github
cs1471/Modelling-master
skew2.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/skew2.m
478
utf_8
b304767117ab43e408c5757ab9e3402d
% S = SKEW2(MTX,MEAN,VAR) % % Sample skew (third moment divided by variance^3/2) of a matrix. % MEAN (optional) and VAR (optional) make the computation faster. function res = skew2(mtx, mn, v) if (exist('mn') ~= 1) mn = mean2(mtx); end if (exist('v') ~= 1) v = var2(mtx,mn); end if (isreal(mtx)) res = mean(...
github
cs1471/Modelling-master
imStats.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/imStats.m
1,217
utf_8
aab8c3264c5939806bbca5657c925734
% imStats(IM1,IM2) % % Report image (matrix) statistics. % When called on a single image IM1, report min, max, mean, stdev, skew, % and kurtosis (4th moment about the mean, divided by squared variance) % % When called on two images (IM1 and IM2), report min, max, mean, % stdev of the difference, and also SNR (relative...
github
cs1471/Modelling-master
innerProd.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/innerProd.m
314
utf_8
e2ea166f9b3ddbc08cb54ef697343d06
% RES = innerProd(MTX) % % Compute (MTX' * MTX) efficiently (i.e., without copying the matrix) % % NOTE: This function used to call a MEX function (C code) to avoid copying, but % newer versions of matlab have eliminated the overhead of the % simpler form below. function res = innerProd(mtx) res = mtx' * mtx;
github
cs1471/Modelling-master
reconSFpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/reconSFpyr.m
3,114
utf_8
ebb08817efc597692b9026a84e2a6906
% RES = reconSFpyr(PYR, INDICES, LEVS, BANDS, TWIDTH) % % Reconstruct image from its steerable pyramid representation, in the Fourier % domain, as created by buildSFpyr. % % PYR is a vector containing the N pyramid subbands, ordered from fine % to coarse. INDICES is an Nx2 matrix containing the sizes of % each subband...
github
cs1471/Modelling-master
corrDn.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/corrDn.m
2,274
utf_8
e79ad1e2689fa5bc080c95c923c30f9a
% RES = corrDn(IM, FILT, EDGES, STEP, START, STOP) % % Compute correlation of matrices IM with FILT, followed by % downsampling. These arguments should be 1D or 2D matrices, and IM % must be larger (in both dimensions) than FILT. The origin of filt % is assumed to be floor(size(filt)/2)+1. % % EDGES is a string dete...
github
cs1471/Modelling-master
vectify.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/vectify.m
186
utf_8
1da0e519af06d6baaff1decc40dc3702
% [VEC] = columnize(MTX) % % Pack elements of MTX into a column vector. Just provides a % function-call notatoin for the operation MTX(:) function vec = columnize(mtx) vec = mtx(:);
github
cs1471/Modelling-master
maxPyrHt.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/maxPyrHt.m
603
utf_8
019e5ce9d036a893ec979c63f51ff54a
% HEIGHT = maxPyrHt(IMSIZE, FILTSIZE) % % Compute maximum pyramid height for given image and filter sizes. % Specifically: the number of corrDn operations that can be sequentially % performed when subsampling by a factor of 2. % Eero Simoncelli, 6/96. function height = maxPyrHt(imsz, filtsz) imsz = imsz(:); filtsz =...
github
cs1471/Modelling-master
buildSpyrLevs.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/buildSpyrLevs.m
861
utf_8
a5fa1e98161a8137e666c1406c28a748
% [PYR, INDICES] = buildSpyrLevs(LOIM, HEIGHT, LOFILT, BFILTS, EDGES) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSpyr, and is not usually called directly. % Eero Simoncelli, 6/96. function [pyr,pind] = buildSpyrLevs(lo0,ht,lofilt,bfilts,edges); if (ht <= 0) py...
github
cs1471/Modelling-master
showSpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/showSpyr.m
5,213
utf_8
bc643d88c491a55c0a0abb5e86c91757
% RANGE = showSpyr (PYR, INDICES, RANGE, GAP, LEVEL_SCALE_FACTOR) % % Display a steerable pyramid, specified by PYR and INDICES % (see buildSpyr), in the current figure. The highpass band is not shown. % % RANGE is a 2-vector specifying the values that map to black and % white, respectively. These values are scaled...
github
cs1471/Modelling-master
histo.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/histo.m
1,836
utf_8
41c10f27418049add76769c8014d320f
% [N,X] = histo(MTX, nbinsOrBinsize, binCenter); % % Compute a histogram of (all) elements of MTX. N contains the histogram % counts, X is a vector containg the centers of the histogram bins. % % nbinsOrBinsize (optional, default = 101) specifies either % the number of histogram bins, or the negative of the binsize. %...
github
cs1471/Modelling-master
lplot.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/lplot.m
1,009
utf_8
87c83936af0b318d55077862065b56df
% lplot(VEC, XRANGE) % % Plot VEC, a vector, in "lollipop" format. % XRANGE (optional, default = [1,length(VEC)]), should be a 2-vector % specifying the X positions (for labeling purposes) of the first and % last sample of VEC. % Mark Liberman, Linguistics Dept, UPenn, 1994. function lplot(x,xrange) if (exist('...
github
cs1471/Modelling-master
blurDn.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/blurDn.m
1,364
utf_8
d528010bfd2b4c50e7dbb2aede757214
% RES = blurDn(IM, LEVELS, FILT) % % Blur and downsample an image. The blurring is done with filter % kernel specified by FILT (default = 'binom5'), which can be a string % (to be passed to namedFilter), a vector (applied separably as a 1D % convolution kernel in X and Y), or a matrix (applied as a 2D % convolution ke...
github
cs1471/Modelling-master
reconSpyrLevs.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/reconSpyrLevs.m
1,126
utf_8
1f10e3cea5d79a4f4a30d979f3bb1298
% RES = reconSpyrLevs(PYR,INDICES,LOFILT,BFILTS,EDGES,LEVS,BANDS) % % Recursive function for reconstructing levels of a steerable pyramid % representation. This is called by reconSpyr, and is not usually % called directly. % Eero Simoncelli, 6/96. function res = reconSpyrLevs(pyr,pind,lofilt,bfilts,edges,levs,bands)...
github
cs1471/Modelling-master
mkSine.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mkSine.m
1,725
utf_8
35c6d83f70860ab6defcbdcf7366d89e
% IM = mkSine(SIZE, PERIOD, DIRECTION, AMPLITUDE, PHASE, ORIGIN) % or % IM = mkSine(SIZE, FREQ, AMPLITUDE, PHASE, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of a 2D sinusoid, with given PERIOD (in pixels), % DIRECTION (radians, CW from X-axis, default = 0),...
github
cs1471/Modelling-master
buildSFpyrLevs.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/buildSFpyrLevs.m
1,891
utf_8
52ab858761411b2a5a75e7de641259cf
% [PYR, INDICES] = buildSFpyrLevs(LODFT, LOGRAD, XRCOS, YRCOS, ANGLE, HEIGHT, NBANDS) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSFpyr, and is not usually called directly. % Eero Simoncelli, 5/97. function [pyr,pind] = buildSFpyrLevs(lodft,log_rad,Xrcos,Yrcos,angl...
github
cs1471/Modelling-master
pixelAxes.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/pixelAxes.m
1,983
utf_8
1b2a2bfddd425fee2ccd276f3948cec7
% [ZOOM] = pixelAxes(DIMS, ZOOM) % % Set the axes of the current plot to cover a multiple of DIMS pixels, % thereby eliminating screen aliasing artifacts when displaying an % image of size DIMS. % % ZOOM (optional, default='same') expresses the desired number of % samples displayed per screen pixel. It should be a ...
github
cs1471/Modelling-master
pyrBandIndices.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/pyrBandIndices.m
589
utf_8
28f90484526c294bdb24bdbf8014012d
% RES = pyrBandIndices(INDICES, BAND_NUM) % % Return indices for accessing a subband from a pyramid % (gaussian, laplacian, QMF/wavelet, steerable). % Eero Simoncelli, 6/96. function indices = pyrBandIndices(pind,band) if ((band > size(pind,1)) | (band < 1)) error(sprintf('BAND_NUM must be between 1 and number o...
github
cs1471/Modelling-master
pointOp.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/pointOp.m
1,208
utf_8
9c9c3a54315c4b9acb007707a411c561
% RES = pointOp(IM, LUT, ORIGIN, INCREMENT, WARNINGS) % % Apply a point operation, specified by lookup table LUT, to image IM. % LUT must be a row or column vector, and is assumed to contain % (equi-spaced) samples of the function. ORIGIN specifies the % abscissa associated with the first sample, and INCREMENT specifi...
github
cs1471/Modelling-master
reconWpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/reconWpyr.m
3,992
utf_8
859a606f214bce204ce3c9ea18c0fc87
% RES = reconWpyr(PYR, INDICES, FILT, EDGES, LEVS, BANDS) % % Reconstruct image from its separable orthonormal QMF/wavelet pyramid % representation, as created by buildWpyr. % % PYR is a vector containing the N pyramid subbands, ordered from fine % to coarse. INDICES is an Nx2 matrix containing the sizes of % each sub...
github
cs1471/Modelling-master
showWpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/showWpyr.m
5,491
utf_8
4bc0b260425f553810ae04afced17fda
% RANGE = showWpyr (PYR, INDICES, RANGE, GAP, LEVEL_SCALE_FACTOR) % % Display a separable QMF/wavelet pyramid, specified by PYR and INDICES % (see buildWpyr), in the current figure. % % RANGE is a 2-vector specifying the values that map to black and % white, respectively. These values are scaled by % LEVEL_SCALE_FAC...
github
cs1471/Modelling-master
imGradient.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/imGradient.m
1,547
utf_8
b13a85bea09c3f4e0c1e6140c9a31f7a
% [dx, dy] = imGradient(im, edges) % % Compute the gradient of the image using smooth derivative filters % optimized for accurate direction estimation. Coordinate system % corresponds to standard pixel indexing: X axis points rightward. Y % axis points downward. EDGES specify boundary handling (see corrDn % for opt...
github
cs1471/Modelling-master
lpyrHt.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/lpyrHt.m
233
utf_8
dd0b45926abda2b3fe9aaec0a4f4d214
% [HEIGHT] = lpyrHt(INDICES) % % Compute height of Laplacian pyramid with given its INDICES matrix. % See buildLpyr.m % Eero Simoncelli, 6/96. function [ht] = lpyrHt(pind) % Don't count lowpass residual band ht = size(pind,1)-1;
github
cs1471/Modelling-master
buildGpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/buildGpyr.m
1,931
utf_8
3f1cfe5507fe34b51d71a87d955abbf5
% [PYR, INDICES] = buildGpyr(IM, HEIGHT, FILT, EDGES) % % Construct a Gaussian pyramid on matrix IM. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is 1+maxPyrHt(size(IM),size(FILT)). % You can also specify 'auto' to use this value. % % FILT (optional) can be a string naming a standar...
github
cs1471/Modelling-master
shift.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/shift.m
438
utf_8
2ac42b171e4ca683ef1d361eaf331870
% [RES] = shift(MTX, OFFSET) % % Circular shift 2D matrix samples by OFFSET (a [Y,X] 2-vector), % such that RES(POS) = MTX(POS-OFFSET). function res = shift(mtx, offset) dims = size(mtx); offset = mod(-offset,dims); res = [ mtx(offset(1)+1:dims(1), offset(2)+1:dims(2)), ... mtx(offset(1)+1:dims(1), 1:o...
github
cs1471/Modelling-master
namedFilter.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/namedFilter.m
3,207
utf_8
8f45ef65fca60f53e0f734c4f1ae01bf
% KERNEL = NAMED_FILTER(NAME) % % Some standard 1D filter kernels. These are scaled such that % their L2-norm is 1.0. % % binomN - binomial coefficient filter of order N-1 % haar: - Haar wavelet. % qmf8, qmf12, qmf16 - Symmetric Quadrature Mirror Filters [Johnston80] % daub2,daub3,daub4 -...
github
cs1471/Modelling-master
buildLpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/buildLpyr.m
2,632
utf_8
b62aad457634fd598b373448741860cd
% [PYR, INDICES] = buildLpyr(IM, HEIGHT, FILT1, FILT2, EDGES) % % Construct a Laplacian pyramid on matrix (or vector) IM. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is 1+maxPyrHt(size(IM),size(FILT)). You can also specify 'auto' to % use this value. % % FILT1 (optional) can be a s...
github
cs1471/Modelling-master
mkAngle.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mkAngle.m
788
utf_8
126297224256c6e9077dc58f4094c39a
% IM = mkAngle(SIZE, PHASE, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of the polar angle (in radians, CW from the % X-axis, ranging from -pi to pi), relative to angle PHASE (default = % 0), about ORIGIN pixel (default = (size+1)/2). % Eero Simoncelli, 6/96. fu...
github
cs1471/Modelling-master
wpyrHt.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/wpyrHt.m
270
utf_8
18e1a724afee99389db70484333eb05a
% [HEIGHT] = wpyrHt(INDICES) % % Compute height of separable QMF/wavelet pyramid with given index matrix. % Eero Simoncelli, 6/96. function [ht] = wpyrHt(pind) if ((pind(1,1) == 1) | (pind(1,2) ==1)) nbands = 1; else nbands = 3; end ht = (size(pind,1)-1)/nbands;
github
cs1471/Modelling-master
sp0Filters.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/sp0Filters.m
6,140
utf_8
0c5cd7bafff21efacd2a8ec71af90f49
% Steerable pyramid filters. Transform described in: % % @INPROCEEDINGS{Simoncelli95b, % TITLE = "The Steerable Pyramid: A Flexible Architecture for % Multi-Scale Derivative Computation", % AUTHOR = "E P Simoncelli and W T Freeman", % BOOKTITLE = "Second Int'l Conf on Image Processing", % ADDRESS = "Washington, DC"...
github
cs1471/Modelling-master
sp5Filters.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/sp5Filters.m
6,949
utf_8
305fb0c0ca0709fc34ca6c5b4bb91712
% Steerable pyramid filters. Transform described in: % % @INPROCEEDINGS{Simoncelli95b, % TITLE = "The Steerable Pyramid: A Flexible Architecture for % Multi-Scale Derivative Computation", % AUTHOR = "E P Simoncelli and W T Freeman", % BOOKTITLE = "Second Int'l Conf on Image Processing", % ADDRESS = "Washington, DC"...
github
cs1471/Modelling-master
steer.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/steer.m
1,990
utf_8
3db4dd948e0ece7c7237330b7d4f191e
% RES = STEER(BASIS, ANGLE, HARMONICS, STEERMTX) % % Steer BASIS to the specfied ANGLE. % % BASIS should be a matrix whose columns are vectorized rotated copies of a % steerable function, or the responses of a set of steerable filters. % % ANGLE can be a scalar, or a column vector the size of the basis. % % HARMO...
github
cs1471/Modelling-master
mkGaussian.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mkGaussian.m
1,565
utf_8
1f55e73fbc9155a38607b0667da2d7f3
% IM = mkGaussian(SIZE, COVARIANCE, MEAN, AMPLITUDE) % % Compute a matrix with dimensions SIZE (a [Y X] 2-vector, or a % scalar) containing a Gaussian function, centered at pixel position % specified by MEAN (default = (size+1)/2), with given COVARIANCE (can % be a scalar, 2-vector, or 2x2 matrix. Default = (min(size...
github
cs1471/Modelling-master
factorial.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/factorial.m
273
utf_8
370971eae7a2351704973c452848d194
%% RES = factorial(NUM) % % Factorial function that works on matrices (matlab's does not). % EPS, 11/02 function res = factorial(num) res = ones(size(num)); ind = find(num > 0); if ( ~isempty(ind) ) subNum = num(ind); res(ind) = subNum .* factorial(subNum-1); end
github
cs1471/Modelling-master
entropy2.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/entropy2.m
693
utf_8
c637630f7ac8912e5cb30f67551aece7
% E = ENTROPY2(MTX,BINSIZE) % % Compute the first-order sample entropy of MTX. Samples of VEC are % first discretized. Optional argument BINSIZE controls the % discretization, and defaults to 256/(max(VEC)-min(VEC)). % % NOTE: This is a heavily biased estimate of entropy (it is too % small) when you don't have much...
github
cs1471/Modelling-master
buildSFpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/buildSFpyr.m
3,256
utf_8
84c0a17ac90df74f317c29833c54ffa3
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSFpyr(IM, HEIGHT, ORDER, TWIDTH) % % Construct a steerable pyramid on matrix IM, in the Fourier domain. % This is similar to buildSpyr, except that: % % + Reconstruction is exact (within floating point errors) % + It can produce any number of orientation bands. % - ...
github
cs1471/Modelling-master
spyrLev.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/spyrLev.m
668
utf_8
8d25ccc2790a62ab21a20cc3d0772706
% [LEV,IND] = spyrLev(PYR,INDICES,LEVEL) % % Access a level from a steerable pyramid. % Return as an SxB matrix, B = number of bands, S = total size of a band. % Also returns an Bx2 matrix containing dimensions of the subbands. % Eero Simoncelli, 6/96. function [lev,ind] = spyrLev(pyr,pind,level) nbands = spyrNumBa...
github
cs1471/Modelling-master
pgmWrite.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/pgmWrite.m
3,119
utf_8
6425008296069df51c5c30ee1c011850
% RANGE = pgmWrite(MTX, FILENAME, RANGE, TYPE, COMMENT) % % Write a MatLab matrix to a pgm (graylevel image) file. % This format is accessible from the XV image browsing utility. % % RANGE (optional) is a 2-vector specifying the values that map to % black and white, respectively. Passing a value of 'auto' (default) % ...
github
cs1471/Modelling-master
modulateFlip.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/modulateFlip.m
461
utf_8
92f12f8068fcf49b9863851f106a5aa3
% [HFILT] = modulateFlipShift(LFILT) % % QMF/Wavelet highpass filter construction: modulate by (-1)^n, % reverse order (and shift by one, which is handled by the convolution % routines). This is an extension of the original definition of QMF's % (e.g., see Simoncelli90). % Eero Simoncelli, 7/96. function [hfilt] = m...
github
cs1471/Modelling-master
mkFract.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mkFract.m
843
utf_8
f0d97e35133978ade3a5fe34dea5d08a
% IM = mkFract(SIZE, FRACT_DIM) % % Make a matrix of dimensions SIZE (a [Y X] 2-vector, or a scalar) % containing fractal (pink) noise with power spectral density of the % form: 1/f^(5-2*FRACT_DIM). Image variance is normalized to 1.0. % FRACT_DIM defaults to 1.0 % Eero Simoncelli, 6/96. %% TODO: Verify that this m...
github
cs1471/Modelling-master
mkSquare.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/mkSquare.m
2,344
utf_8
7d9553e391552cd91cdd6d81348404e2
% IM = mkSquare(SIZE, PERIOD, DIRECTION, AMPLITUDE, PHASE, ORIGIN, TWIDTH) % or % IM = mkSine(SIZE, FREQ, AMPLITUDE, PHASE, ORIGIN, TWIDTH) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of a 2D square wave, with given PERIOD (in % pixels), DIRECTION (radians, CW from ...
github
cs1471/Modelling-master
spyrNumBands.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/spyrNumBands.m
480
utf_8
4a10cb68438c7dfc197ec00066f48fd4
% [NBANDS] = spyrNumBands(INDICES) % % Compute number of orientation bands in a steerable pyramid with % given index matrix. If the pyramid contains only the highpass and % lowpass bands (i.e., zero levels), returns 0. % Eero Simoncelli, 2/97. function [nbands] = spyrNumBands(pind) if (size(pind,1) == 2) nbands ...
github
cs1471/Modelling-master
reconSpyr.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/matlabPyrTools/reconSpyr.m
2,671
utf_8
ea9e71a5f8a76eadbe8c1a2472d89344
% RES = reconSpyr(PYR, INDICES, FILTFILE, EDGES, LEVS, BANDS) % % Reconstruct image from its steerable pyramid representation, as created % by buildSpyr. % % PYR is a vector containing the N pyramid subbands, ordered from fine % to coarse. INDICES is an Nx2 matrix containing the sizes of % each subband. This is compa...
github
cs1471/Modelling-master
vanRead.m
.m
Modelling-master/month_OdeliaSchwartz/codingPractice/BerkeleyCourse2016/Images/vanRead.m
245
utf_8
2ce954dca40bb4d5f9313d08825b8b1b
% IM = vanRead( FILENAME ) % % Load a van hateren image into a MatLab matrix. % This format is 16 bit grayscale (raw). % Feb 2001 function im = vanRead( fname ); fid=fopen(fname, 'r', 'ieee-be'); im=fread(fid, [1536, 1024], 'int16'); im=im';
github
LiHeUA/M2DP-master
M2DP.m
.m
M2DP-master/M2DP.m
3,729
utf_8
fe5eb60987a7149cfcb3d13b6707d16b
function [desM2DP,A] = M2DP(data) % Multiview 2D projection (M2DP) descriptor. % % Input: % data n*3 Point cloud. Each row is [x y z] % Output: % desM2DP 192*1 M2DP descriptor of the input cloud data % A 64*128 Signature matrix % % Introduction: % M2DP is a global descript...
github
LiHeUA/M2DP-master
demo.m
.m
M2DP-master/demo.m
1,424
utf_8
4b78a2469699ec03d22ae1be23ce6995
function demo % Demo of the M2DP descriptor described in the following paper: % % Li He, Xiaolong Wang and Hong Zhang, M2DP: A Novel 3D Point Cloud % Descriptor and Its Application in Loop Closure Detection, IROS 2016. % % Li He, Dept. of Computing Science, University of Alberta % lhe2@ualberta.ca %% 0. Please run me...
github
mschweiger/orbiter-tileedit-master
elev_downsample.m
.m
orbiter-tileedit-master/matlab/elev_downsample.m
3,532
utf_8
164297d950984c87d62e8d31b550364d
function b = elev_downsample(texpath,lvl,ilat,ilng) plvl = lvl-1; pilat = floor(ilat/2); pilng = floor(ilng/2); fname = sprintf('%s/Elev/%02d/%06d/%06d.elv', texpath, plvl, pilat, pilng); pdata = elvread(fname); pdata0 = pdata; fname = sprintf('%s/Elev_mod/%02d/%06d/%06d.elv', texpath, plvl, pilat, pilng); pdata = elvm...
github
mschweiger/orbiter-tileedit-master
elvwrite.m
.m
orbiter-tileedit-master/matlab/elvwrite.m
1,152
utf_8
c9daa70e1035a7cd0e91ede4b00072df
function elvwrite(dname,fname,im) elvh.grd = size(im); elvh.size = 100; im = reshape(rot90(int32(im),3),[],1); [res,msg,id] = mkdir(dname); if res == 0 return; % cannot create directory end fid = fopen([dname '/' fname], 'wb'); if fid < 0 return; % cannot create file end v = im; v0 = min(v); v1 = max(v); vr...
github
mschweiger/orbiter-tileedit-master
elvmodread.m
.m
orbiter-tileedit-master/matlab/elvmodread.m
1,110
utf_8
41633811e05f2f9b27ef914049ce885b
function im=elvmodread(fname,im0) im = im0; fid = fopen(fname,'rb'); if fid < 0 return; end magic = char(fread(fid,4,'char')'); if ~strcmp(magic(1:3),'ELE') || magic(4) ~= 1 error(['Invalid file format: ' fname]); end elvh = read_header(fid); switch elvh.dtype case 0 im = ones(elvh.grd,'int32'...
github
mschweiger/orbiter-tileedit-master
tileedit.m
.m
orbiter-tileedit-master/matlab/tileedit.m
50,058
utf_8
6abafe70efcc60c5f9f392b8ac188dfd
function varargout = tileedit(varargin) % TILEEDIT MATLAB code for tileedit.fig % TILEEDIT, by itself, creates a new TILEEDIT or raises the existing % singleton*. % % H = TILEEDIT returns the handle to a new TILEEDIT or the handle to % the existing singleton*. % % TILEEDIT('CALLBACK',hObject,ev...
github
mschweiger/orbiter-tileedit-master
elvmodwrite.m
.m
orbiter-tileedit-master/matlab/elvmodwrite.m
1,617
utf_8
e2758ba979928b018e3eecde0e6419f9
function elvmodwrite(dname,fname,im,im0) elvh.grd = size(im); elvh.size = 100; im = reshape(rot90(int32(im),3),[],1); im0 = reshape(rot90(int32(im0),3),[],1); i = find(im-im0); if isempty(i) % no modifications - delete the mod file if it exists if exist([dname '/' fname],'file') delete([dname '/' fna...
github
mschweiger/orbiter-tileedit-master
elvread.m
.m
orbiter-tileedit-master/matlab/elvread.m
1,072
utf_8
748ee1dc2c091c733b5aaededc90490f
function im=elvread(fname) fid = fopen(fname,'rb'); if fid < 0 im = []; return; end magic = char(fread(fid,4,'char')'); if ~strcmp(magic(1:3),'ELE') || magic(4) ~= 1 error(['Invalid file format: ' fname]); end elvh = read_header(fid); switch elvh.dtype case 0 im = ones(elvh.grd)*elvh.offset...
github
motoq/bierman-master
est_upd_srukf_cov.m
.m
bierman-master/src/est_upd_srukf_cov.m
3,417
utf_8
9f69f7044f9ea046fc1ef658ba4fa1b2
function L_hat = est_upd_srukf_cov(x_bar, L_bar, Chi, w_m, sr_w_c, Y, Sr_Rn, nc) % EST_UPD_SRUKF_COV Given a postulated estimate and covariance, update with % sigma vector based parameters and computed observations using a square root % formulation of the unscented Kalman filter. The input estimate may be an % augment...
github
motoq/bierman-master
driver_lls_constrained.m
.m
bierman-master/src/driver_lls_constrained.m
3,086
utf_8
0a8cfaa3e8c9b232a0a72ef598bb6aed
clear; close all; % % Illustrates linear least squares and constrained linear least squares % fit to the curve y = a0 + a1*x + a2*exp(x) given an overdetermined % system. % % The constrained fit example locks the endpoints and sets the slope at % the first endpoint. % % Define local functions. For Matlab, move these...
github
seakers/orekit-master
stk_read_raw_coverage_data_per_grid_pt.m
.m
orekit-master/matlab/stk_read_raw_coverage_data_per_grid_pt.m
1,818
utf_8
1a220dbc762970bf2be720c6c248ecb8
%% stk_read_raw_coverage_data2.m %this function reads in the cvaa coverage access files prodced in stk. %The input to this function is the filename *.cvaa %The output is a cell of cells. One cell for each grid point and each cell %within contains the lat | lon | access start | access stop | access duration functi...
github
seakers/orekit-master
fullfactwalker.m
.m
orekit-master/matlab/fullfactwalker.m
2,411
utf_8
2aa415283ca416ef7cb9b037990b5b07
function constels = fullfactwalker(alts, incs, t) %this function will enumerate all possible walker constellations given a %discrete set of altitudes, inclinations, and total number of satellites. %By defining the total number of satellites, all possible values of planes %and phasing values will be created such that wa...
github
seakers/orekit-master
compareAccessGaps.m
.m
orekit-master/matlab/compareAccessGaps.m
6,139
utf_8
37219f13d4e855e757249a2aa28e20b5
function results = compareAccessGaps() %Compares global acccesses and gaps from STK vs orekit. %assumes file input is a csv with the first column containing start times %and the second column containing end times % path = 'C:\Users\SEAK1\Nozomi\OREKIT\Documentation\Comparing STK vs orekit\'; path = '/Users/nozomihito...
github
JacopoPan/probabilistic-resilience-master
main-0.3b.m
.m
probabilistic-resilience-master/code/main-0.3b.m
21,861
utf_8
192203a6af63d411ad57ddeeae4fd7a5
#! /usr/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave ################################################# ################################################# # PARAMETERS #################################### ################################################# #################...
github
JacopoPan/probabilistic-resilience-master
main-0.1b.m
.m
probabilistic-resilience-master/code/main-0.1b.m
21,149
utf_8
a6355e9631344b08f68dcaba6ea214db
#! /usr/bin/octave -qf # note: the interpreter path is /usr/bin/octave in ubuntu, /usr/local/bin/octave in mac osx #model specification ##{ #rain model ground_belief = [0.5, 0.5]; #P(rain, no rain) transition_set(1).transition_model = [0.8, 0.2; #P(rain, no rain|it was raining) 0.2, 0.8]; #P(rain, no rain|it wa...
github
JacopoPan/probabilistic-resilience-master
branched-main.m
.m
probabilistic-resilience-master/code/branched-main.m
15,236
utf_8
99e0b8143a5bc51169f7b5a0f7bda53f
#! /usr/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave ################################################# ################################################# # PARAMETERS #################################### ################################################# #################...
github
JacopoPan/probabilistic-resilience-master
approximated-resistance.m
.m
probabilistic-resilience-master/code/approximated-resistance.m
22,200
utf_8
aea38e46f6e3c1245b39a4c319c78e90
#! /usr/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave ################################################# ################################################# # PARAMETERS #################################### ################################################# #################...
github
JacopoPan/probabilistic-resilience-master
main-0.2b.m
.m
probabilistic-resilience-master/code/main-0.2b.m
20,481
utf_8
4a3224999eaadc567c5a0f718749e246
#! /usr/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave ################################################# ################################################# # PARAMETERS #################################### ################################################# #################...
github
JacopoPan/probabilistic-resilience-master
many-robots-6.m
.m
probabilistic-resilience-master/code-addendum/many-robots-6.m
7,584
utf_8
691610e43319280473b40875efbf1dd0
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...
github
JacopoPan/probabilistic-resilience-master
many-robots-3.m
.m
probabilistic-resilience-master/code-addendum/many-robots-3.m
7,554
utf_8
8aa04c93cb75ad798504236442b030b7
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...
github
JacopoPan/probabilistic-resilience-master
many-robots-5.m
.m
probabilistic-resilience-master/code-addendum/many-robots-5.m
7,574
utf_8
865f1aa5ecd11ffa31c14273b7c31e8c
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...
github
JacopoPan/probabilistic-resilience-master
stripped-main.m
.m
probabilistic-resilience-master/code-addendum/stripped-main.m
7,382
utf_8
31f7928a2bfabb0c33643ecbc12a195a
#! /usr/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function [g_b, t_m_a, s_m_a, u_v] = choose_model(s) g_b = [0.33, 0.34, 0.33]; #P(healthy, sick, very sick) t_m_a(1).val = [0.8, 0.15, 0.05; #P(healthy, sick, very sick | was healthy) 0.2, 0.7, 0.1; #P(healthy, s...
github
JacopoPan/probabilistic-resilience-master
robots-6.m
.m
probabilistic-resilience-master/code-addendum/robots-6.m
12,863
utf_8
49c7c3aba826c32e637d142ac59a0356
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...
github
JacopoPan/probabilistic-resilience-master
robots-4.m
.m
probabilistic-resilience-master/code-addendum/robots-4.m
12,817
utf_8
1b874146ca77c7079487dfbe12913592
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...
github
JacopoPan/probabilistic-resilience-master
robots-3.m
.m
probabilistic-resilience-master/code-addendum/robots-3.m
12,793
utf_8
acd7199123b6850c01259d0362b83ca8
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...
github
JacopoPan/probabilistic-resilience-master
robots-5.m
.m
probabilistic-resilience-master/code-addendum/robots-5.m
12,841
utf_8
bed83d9c6d752babb3ca009efe7ab39b
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...
github
JacopoPan/probabilistic-resilience-master
many-robots-3-cjpd.m
.m
probabilistic-resilience-master/code-addendum/many-robots-3-cjpd.m
9,599
utf_8
e6a94847e7b222d236e5b8870f74c63a
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...
github
JacopoPan/probabilistic-resilience-master
many-robots-4.m
.m
probabilistic-resilience-master/code-addendum/many-robots-4.m
7,564
utf_8
bdb48b735835c0549cdf60225875da92
#! /usr/local/bin/octave -qf #Ubuntu's interpreter /usr/bin/octave #OSX's interpreter /usr/local/bin/octave function s = vector2string(a) #convert vectors to strings s = ""; if rows(a) != 1 printf("ERROR: unacceptable string\n"); exit; elseif length(a) == 0 printf("WARNING: empty string\n"); else for ...