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
baowenbo/SelfExSR-master
nextFig.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
zconv2.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
mkZonePlate.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
steer2HarmMtx.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
mkAngularSine.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
mkRamp.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
histoMatch.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
subMtx.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
showLpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
sp1Filters.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
spyrHt.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
spyrBand.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
wpyrBand.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
skew2.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
imStats.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
innerProd.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
reconSFpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
corrDn.m
.m
SelfExSR-master/quant_eval/ifcvec_release/matlabPyrTools/corrDn.m
2,272
utf_8
cce615994bded51a721560b782ea9eef
% 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
baowenbo/SelfExSR-master
vectify.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
maxPyrHt.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
buildSpyrLevs.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
showSpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
histo.m
.m
SelfExSR-master/quant_eval/ifcvec_release/matlabPyrTools/histo.m
1,835
utf_8
e76d8956cd1d59f518a8146dc5145f9b
% [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
baowenbo/SelfExSR-master
lplot.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
blurDn.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
reconSpyrLevs.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
mkSine.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
buildSFpyrLevs.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
pixelAxes.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
pyrBandIndices.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
pointOp.m
.m
SelfExSR-master/quant_eval/ifcvec_release/matlabPyrTools/pointOp.m
1,207
utf_8
f3b4f566bebca0b7f56477785bb89fc5
% 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
baowenbo/SelfExSR-master
reconWpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
showWpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
imGradient.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
lpyrHt.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
buildGpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
shift.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
namedFilter.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
buildLpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
mkAngle.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
wpyrHt.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
sp0Filters.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
sp5Filters.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
steer.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
mkGaussian.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
factorial.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
entropy2.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
buildSFpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
spyrLev.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
pgmWrite.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
modulateFlip.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
mkFract.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
mkSquare.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
spyrNumBands.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
reconSpyr.m
.m
SelfExSR-master/quant_eval/ifcvec_release/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
baowenbo/SelfExSR-master
colorborder.m
.m
SelfExSR-master/source/colorborder.m
485
utf_8
ac962f01a2cc8f911bb79cb9e87893ef
% im = colorborder(im, bord, color) % % This function puts a border of width 'bord' around the image 'im' % using the color [r g b]. % % Example: % >> im = colorborder(im, 5, [1 0 0]); % puts a red border function im = colorborder(im, bord, color) im = padarray(im, [bord bord 0], 0); for chan=1:3, im(1:bord, ...
github
baowenbo/SelfExSR-master
sr_src_domain_tform.m
.m
SelfExSR-master/source/sr_src_domain_tform.m
4,187
utf_8
8a3173f30704896c721a5aa4e89901ff
function uvTformDataT = sr_src_domain_tform(uvPlaneID, modelPlane, uvTformAData, srcPos, trgPos) % SR_SRC_DOMAIN_TFORM % % The function estimates the source patch domain transformation based on % the source and target position, the plane parameters and apply the affine % transformation % % Input: % - uvPlaneID: ...
github
baowenbo/SelfExSR-master
sr_vis_nnf.m
.m
SelfExSR-master/source/sr_vis_nnf.m
4,157
utf_8
8fccf70fc47c207508cc90796188b3f5
function NNFVis = sr_vis_nnf(NNF, imgPyrH, opt) mask = NNF.uvPix.mask; [imgH, imgW] = size(mask); bdMask = edge(mask); bdMask = bdMask(:,:,ones(3,1)); mask = mask(:,:,ones(3,1)); %% uvTfomMapVis [NNFVis.uvTfomMapVis, NNFVis.uvPosMap] = vis_tform_map(NNF.uvTformH.map); %% scale map uvTformScale = sr_scale_tform(NN...
github
baowenbo/SelfExSR-master
sr_update_NNF.m
.m
SelfExSR-master/source/sr_update_NNF.m
16,480
utf_8
ee47bfe3025aa55d1a8d948d543ebd8a
% === Nearest neighbor field update === function [NNF, nUpdate]= sr_update_NNF(trgPatch, imgPyr, NNF, modelPlane, opt) % % SR_UPDATE_NNF: % % One iteration of random search and spatial propagation (generalized PatchMatch) % for nearest neighbor field estimation % % Input: % - trgPatch: target patches % - imgPyr: ...
github
baowenbo/SelfExSR-master
sr_init_lvl_nnf.m
.m
SelfExSR-master/source/sr_init_lvl_nnf.m
13,754
utf_8
a39bb8a6e9d400b4c63c4e8d7c0c01f8
function NNF = sr_init_lvl_nnf(imgSize, NNF, modelPlane, opt) % SR_INIT_LVL_NNF % % Initialize the nearest neighbor field for the current level % % Input: % - imgSize : [imgHeight, imgWeight] % - NNF : nearest neighbor field from previous level % - modelPlane: plane parameters % - opt : parameter...
github
baowenbo/SelfExSR-master
sr_patch_cost_plane.m
.m
SelfExSR-master/source/sr_patch_cost_plane.m
1,110
utf_8
3b1e7bbe4477025ab49c0f7c8a8e81ba
function costPlane = sr_patch_cost_plane(mLogLPlaneProb, uvPlaneIDData, trgPixInd, srcPixSub) % SR_PATCH_COST_PLANE % % Compute planar costs (See Eqn 11 in the paper) % % Jia-Bin Huang, Sing Bing Kang, Narendra Ahuja, Johannes Kopf % Image Completion using Planar Structure Guidance % ACM Transactions on Graphics (P...
github
baowenbo/SelfExSR-master
sr_extract_plane.m
.m
SelfExSR-master/source/sr_extract_plane.m
8,299
utf_8
088c0cd502a2fad4c91023ffac8673fc
function modelPlane = sr_extract_plane(imgPath, imgName, opt) % SR_EXTRACT_PLANE: % % Extract plane model from an image % % The code is adapted and modified from the paper % % Jia-Bin Huang, Sing Bing Kang, Narendra Ahuja, Johannes Kopf % Image Completion using Planar Structure Guidance % ACM Transactions on Graphics ...
github
baowenbo/SelfExSR-master
truncquad_edges.m
.m
SelfExSR-master/external/imrender/ojw/truncquad_edges.m
991
utf_8
65da09454d333dbc210133db7f83f622
%TRUNCQUAD_EDGES Compute truncated quadratic pairwise texture costs % % edge_costs = truncquad_edges(I, modes, EI, thresh) % % Computes the truncated quadratic cost of each combination of pairs of % modes in each edge, based on the minimum distance to a pair of pixels in % the corresponding library. % % IN: % I - ...
github
baowenbo/SelfExSR-master
truncquad_modes.m
.m
SelfExSR-master/external/imrender/ojw/truncquad_modes.m
1,257
utf_8
e5dd582ad3cf1cf775a845a5153564a6
%TRUNCQUAD_MODES Compute colour modes for a truncated quadratic kernel % % [modes depth energy inliers] = truncquad_modes(I, thresh[, use_variance[, search_width]]) % % Computes the colour modes for each set of input vectors, using the % truncated quadratic kernel. % % IN: % I - CxLxM array of L input colour vecto...
github
baowenbo/SelfExSR-master
P_interp.m
.m
SelfExSR-master/external/imrender/ojw/P_interp.m
1,710
utf_8
bfd871b477f56c3666071139a9e297b7
function P = P_interp(first, last, frames) %P_INTERP Linear interpolation between 2 projection matrices % % P = P_interp(first, last, frames) % % Creates a series off projection matrices interpolated from two projection % matrices. % %IN: % first - 3x4 The first projection matrix in the series, and the first % ...
github
baowenbo/SelfExSR-master
ojw_segpln.m
.m
SelfExSR-master/external/imrender/ojw/ojw_segpln.m
5,527
utf_8
c3047b7a99a599a6e3c81314c38bce02
function [D info] = ojw_segpln(images, P, disps, R, options) %OJW_SEGPLN Generate piecewise-planar disparity proposals for stereo % % [D info] = ojw_segpln(images, P, disps, R, options) % % Generates a set of disparity map proposals for the first input image. % %IN: % images - 1xN cell array of input images, exclu...
github
baowenbo/SelfExSR-master
ibr_fuse_depths.m
.m
SelfExSR-master/external/imrender/ojw/ibr_fuse_depths.m
14,886
utf_8
a41a47213ed61c2471f651077b3c1085
function [N info energy V] = ibr_fuse_depths(D1, D2, vals) %IBR_FUSE_DEPTHS Fuse two disparity images using QPBO % % [N info energy V] = ibr_fuse_depths(D0, D1, vals) % % Given two disparity maps and input data (image sequence, projection % matrices and configuration parameters) this function will fuse the two % map...
github
baowenbo/SelfExSR-master
find_interactions.m
.m
SelfExSR-master/external/imrender/ojw/find_interactions.m
833
utf_8
acd0aba5cc7cb9b51d8cabed1f3e7e4e
%FIND_INTERACTIONS Given ordered 3d points, find occlusions pairs % % P = find_interactions(V) % % Given a set of 3d image coordinates (pixel coordinates plus depth), % ordered such that the x coordinates are monotonically increasing, as are % the y coordinates within each block of identical x coordinates, finds any...
github
baowenbo/SelfExSR-master
ibr_gen_cliques.m
.m
SelfExSR-master/external/imrender/ojw/ibr_gen_cliques.m
824
utf_8
ab9f840b30d267c4fda0b683e0047578
%IBR_GEN_CLIQUES Generate graph cliques given visibilities % % [U P PI T TI] = ibr_gen_cliques(IA, VA, V, Kocc, method) % % Generates graph cliques for the algorithm described in Woodford etal.'s % BMVC 2007 paper: % "On New View Synthesis Using Multiview Stereo". % % IN: % IA - 1xN cell array of input images. %...
github
baowenbo/SelfExSR-master
sc.m
.m
SelfExSR-master/external/imrender/ojw/sc.m
32,017
utf_8
7b64797be6553b3b3250f486d0a6bdba
function I = sc(I, varargin) %SC Display/output truecolor images with a range of colormaps % % Examples: % sc(image) % sc(..., limits) % sc(..., colormap) % out = sc(...) % sc % % Generates a truecolor RGB image based on the input values in 'image' and % any maximum and minimum limits specified, using the co...
github
baowenbo/SelfExSR-master
vgg_progressbar.m
.m
SelfExSR-master/external/imrender/vgg/vgg_progressbar.m
4,145
utf_8
103bb66d5d244cbe9bfdc91e347c4acc
function retval = vgg_progressbar(tag, proportion, min_update_interval) %VGG_PROGRESSBAR Simple progress bar implementation % % retval = vgg_progressbar(tag, proportion[, min_update_interval]) % % Starts, updates and closes a progress bar according to the proportion of % time left. % % IN: % tag - String that appe...
github
baowenbo/SelfExSR-master
vgg_interp2.m
.m
SelfExSR-master/external/imrender/vgg/vgg_interp2.m
1,300
utf_8
516021873d8cd64400aca7ba1a55a569
%VGG_INTERP2 Fast 2d interpolation for images % % V = vgg_interp2(A, X, Y) % V = vgg_interp2(A, X, Y, interp_mode) % V = vgg_interp2(A, X, Y, interp_mode, oobv) % % 2d interpolation on a regular grid - similar to matlab's interp2() but % with much less overhead, and supports multiple channels and types. Note % that wh...
github
baowenbo/SelfExSR-master
vgg_trw_bp.m
.m
SelfExSR-master/external/imrender/vgg/vgg_trw_bp.m
2,464
utf_8
1bea0b224b9f2fd9e2925be397dd6234
%VGG_TRW_BP Multi-label MRF energy minimization using TRW-S & LBP % % [L energy lower_bound] = vgg_trw_bp(UE, PI, PE, [options]) % % Uses the message passing algorithms TRW-S or LBP to solve an MRF energy % minimization problem with binary or multiple labels. % % This function uses mexified C++ code written by Vladi...
github
baowenbo/SelfExSR-master
vgg_qpbo.m
.m
SelfExSR-master/external/imrender/vgg/vgg_qpbo.m
4,399
utf_8
45a43bafc096c77a8cbb48a634c81587
%VGG_QPBO Binary MRF energy minimization on non-submodular graphs % % [L stats] = vgg_qpbo(UE, PI, PE, [TI, TE], [options]) % % Uses the Quadratic Pseudo-Boolean Optimization (QPBO - an extension of % graph cuts that solves the "roof duality" problem, allowing graphs with % submodular edges to be solved) to solve bi...
github
baowenbo/SelfExSR-master
vgg_segment_ms.m
.m
SelfExSR-master/external/imrender/vgg/vgg_segment_ms.m
1,568
utf_8
b108bae8de81cc5b1e473ea45e88c0a3
%VGG_SEGMENT_MS Mean shift image segmentation % % S = vgg_segment_ms(A, h_s, h_r, min_sz[, W]) % % Segmentation of an image using mean shift. % % Uses EDISON code by Chris Christoudias and Bogdan Georgescu, downloaded % from http://www.caip.rutgers.edu/riul/research/code/EDISON/index.html, % and based on the follow...
github
baowenbo/SelfExSR-master
vgg_segment_gb.m
.m
SelfExSR-master/external/imrender/vgg/vgg_segment_gb.m
1,258
utf_8
3ca54b83301a213cd446a43d2fb6731d
%VGG_SEGMENT_GB Graph-based image segmentation % % S = vgg_segment_gb(A, sigma, K, min_sz[, compress]) % % Segmentation of an image using the graph-based method described in: % "Efficient Graph-Based Image Segmentation.", Pedro F. Felzenszwalb and % Daniel P. Huttenlocher. International Journal of Computer Visio...
github
nickabattista/Holy_Grail-master
lets_do_LBM.m
.m
Holy_Grail-master/Lets_Do_LBM/MATLAB/lets_do_LBM.m
26,115
utf_8
bf082389b158aaf7f2022bc629771332
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % 2D LATTICE BOLTZMANN (LBM) SIMULATION % Author: Nicholas A. Battista % Created: 11/4/2014 (MATLAB) % Created: 5/5/2017 (Python3) % Modified: September 13, 2019 (MATLAB, Python) % % D2Q9 Model: % c6 c2 c5 % \ | / % c3- ...
github
nickabattista/Holy_Grail-master
print_vtk_files.m
.m
Holy_Grail-master/Lets_Do_LBM/MATLAB/print_vtk_files.m
5,799
utf_8
3ed7d3493f48b2b1dcab61a0baeafdbd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % FUNCTION: gives appropriate string number for filename in printing the % .vtk files. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function print_vtk_files(ctsave,U,V,vorticity,Lx,Ly,nx,ny,Bound_Pts) ...
github
nickabattista/Holy_Grail-master
FFT_NS_Solver.m
.m
Holy_Grail-master/FFT_NS_Solver/MATLAB/FFT_NS_Solver.m
20,893
utf_8
e19ddacf84183f5a048d14021763df08
function FFT_NS_Solver() % % Solves the Navier-Stokes equations in the Vorticity-Stream Function % formulation using a pseudo-spectral approach w/ FFT % % Author: Nicholas A. Battista % Created: Novermber 29, 2014 % Modified: January 30, 2020 % % Equations of Motion: % D (Vorticity) /Dt = nu*Laplacian(Vorticity) % ...
github
nickabattista/Holy_Grail-master
print_vtk_files.m
.m
Holy_Grail-master/FFT_NS_Solver/MATLAB/print_vtk_files.m
5,448
utf_8
8fd4ecdbff9437b15da63a008d706737
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % FUNCTION: gives appropriate string number for filename in printing the % .vtk files. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function print_vtk_files(ctsave,U,V,vorticity,Lx,Ly,nx,ny) %Give spac...
github
nickabattista/Holy_Grail-master
give_Initial_Vorticity_From_Velocity_Field_VTK_File.m
.m
Holy_Grail-master/FFT_NS_Solver/MATLAB/Get_Initial_Vorticity_From_Stored_Vector_Field/give_Initial_Vorticity_From_Velocity_Field_VTK_File.m
4,250
utf_8
c9dc6b82dc50de09ee63d2f0823eb85c
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % FUNCTION: from a u.XXXX.vtk file, we will extract U,V (x-Velocity and % y-Velocity components), compute the background vorticity, and then return % it to initialize a simulation. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
github
nickabattista/Holy_Grail-master
panels_panels.m
.m
Holy_Grail-master/Panels/panels_panels.m
13,969
utf_8
dff36230f421505ace4c9d3812657be3
function panels_panels() % % Panel Method: Here used to solve the incompressible potential flow % equations in 2D. % % Author: Nicholas A. Battista % Created: January 6, 2015 % Modified: February 5, 2015 % % Assumptions for Incompressible Potential Flow % 1. Inviscid % ...
github
nickabattista/Holy_Grail-master
FitzHugh_Nagumo_1d.m
.m
Holy_Grail-master/FitzHugh_Nagumo/MATLAB/FitzHugh_Nagumo_1d.m
4,669
utf_8
de0d94ce6c64152f16eb8f96fa45075a
function FitzHugh_Nagumo_1d() % This script solves the FitzHugh-Nagumo Equations in 1d, which are % a simplified version of the more complicated Hodgkin-Huxley Equations. % % Author: Nick Battista % Created: 09/11/2015 % % Equations: % dv/dt = D*Laplacian(v) + v*(v-a)*(v-1) - w - I(t) % dw/dt = eps*(v-gamma*w) % % ...
github
nickabattista/Holy_Grail-master
Projection_Method.m
.m
Holy_Grail-master/Projection_Method/MATLAB/Projection_Method.m
17,400
utf_8
097d95c027f1880b17e140d78eaa741f
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Solves the Navier-Stokes equations in the Velocity-Pressure formulation % using a predictor-corrector projection method approach % % Author: Nicholas A. Battista % Created: Novermber 24, 2014 % Modified: September 11, 2019 % % Equations o...
github
nickabattista/Holy_Grail-master
print_vtk_files.m
.m
Holy_Grail-master/Projection_Method/MATLAB/print_vtk_files.m
4,817
utf_8
dad8de3df40125bb2fe01c7ed5379c66
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % FUNCTION: gives appropriate string number for filename in printing the % .vtk files. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function print_vtk_files(ctsave,U,V,P,vorticity,Lx,Ly,nx,ny) %Give sp...
github
abadams/ImageStack-master
saveTMP.m
.m
ImageStack-master/util/MATLAB/saveTMP.m
1,799
utf_8
f0dabae592b74de7abd0f9e9b2e6e904
% Write an up to 4-dimensional matrix 'a' to 'filename' in the TMP format. % % a should be in the MATLAB convention: [height width channels frames] % a will be permuted to the TMP file convention: % [width height frames channels] % % Format specification is here: % https://github.com/abadams/ImageStack/blob/master/sr...
github
abadams/ImageStack-master
loadTMP.m
.m
ImageStack-master/util/MATLAB/loadTMP.m
1,243
utf_8
3e5b2ea78976980f975cb059d85cd709
% Load an ImageStack TMP file, an up to 4-dimensional array of integer or % floating point data. % % output permutes the dimensions so that the output is: % [height width channels frames] % % Format specification is here: % https://github.com/abadams/ImageStack/blob/master/src/FileTMP.cpp function output = loadTMP(file...
github
abadams/ImageStack-master
testTMP.m
.m
ImageStack-master/util/MATLAB/testTMP.m
2,495
utf_8
a5d9ef7602253cea8b5df592070c53d6
% Test TMP file reading and writing by saving to the given filename, % reading it back, and checking for equality. function ok = testTMP(temp_filename) % Some decent size that's not too big. % Pick odd sizes on purpose. height = 767; width = 1021; channels = 3; frames = 7; sz = [height, width, channels, frames]; fpr...
github
eglerean/hfASDmodules-master
fixOriginator.m
.m
hfASDmodules-master/compare_modules/fixOriginator.m
943
utf_8
b96478b0f294732990d7a845d1245083
% make sure we are using the NIFTI toolbox %addpath('/proj/braindata2/neurocinematics/toolboxes/NIFTI/') %refimg='/proj/braindata2/neurocinematics/HarvardOxford/MNI152_T1_2mm_brain.nii'; function nii=fixOriginator(targetimg) refimg='/Users/enrico/Documents/MATLAB/piazzolla/HarvardOxford/MNI152_T1_2mm_brain.nii';...
github
eglerean/hfASDmodules-master
bramila_ttest2_np.m
.m
hfASDmodules-master/ABIDE/bramila_ttest2_np.m
4,125
utf_8
c7ea8a14f0f58d19337256c2c9ff240c
function stats = bramila_ttest2_np(data,design,niter) % BRAMILA_TTEST2_NP - A "non parametric" two-sample T-test that, instead of % relying on the t-distribtion, uses permutations of group labels to % estimate the null distribution. The null distribution is computed % independently for each data point (= row), i.e. we ...
github
WagnerLab/ECoG_PPC_RecogMemory-master
compAnalyticSignal.m
.m
ECoG_PPC_RecogMemory-master/PreProcessing/compAnalyticSignal.m
429
utf_8
2316b0668e4a62414590ada8dc5d3fe9
function [amp ph] = compAnalyticSignal(data, lowpass, hipass, SR) % bandpass filter and calculate the analytic signal % data is a signal vector % amp is the amplitude of the analytic signal % ph is the phase of the analytic signal % dependencies channelFilt.m data = channelFilt(data,SR,lowpass,hipass); % calculate t...
github
WagnerLab/ECoG_PPC_RecogMemory-master
CalculateBadTrials.m
.m
ECoG_PPC_RecogMemory-master/PreProcessing/CalculateBadTrials.m
941
utf_8
8d89b146d465b97f164f546f65f63bda
function [badtrials trial_var goodtrials] = CalculateBadTrials(X, thr) % Function takes input data matrix X (#chans, # trials, # samples) % It collapses across channels and calculates the variability within a % trial. If the within trial variance is greater than thr * (across channels ... % variance). Then reject th...
github
WagnerLab/ECoG_PPC_RecogMemory-master
modIndex.m
.m
ECoG_PPC_RecogMemory-master/Analysis/modIndex.m
523
utf_8
79574d43b2fc2dd3291fe3d16595b6b1
function [out,phaseBins] = modIndex(phase, amp, phaseBins) % function calculates modulation index as described in % Tort et al. J. Neurophysiology 2010 % takes in an amplitude signal, a phase signal, and the edges for the phase % bins % returns the mi as a function of bin % assumes both and phase inputs are vectors. %...
github
WagnerLab/ECoG_PPC_RecogMemory-master
getAvgSpectrogram.m
.m
ECoG_PPC_RecogMemory-master/Analysis/getAvgSpectrogram.m
5,641
utf_8
00b19ad17e78b1f8bed280e01e084940
function data = getAvgSpectrogram(data) % function that epochs the continuous spectrograms % and aggregates information behavioral information % plus simple univariate statistics % add behavioral data behavdatapath = ['~/Documents/ECOG/Results/BehavData/Subj' data.subjnum]; load([behavdatapath 'behav_perf.mat']); data...
github
WagnerLab/ECoG_PPC_RecogMemory-master
groupLPCData.m
.m
ECoG_PPC_RecogMemory-master/Analysis/groupLPCData.m
8,173
utf_8
5d55ca7fd44968945ed0e1b288ee926f
function data = groupLPCData(opts) % groups LPC channel data by subject. % takes outputs from calcERP or calcERSP % % dependencies: % getBinSamps % signtest2 % ranksum2 % data parameters subjects = opts.subjects; reference = opts.reference; nRefChans = opts.nRefChans; lockType = opts.lockTy...
github
WagnerLab/ECoG_PPC_RecogMemory-master
findSubClusters.m
.m
ECoG_PPC_RecogMemory-master/Analysis/findSubClusters.m
1,822
utf_8
ca907a2bf61db1c22481ca4dbe20f6ce
function [out f] = findSubClusters(data,out, opts) % for now this is hardocded to work for k=2, and finding 3 subclusters, % separating by cluster width and using that width to measure distance from % the decision boundary, % sig1 = std(out.nDC(out.index==1,1)); % sig2 = std(out.nDC(out.index==2,2)); % out.SubClthr ...
github
WagnerLab/ECoG_PPC_RecogMemory-master
printStats.m
.m
ECoG_PPC_RecogMemory-master/Analysis/printStats.m
2,940
utf_8
172cb8d2dd912b21d8e857a3d5336601
function printStats(data,opts,type,center) % main statistics from time courses ROIs = {'IPS','SPL','AG'}; type = 'BinZStat'; center = 0; % time bins of interest BOT = find((data.Bins(:,1) >= opts.time(1)) & (data.Bins(:,2) <= opts.time(2))); alpha = 0.05; % number of tests mMain =...
github
WagnerLab/ECoG_PPC_RecogMemory-master
matchChannelPatterns.m
.m
ECoG_PPC_RecogMemory-master/Analysis/matchChannelPatterns.m
8,274
utf_8
e6d32d4958dfa78ce7b79b1e4dd20ede
function out = matchChannelPatterns(data,S,opts) % this function takes pairs of channels in IPS and SPL that had significant % decoding accuracy and tries to match patterns obtaining a lag coefficient % between each pair % it was designed to work with IPS and SPL electrodes and high gamma power, % it hasn't been gene...
github
WagnerLab/ECoG_PPC_RecogMemory-master
groupLPC_SpectrogramData.m
.m
ECoG_PPC_RecogMemory-master/Analysis/groupLPC_SpectrogramData.m
9,782
utf_8
1347b456b6082bddab2071e4b0dbce38
function data = groupLPCData2(opts) % groups LPC channel data by subject. % takes outputs from spectrogramWrapper.m % % dependencies: % getBinSamps % signtest2 % ranksum2 % data parameters subjects = opts.subjects; lockType = opts.lockType; type = opts.type; % trial computation parame...
github
WagnerLab/ECoG_PPC_RecogMemory-master
itc.m
.m
ECoG_PPC_RecogMemory-master/Analysis/itc.m
281
utf_8
92d527eda4d01f08a2af299d1244a890
function [coh ph] = itc(X) % out = itc(X) % itc calculates the intertrial coherence. % X = phase matrix (in radians); dim1 = ntrials, dim2 = timepoints % out = vector of length numel(dim2), of ITC values. vect = mean(exp(1i*X)); coh = abs(vect); ph = angle(vect);