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 | ashriram/FUSION-master | mkRamp.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | histoMatch.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | subMtx.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | showLpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | sp1Filters.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | spyrHt.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | spyrBand.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | wpyrBand.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | skew2.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | script_run_profile.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/script_run_profile.m | 4,257 | utf_8 | 66065792bb70f1c61d94287e72350820 | % Example 2: Seamless blending of real and synthetic texture in an
% image, using Portilla-Simoncelli texture analysis/synthesis code,
% based on alternate projections onto statistical constraints in a
% complex overcomplete wavelet representation.
%
% See Readme.txt, and headers of textureAnalysis.m and
% textureSynt... |
github | ashriram/FUSION-master | imStats.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/imStats.m | 1,105 | utf_8 | 5f314ac4e7e631493cf61d81afedcf57 | % imStats(IM1,IM2)
%
% Report image (matrix) statistics.
% When called on a single image IM1, report min, max, mean, stdev,
% and kurtosis.
% When called on two images (IM1 and IM2), report min, max, mean,
% stdev of the difference, and also SNR (relative to IM1).
% Eero Simoncelli, 6/96.
function [] = imStats(im1,... |
github | ashriram/FUSION-master | innerProd.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/innerProd.m | 398 | utf_8 | a3c72acedce5bd6a24b236e02d6d420d | % RES = innerProd(MTX)
%
% Compute (MTX' * MTX) efficiently (i.e., without copying the matrix)
function res = innerProd(mtx)
%fprintf(1,['WARNING: You should compile the MEX version of' ...
% ' "innerProd.c",\n found in the MEX subdirectory' ...
% ' of matlabPyrTools, and put it in your matlab path.' ..... |
github | ashriram/FUSION-master | ifftshift.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/ifftshift.m | 407 | utf_8 | 6e3029482e7aec224575b58a328362ae | % [RES] = ifftshift (MTX)
%
% Inverse of MatLab's FFTSHIFT. That is,
% ifftshift(fftshift(MTX)) = MTX
% for any size MTX.
% Eero Simoncelli, 2/97.
function [res] = ifftshift(mtx)
sz = size(mtx);
DC = ceil((sz+1)./2); % location of DC term in a matlab fft.
res = [mtx(DC(1):sz(1), DC(2):sz(2)) , mtx(DC(1):s... |
github | ashriram/FUSION-master | reconSFpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | corrDn.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/corrDn.m | 2,242 | utf_8 | 0f0cbb43a9ac6ce98e7eccc9cdec6c13 | % 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 | ashriram/FUSION-master | vectify.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | maxPyrHt.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | buildSpyrLevs.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | showSpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | histo.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | lplot.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/lplot.m | 1,008 | utf_8 | 9d94edef9a9e27184c3de6cbf53783e8 | % 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 | ashriram/FUSION-master | blurDn.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | reconSpyrLevs.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/reconSpyrLevs.m | 1,120 | utf_8 | d25d7d12aaf6af3c7d5f7ae684115f5e | % 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 | ashriram/FUSION-master | mkSine.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | buildSFpyrLevs.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/buildSFpyrLevs.m | 1,896 | utf_8 | adcf46852bfa0355b7ab9119546d872e | % [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 | ashriram/FUSION-master | pixelAxes.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | pyrBandIndices.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | adjustCorr2s.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/adjustCorr2s.m | 2,442 | utf_8 | 0e313ae95e035b52e536de603731fc1f | % [newX, snr1, snr2, Mx, My] = adjustCorr2s(X, Cx, Y, Cxy, MODE, p)
%
% Linearly adjust variables in X to have correlation Cx, and cross-correlation Cxy.
% Rows of X, Y, and newX are samples of (random) row-vectors, such that:
% 1: newX = X * Mx + Y * My
% 2: newX' * newX = Cx
% 3: newX' * Y = Cxy
%
% MODE is... |
github | ashriram/FUSION-master | pointOp.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | reconWpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | showWpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | imGradient.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/imGradient.m | 1,296 | utf_8 | ae25d274469294dfaf7363a08450d84c | % [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 | ashriram/FUSION-master | lpyrHt.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | buildGpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | shift.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | namedFilter.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | buildLpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | mkAngle.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | wpyrHt.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | sp0Filters.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | sp5Filters.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | steer.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | mkGaussian.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/mkGaussian.m | 1,480 | utf_8 | 3051c9b0d389e3748cc20df3b14bc6c5 | % 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 | ashriram/FUSION-master | factorial.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | entropy2.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/entropy2.m | 676 | utf_8 | 77d9e5ba92c141d994ac16f74ca88403 | % 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 when you
% don't have much data.
% Eero Si... |
github | ashriram/FUSION-master | buildSFpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | adjustCorr1s.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/adjustCorr1s.m | 1,366 | utf_8 | 647a84b4e7fb12e97562fbe1d1f26e22 | % [newX, snr1, M] = adjustCorr1s(X, Cx, MODE, p)
%
% Linearly adjust variables in X to have correlation Cx.
% Rows of X and newX are samples of a (random) row-vector, such that:
% 1: newX = X * M
% 2: newX' * newX = Cx
%
% MODE is optional:
% 0 => choose randomly from the space of linear solutions
% 1... |
github | ashriram/FUSION-master | spyrLev.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | pgmWrite.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | mod.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/mod.m | 259 | utf_8 | 5a6b28ab4245b4caf5694acaaf4663e0 | % M = mod(A,B)
%
% Modulus operator: returns A mod B.
% Works on matrics, vectors or scalars.
%
% NOTE: This function is a Matlab-5 builtin, but was missing from Matlab-4.
% Eero Simoncelli, 7/96.
function m = mod(a,n)
m = a - n .* floor(a./n);
return;
|
github | ashriram/FUSION-master | modulateFlip.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | mkFract.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | mkSquare.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | spyrNumBands.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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 | ashriram/FUSION-master | reconSpyr.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/reconSpyr.m | 2,665 | utf_8 | f38d66778db8b29e06160f5608fe1443 | % 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 | ashriram/FUSION-master | weightedSample.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/localization/src/matlab/weightedSample.m | 433 | utf_8 | c67b738af42d7f8b415ec74b0165d565 | %function x_gen_id=weightedSample(w)
function bin=weightedSample(w)
n=size(w,1);
seed=randWrapper(n,1);
bin = zeros(n,1);
%x_gen_id=zeros(n,1);
for i=1:n
for j=1:n
if(seed(j,1) > 0)
bin(j,1) = bin(j,1) + 1;
% x_gen_id(j,1) = x_gen_id(j,1) + bin(j,1);
end
end
% b... |
github | ashriram/FUSION-master | rgb2gray_f2_f3.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/tracking/src/matlab/rgb2gray_f2_f3.m | 398 | utf_8 | 2b29eacb72e18c8745ea372c6f577a62 | %! _rgb2gray_f2_f3
function grayImage = rgb2gray_f2_f3(colorImage)
%0.2989 * R + 0.5870 * G + 0.1140 * B
rows = size(colorImage, 1);
cols = size(colorImage, 2);
rgb = size(colorImage, 3);
grayImage = zeros(rows, cols);
for i = 1:rows
for j = 1:cols
grayImage(i,j) = 0.2989 * colorImage(i,j,1) ... |
github | ashriram/FUSION-master | calcGoodFeature.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/tracking/src/matlab/calcGoodFeature.m | 802 | utf_8 | 725603f7b7ef5663256bf95f18e5513c | %calcGoodFeature:
function [lambda, tr, det,c_xx, c_xy, c_yy] = calcGoodFeature(dX, dY, sizeX, sizeY, winSize, dataDir)
for i=1:sizeY
for j=1:sizeX
xx(i,j)=dX(i,j)*dX(i,j);
xy(i,j)=dX(i,j)*dY(i,j);
yy(i,j)=dY(i,j)*dY(i,j);
end
end
c_xx=calcAreaSum(... |
github | ashriram/FUSION-master | calcAreaSum.m | .m | FUSION-master/Workloads/sd-vbs/benchmarks/tracking/src/matlab/calcAreaSum.m | 777 | utf_8 | 004244e40f36821a0de82017a888278e | %calcAreaSum:
% sizeX = cols
% sizeY = rows
function ret = calcAreaSum(src, sizeX, sizeY, winSize, dataDir)
src = double(src);
nave = winSize;
nave_half = floor((nave+1)/2);
a1=zeros(1,sizeX+nave);
for i=1:sizeY
%pull out one row
for j=1:sizeX
a1(j+nave_half)=src(i,j);
end
a1sum=0;
%sum u... |
github | ItsLastDay/StackOverflow_Map-master | fast_tsne.m | .m | StackOverflow_Map-master/src/models/use_bhtsne/nearest_neighbour_bhtsne/fast_tsne.m | 5,147 | utf_8 | 233f08479acd47703477cf55e10d97b7 | function mappedX = fast_tsne(X, no_dims, initial_dims, perplexity, theta, alg, max_iter)
%FAST_TSNE Runs the C++ implementation of Barnes-Hut t-SNE
%
% mappedX = fast_tsne(X, no_dims, initial_dims, perplexity, theta, alg)
%
% Runs the C++ implementation of Barnes-Hut-SNE. The high-dimensional
% datapoints are ... |
github | mccahill/docker-novnc-fmri-master | spm_uitab.m | .m | docker-novnc-fmri-master/mri/spm12/spm_uitab.m | 7,829 | utf_8 | 30a1e990bdf452511a9ea0c302448f5f | function [handles] = spm_uitab(hparent,labels,callbacks,tag,active,height,tab_height)
% Create tabs in a figure
% FORMAT [handles] = spm_uitab(hparent,labels,callbacks,tag,active,height,tab_height)
% This function creates tabs in the SPM graphics window.
% These tabs may be associated with different sets of axes and ui... |
github | mccahill/docker-novnc-fmri-master | spm_vb_ppm_anova.m | .m | docker-novnc-fmri-master/mri/spm12/spm_vb_ppm_anova.m | 4,101 | utf_8 | e56af27160b9921b51bf3c0430494e66 | function spm_vb_ppm_anova(SPM)
% Bayesian ANOVA using model comparison
% FORMAT spm_vb_ppm_anova(SPM)
%
% SPM - Data structure corresponding to a full model (ie. one
% containing all experimental conditions).
%
% This function creates images of differences in log evidence
% which characterise t... |
github | mccahill/docker-novnc-fmri-master | spm_deface.m | .m | docker-novnc-fmri-master/mri/spm12/spm_deface.m | 1,488 | utf_8 | e6a5297ea74cd1848fb4c9edd598ea4b | function names = spm_deface(job)
% Face strip images
% FORMAT names = spm_deface(job)
% job.images - cell array of NIfTI file names
%
% names - cell array of de-faced images
%
% This is a little routine for attempting to strip the face from images,
% so individuals are more difficult to identify from surface r... |
github | mccahill/docker-novnc-fmri-master | spm_data_hdr_read.m | .m | docker-novnc-fmri-master/mri/spm12/spm_data_hdr_read.m | 2,078 | utf_8 | 02194b99b031f364a60e3ba9878783a5 | function V = spm_data_hdr_read(P)
% Get data information from file
% FORMAT V = spm_data_hdr_read(P)
% P - a char or cell array of filenames
%
% V - a structure array containing data information
%__________________________________________________________________________
% Copyright (C) 2012 Wellcome Trust... |
github | mccahill/docker-novnc-fmri-master | spm_maff8.m | .m | docker-novnc-fmri-master/mri/spm12/spm_maff8.m | 11,016 | utf_8 | ffc0822907c5310910501a508de8c3c5 | function [M,ll,h] = spm_maff8(varargin)
% Affine registration to MNI space using mutual information
% FORMAT [M,ll,h] = spm_maff8(P,samp,fwhm,tpm,M0,regtyp)
% P - filename or structure handle of image
% samp - distance between sample points (mm). Small values are
% better, but things run more slowly... |
github | mccahill/docker-novnc-fmri-master | spm_dcm_post_hoc.m | .m | docker-novnc-fmri-master/mri/spm12/spm_dcm_post_hoc.m | 28,276 | utf_8 | 09ae00cf575ec38a8de6c00ccbe77b46 | function DCM = spm_dcm_post_hoc(P,fun,field,write_all)
% Post hoc optimisation of DCMs (under the Laplace approximation)
% FORMAT DCM = spm_dcm_post_hoc(P,fun,field,write_all)
%
% P - character/cell array of DCM filenames
% - or cell array of DCM structures; where
% DCM.M.pE - prior expectation (with... |
github | mccahill/docker-novnc-fmri-master | spm_input.m | .m | docker-novnc-fmri-master/mri/spm12/spm_input.m | 89,642 | utf_8 | 580f7646408401a2492c9679e7f5803a | function varargout = spm_input(varargin)
% Comprehensive graphical and command line input function
% FORMATs (given in Programmers Help)
%_______________________________________________________________________
%
% spm_input handles most forms of interactive user input for SPM.
% (File selection is handled by spm_select... |
github | mccahill/docker-novnc-fmri-master | spm_realign.m | .m | docker-novnc-fmri-master/mri/spm12/spm_realign.m | 19,349 | utf_8 | e420135e5176c930761f20a6c00cb63c | function P = spm_realign(P,flags)
% Estimation of within modality rigid body movement parameters
% FORMAT P = spm_realign(P,flags)
%
% P - char array of filenames
% All operations are performed relative to the first image.
% ie. Coregistration is to the first image, and resampling
% of image... |
github | mccahill/docker-novnc-fmri-master | spm_surf.m | .m | docker-novnc-fmri-master/mri/spm12/spm_surf.m | 10,314 | utf_8 | 2037e2307db72ca22da7b5c07bbab96a | function varargout = spm_surf(P,mode,thresh)
% Surface extraction
% FORMAT spm_surf(P,mode,thresh)
%
% P - char array of filenames
% Usually, this will be c1xxx.<ext> & c2xxx.<ext> - grey and white
% matter segments created using the segmentation routine.
% mode - operation mode [1: rendering, ... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_plotScalpData.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_plotScalpData.m | 12,100 | utf_8 | 0d7b4e802a4269f6b6a084ea3cb56698 | function [ZI,f] = spm_eeg_plotScalpData(Z,pos,ChanLabel,in)
% Display M/EEG interpolated sensor data on a scalp image
% FORMAT [ZI,f] = spm_eeg_plotScalpData(Z,pos,ChanLabel,in)
%
% INPUT:
% Z - the data matrix at the sensors
% pos - the positions of the sensors
% ChanLabel - the names of the sen... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_render.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_render.m | 10,878 | utf_8 | 28f085cfc4ac109800369d5db31d26a8 | function [out] = spm_eeg_render(m,options)
% Visualisation routine for the cortical surface
% FORMAT [out] = spm_eeg_render(m,options)
%
% INPUT:
% - m = MATLAB mesh (containing the fields .faces et .vertices) or GIFTI
% format file.
% - options = structure variable:
% .texture = texture to be projected onto the... |
github | mccahill/docker-novnc-fmri-master | spm_DesMtx.m | .m | docker-novnc-fmri-master/mri/spm12/spm_DesMtx.m | 27,573 | utf_8 | 8ea19c1c619f618e6b3c94f6408db826 | function [X,Pnames,Index,idx,jdx,kdx]=spm_DesMtx(varargin)
% Design matrix construction from factor level and covariate vectors
% FORMAT [X,Pnames] = spm_DesMtx(<FCLevels-Constraint-FCnames> list)
% FORMAT [X,Pnames,Index,idx,jdx,kdx] = spm_DesMtx(FCLevels,Constraint,FCnames)
%
% <FCLevels-Constraints-FCnames>
% ... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_review_callbacks.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_review_callbacks.m | 79,830 | utf_8 | 1cbfba12071181ef769ea804d354439c | function [varargout] = spm_eeg_review_callbacks(varargin)
% Callbacks of the M/EEG Review facility
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% Jean Daunizeau
% $Id: spm_eeg_review_callbacks.m 6437 2015-05-14 12:27:21Z vladimi... |
github | mccahill/docker-novnc-fmri-master | spm_help.m | .m | docker-novnc-fmri-master/mri/spm12/spm_help.m | 8,186 | utf_8 | cd6b7f3eb0be3eb458a30935330fc411 | function varargout = spm_help(varargin)
% SPM help and manual facilities
% FORMAT spm_help
%
% The "Help" facilities are about software and implementation. The
% underlying mathematics, concepts and operational equations have been (or
% will be) published in the peer reviewed literature and the interested
% user is ref... |
github | mccahill/docker-novnc-fmri-master | spm_preproc8.m | .m | docker-novnc-fmri-master/mri/spm12/spm_preproc8.m | 39,493 | utf_8 | 49bd7957a6bcf30ccf028c12699b30a6 | function results = spm_preproc8(obj)
% Combined Segmentation and Spatial Normalisation
%
% FORMAT results = spm_preproc8(obj)
%
% obj is a structure, and must have the following fields...
% image - a structure (array) of handles of individual scans,
% of the sort returned by spm_vol. Data can be
% ... |
github | mccahill/docker-novnc-fmri-master | spm_print.m | .m | docker-novnc-fmri-master/mri/spm12/spm_print.m | 4,766 | utf_8 | f98083ef6f2f33f53de776a3e4618eae | function varargout = spm_print(varargin)
% Print figure
% FORMAT spm_print(fname,F,opts)
% fname - output filename [Default: 'spm_<date>']
% F - figure handle or tag [Default: 'Graphics']
% opts - structure containing printing options
% [Default: defaults.ui.print from spm_defaults.m]
%
% FORMAT spm_p... |
github | mccahill/docker-novnc-fmri-master | spm_find_pC.m | .m | docker-novnc-fmri-master/mri/spm12/spm_find_pC.m | 2,305 | utf_8 | 78ff0de48373566879927603e1e64973 | function [i,pC,pE,Np] = spm_find_pC(pC,pE,fields)
% Utility routine that finds the indices of non-zero covariance
% FORMAT [i,pC,pE,Np] = spm_find_pC(pC,pE,fields)
% FORMAT [i,pC,pE,Np] = spm_find_pC(DCM)
%
% pC - covariance matrix or variance stucture
% pE - parameter structure
% fields - desired fields of pE... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_locate_channels.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_locate_channels.m | 1,965 | utf_8 | 62a784c25fa57744f6997a97db5f26df | function [Cel, x, y] = spm_eeg_locate_channels(D, n, Cind)
% Locate channels and generate mask for converting M/EEG data into images
% FORMAT [Cel, x, y] = spm_eeg_locate_channels(D, n, channels)
%
% D - M/EEG object
% n - number of voxels in each direction
% Cind - the indices of... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_filter.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_filter.m | 7,352 | utf_8 | 7382810447417541b9abf799fb738e69 | function D = spm_eeg_filter(S)
% Filter M/EEG data
% FORMAT D = spm_eeg_filter(S)
%
% S - input structure
% Fields of S:
% S.D - MEEG object or filename of M/EEG mat-file
%
% S.band - filterband [low|high|bandpass|stop]
% S.freq - cutoff frequency(-ies) [Hz]
%
% Optional fields:
% S.type... |
github | mccahill/docker-novnc-fmri-master | savexml.m | .m | docker-novnc-fmri-master/mri/spm12/savexml.m | 5,240 | utf_8 | 575501e05a68903f8f5a2db4cb6a18e9 | function savexml(filename, varargin)
%SAVEXML Save workspace variables to disk in XML.
% SAVEXML FILENAME saves all workspace variables to the XML-file
% named FILENAME.xml. The data may be retrieved with LOADXML. if
% FILENAME has no extension, .xml is assumed.
%
% SAVE, by itself, creates the XML-file named 'ma... |
github | mccahill/docker-novnc-fmri-master | spm_bilinear.m | .m | docker-novnc-fmri-master/mri/spm12/spm_bilinear.m | 3,781 | utf_8 | c51a7e5761360eccba4606a098bf3e77 | function [H0,H1,H2] = spm_bilinear(A,B,C,D,x0,N,dt)
% Return global Volterra kernels for a MIMO Bilinear system
% FORMAT [H0,H1,H2] = spm_bilinear(A,B,C,D,x0,N,dt)
% A - (n x n) df(x(0),0)/dx - n states
% B - (n x n x m) d2f(x(0),0)/dxdu - m inputs
% C - (n x m) df... |
github | mccahill/docker-novnc-fmri-master | spm_powell.m | .m | docker-novnc-fmri-master/mri/spm12/spm_powell.m | 9,055 | utf_8 | a169a48b38b7e0538b727fbf254c844a | function [p,f] = spm_powell(p,xi,tolsc,func,varargin)
% Powell optimisation method
% FORMAT [p,f] = spm_powell(p,xi,tolsc,func,varargin)
% p - Starting parameter values
% xi - columns containing directions in which to begin searching
% tolsc - stopping criteria, optimisation stops when
% ... |
github | mccahill/docker-novnc-fmri-master | spm_vol.m | .m | docker-novnc-fmri-master/mri/spm12/spm_vol.m | 4,361 | utf_8 | f7faad9fbe02f5296d4316cce5bcac66 | function V = spm_vol(P)
% Get header information for images
% FORMAT V = spm_vol(P)
% P - a char or cell array of filenames
% V - a structure array containing image volume information
% The elements of the structures are:
% V.fname - the filename of the image.
% V.dim - the x, y and z dimensions of th... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_epochs.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_epochs.m | 7,734 | utf_8 | 3f7d6274bd3e0725b400d8be7c5890eb | function D = spm_eeg_epochs(S)
% Epoching continuous M/EEG data
% FORMAT D = spm_eeg_epochs(S)
%
% S - input structure
% fields of S:
% S.D - MEEG object or filename of M/EEG mat-file with
% continuous data
% S.bc - baseline-correct the data [1... |
github | mccahill/docker-novnc-fmri-master | spm_jobman.m | .m | docker-novnc-fmri-master/mri/spm12/spm_jobman.m | 21,418 | utf_8 | eb24ba9bc8f614a321a5a62219e68ecc | function varargout = spm_jobman(varargin)
% Main interface for SPM Batch System
% This function provides a compatibility layer between SPM and matlabbatch.
%
% FORMAT spm_jobman('initcfg')
% Initialise jobs configuration and set MATLAB path accordingly.
%
% FORMAT spm_jobman('run',job[,input1,...inputN])
% FORMAT outpu... |
github | mccahill/docker-novnc-fmri-master | spm_bms_partition.m | .m | docker-novnc-fmri-master/mri/spm12/spm_bms_partition.m | 4,696 | utf_8 | a691798a6ef573824e9168d2d82dcd74 | function spm_bms_partition(BMS)
% Compute model partitioning for BMS
% FORMAT spm_bms_partition(BMS)
%
% Input:
% BMS structure (BMS.mat)
%
% Output:
% PPM (images) for each of the subsets defined
% xppm_subsetn.img (RFX) and ppm_subsetn.img (FFX)
%_______________________________________________________________________... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_inv_vbecd_disp.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_inv_vbecd_disp.m | 23,046 | UNKNOWN | 1e8fd9cd12e9149f19310349ca92d467 | function spm_eeg_inv_vbecd_disp(action,varargin)
% Display the dipoles as obtained from VB-ECD
%
% FORMAT spm_eeg_inv_vbecd_disp('Init',D)
% Display the latest VB-ECD solution saved in the .inv{} field of the
% data structure D.
%
% FORMAT spm_eeg_inv_vbecd_disp('Init',D, ind)
% Display the ind^th .inv{} cell element, ... |
github | mccahill/docker-novnc-fmri-master | spm_bms_anova.m | .m | docker-novnc-fmri-master/mri/spm12/spm_bms_anova.m | 2,173 | utf_8 | 6abdc5ba4d1849f054d7145c577e7d5c | function [logBF,F] = spm_bms_anova (y,group,prior)
% Log Bayes factor against null for one-way ANOVA
% FORMAT [logBF,F] = spm_bms_anova (y,group,prior)
%
% y [n x 1] data vector
% group [n x 1] vector with elements 1,2,3 etc. indicating group
% membership
% prior 'jzs' (default) or 'unit'
%
% ... |
github | mccahill/docker-novnc-fmri-master | spm_mvb_cvk2.m | .m | docker-novnc-fmri-master/mri/spm12/spm_mvb_cvk2.m | 5,125 | utf_8 | 55c8b186cdf3809938e197dd7a2a9633 | function [p,pc,R2] = spm_mvb_cvk2(MVB,k)
% k-fold cross validation of a multivariate Bayesian model
% FORMAT [p_value,percent,R2] = spm_mvb_cvk(MVB,k)
%
% MVB - Multivariate Bayes structure
% k - k-fold cross-validation ('0' implies a leave-one-out scheme)
%
% p - p-value: under a null GLM
% percent: proportion cor... |
github | mccahill/docker-novnc-fmri-master | spm_mnc2nifti.m | .m | docker-novnc-fmri-master/mri/spm12/spm_mnc2nifti.m | 8,269 | utf_8 | ed182ec23ec75302bc5ee64a71108d93 | function [N,cdf] = spm_mnc2nifti(fname,opts)
% Import MINC images into NIfTI
% FORMAT spm_mnc2nifti(fname)
% fname - a MINC filename
% opts - options structure
%
% N - NIfTI object (written in current directory)
% cdf - NetCDF data structure
%
% The MINC file format was developed by Peter Neelin at the Montreal... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_displayECD.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_displayECD.m | 8,246 | utf_8 | 7e2d2badb7cd2c2475dc60dc0e871315 | function [out] = spm_eeg_displayECD(Pos,Orient,Var,Names,options)
% Plot dipole positions onto the SPM canonical mesh
% FORMAT [out] = spm_eeg_displayECD(Pos,Orient,Var,Names,options)
%
% IN (admissible choices):
% - Pos: a 3xndip matrix containing the positions of the dipoles in
% the canonical frame of reference
... |
github | mccahill/docker-novnc-fmri-master | spm_uw_apply.m | .m | docker-novnc-fmri-master/mri/spm12/spm_uw_apply.m | 15,105 | utf_8 | b450501ec60fe5bccd0ddcbc40d480ea | function varargout = spm_uw_apply(ds,flags)
% Reslices images volume by volume
% FORMAT spm_uw_apply(ds,[flags])
% or
% FORMAT P = spm_uw_apply(ds,[flags])
%
%
% ds - a structure created by spm_uw_estimate.m containing the fields:
% ds can also be an array of structures, each struct corresponding
% ... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_prep_ui.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_prep_ui.m | 43,249 | utf_8 | 8badfd2b49f4574f11cb12c75eaabddb | function spm_eeg_prep_ui(callback)
% User interface for spm_eeg_prep function performing several tasks
% for preparation of converted MEEG data for further analysis
% FORMAT spm_eeg_prep_ui(callback)
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre f... |
github | mccahill/docker-novnc-fmri-master | spm_read_netcdf.m | .m | docker-novnc-fmri-master/mri/spm12/spm_read_netcdf.m | 4,350 | utf_8 | 1cd1b0f7f4b4349d963028c168cd4f2d | function cdf = spm_read_netcdf(fname)
% Read the header information from a NetCDF file into a data structure.
% FORMAT cdf = spm_read_netcdf(fname)
% fname - name of NetCDF file
% cdf - data structure
%
% See: http://www.unidata.ucar.edu/packages/netcdf/
% _____________________________________________________________... |
github | mccahill/docker-novnc-fmri-master | spm_parrec2nifti.m | .m | docker-novnc-fmri-master/mri/spm12/spm_parrec2nifti.m | 10,866 | utf_8 | 3dbb37ccb02d4a8773573bb1f6cf1ab6 | function N = spm_parrec2nifti(parfile,opts)
% Import PAR/REC images from Philips scanners into NIfTI
% FORMAT N = spm_parrec2nifti(parfile,opts)
% parfile - name of PAR file
% opts - options structure
% .ext - NIfTI file extension {'img','nii'} [default: spm_file_ext]
% .outdir - output directory [def... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_regressors_movement_ctf.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_regressors_movement_ctf.m | 3,855 | utf_8 | 55e57049a40daac1340b887cb88856c0 | function res = spm_eeg_regressors_movement_ctf(S)
% Generate movement regressors for CTF MEG data
% S - input structure
% fields of S:
% S.D - M/EEG object
%
% Additional parameters can be defined specific for each plugin
% Output:
% res -
% If no input is provided the plugin... |
github | mccahill/docker-novnc-fmri-master | spm_figure.m | .m | docker-novnc-fmri-master/mri/spm12/spm_figure.m | 42,189 | utf_8 | 8ba6e4f7c9e08dc2d8eb21895acf4251 | function varargout=spm_figure(varargin)
% Setup and callback functions for Graphics window
% FORMAT varargout=spm_figure(varargin)
%
% spm_figure provides utility routines for using the SPM Graphics
% interface. Most used syntaxes are listed here, see the embedded callback
% reference in the main body of this function... |
github | mccahill/docker-novnc-fmri-master | spm_dicom_headers.m | .m | docker-novnc-fmri-master/mri/spm12/spm_dicom_headers.m | 1,728 | utf_8 | b5e84cc7cf375c337803564c6ad66893 | function hdr = spm_dicom_headers(P, essentials)
% Read header information from DICOM files
% FORMAT hdr = spm_dicom_headers(P [,essentials])
% P - array of filenames
% essentials - if true, then only save the essential parts of the header
%
% hdr - cell array of headers, one element for each file.
%
% C... |
github | mccahill/docker-novnc-fmri-master | spm_eeg_inv_mesh_spherify.m | .m | docker-novnc-fmri-master/mri/spm12/spm_eeg_inv_mesh_spherify.m | 4,914 | utf_8 | 96202b30d4e8aa20a28e6b48e12f196d | function [pnt, tri] = spm_eeg_inv_mesh_spherify(pnt, tri, varargin)
% Takes a cortical mesh and scales it so that it fits into a
% unit sphere.
%
% This function determines the points of the original mesh that support a
% convex hull and determines the radius of those points. Subsequently the
% radius of the support po... |
github | mccahill/docker-novnc-fmri-master | spm_image.m | .m | docker-novnc-fmri-master/mri/spm12/spm_image.m | 26,729 | utf_8 | e0df507d4dbeb104f371301f41f7c57c | function spm_image(action,varargin)
% Image and header display
% FORMAT spm_image
% FORMAT spm_image('Display',fname)
%__________________________________________________________________________
%
% spm_image is an interactive facility that allows orthogonal sections from
% an image volume to be displayed. Clicking the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.