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
pgmRead.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/pgmRead.m
1,259
utf_8
6f07c13cf0f5d8930a46ac0d778bf86f
% IM = pgmRead( FILENAME ) % % Load a pgm image into a MatLab matrix. % This format is accessible from the XV image browsing utility. % Only works for 8bit gray images (raw or ascii) % Hany Farid, Spring '96. Modified by Eero Simoncelli, 6/96. function im = pgmRead( fname ); [fid,msg] = fopen( fname, 'r' ); ...
github
ashriram/FUSION-master
upConv.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/upConv.m
2,779
utf_8
34137e966f38700416bfb0ebb72663ee
% RES = upConv(IM, FILT, EDGES, STEP, START, STOP, RES) % % Upsample matrix IM, followed by convolution with matrix FILT. These % arguments should be 1D or 2D matrices, and IM must be larger (in % both dimensions) than FILT. The origin of filt % is assumed to be floor(size(filt)/2)+1. % % EDGES is a string determinin...
github
ashriram/FUSION-master
mean2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/mean2.m
97
utf_8
cacc007ef6e32ba40a1e0da3b3d80a0e
% M = MEAN2(MTX) % % Sample mean of a matrix. function res = mean2(mtx) res = mean(mean(mtx));
github
ashriram/FUSION-master
range2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/range2.m
523
utf_8
b9f23c3a4f73bf568a1b5793f516aa80
% [MIN, MAX] = range2(MTX) % % Compute minimum and maximum values of MTX, returning them as a 2-vector. % Eero Simoncelli, 3/97. function [mn, mx] = range2(mtx) %% NOTE: THIS CODE IS NOT ACTUALLY USED! (MEX FILE IS CALLED INSTEAD) fprintf(1,'WARNING: You should compile the MEX version of "range2.c",\n found...
github
ashriram/FUSION-master
buildSCFpyrLevs.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/buildSCFpyrLevs.m
2,187
utf_8
26747285064a0eaa2f3db75013e80849
% [PYR, INDICES] = buildSCFpyrLevs(LODFT, LOGRAD, XRCOS, YRCOS, ANGLE, HEIGHT, NBANDS) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSCFpyr, and is not usually called directly. % Original code: Eero Simoncelli, 5/97. % Modified by Javier Portilla to generate complex b...
github
ashriram/FUSION-master
clip.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/clip.m
814
utf_8
13c82937ba69d5bc8c94b2ccca783e1b
% [RES] = clip(IM, MINVALorRANGE, MAXVAL) % % Clip values of matrix IM to lie between minVal and maxVal: % RES = max(min(IM,MAXVAL),MINVAL) % The first argument can also specify both min and max, as a 2-vector. % If only one argument is passed, the range defaults to [0,1]. function res = clip(im, minValOrRange, m...
github
ashriram/FUSION-master
upBlur.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/upBlur.m
1,213
utf_8
7b07d26940520537edb6e8dc25b72242
% RES = upBlur(IM, LEVELS, FILT) % % Upsample and blur an image. The blurring is done with filter % kernel specified by FILT (default = 'binom5'), which can be a string % (to be passed to namedFilter), a vector (applied separably as a 1D % convolution kernel in X and Y), or a matrix (applied as a 2D % convolution kern...
github
ashriram/FUSION-master
nextFig.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
zconv2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
mkZonePlate.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
steer2HarmMtx.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
mkAngularSine.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
mkRamp.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
histoMatch.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
subMtx.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
showLpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
sp1Filters.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
spyrHt.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
spyrBand.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
wpyrBand.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
skew2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
imStats.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/matlabPyrTools/innerProd.m
394
utf_8
c22f23bfd3cd281a639d9db666fc6fbf
% 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/matlabPyrTools/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/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
ashriram/FUSION-master
corrDn.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/corrDn.m
2,241
utf_8
f9192ce6673c10dec74a298b1303d502
% 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/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
ashriram/FUSION-master
maxPyrHt.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
buildSpyrLevs.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
showSpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
histo.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
lplot.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/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
ashriram/FUSION-master
reconSpyrLevs.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/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
ashriram/FUSION-master
buildSFpyrLevs.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/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
ashriram/FUSION-master
pyrBandIndices.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
pointOp.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
reconWpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
showWpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
imGradient.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/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
ashriram/FUSION-master
buildGpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
shift.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
namedFilter.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
buildLpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
mkAngle.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
wpyrHt.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
sp0Filters.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
sp5Filters.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
steer.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
mkGaussian.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/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
ashriram/FUSION-master
entropy2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/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
ashriram/FUSION-master
spyrLev.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
pgmWrite.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
mod.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/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
ashriram/FUSION-master
mkFract.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
mkSquare.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
spyrNumBands.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/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
ashriram/FUSION-master
reconSpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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
sp3Filters.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/sp3Filters.m
17,188
utf_8
a3514d77e5a92b96d96197ebad343395
% 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
buildWpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/buildWpyr.m
2,605
utf_8
16663cdfba931a8f5e2ae6a4477253d0
% [PYR, INDICES] = buildWpyr(IM, HEIGHT, FILT, EDGES) % % Construct a separable orthonormal QMF/wavelet pyramid on matrix (or vector) IM. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is maxPyrHt(IM,FILT). You can also specify 'auto' to use this value. % % FILT (optional) can be a st...
github
ashriram/FUSION-master
reconLpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/reconLpyr.m
2,049
utf_8
657b8012a1ed06b6573496855309b2ae
% RES = reconLpyr(PYR, INDICES, LEVS, FILT2, EDGES) % % Reconstruct image from Laplacian pyramid, as created by buildLpyr. % % 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 compatible with the MatLab Wavelet t...
github
ashriram/FUSION-master
mkDisc.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/mkDisc.m
1,428
utf_8
c6acae0ac1aa738b7ef094eb2ac60f52
% IM = mkDisc(SIZE, RADIUS, ORIGIN, TWIDTH, VALS) % % Make a "disk" image. SIZE specifies the matrix size, as for % zeros(). RADIUS (default = min(size)/4) specifies the radius of % the disk. ORIGIN (default = (size+1)/2) specifies the % location of the disk center. TWIDTH (in pixels, default = 2) % specifies th...
github
ashriram/FUSION-master
spyrHigh.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/spyrHigh.m
189
utf_8
3132a747e0c7bf1879bb32e4d5fda257
% RES = spyrHigh(PYR, INDICES) % % Access the highpass residual band from a steerable pyramid. % Eero Simoncelli, 6/96. function res = spyrHigh(pyr,pind) res = pyrBand(pyr, pind, 1);
github
ashriram/FUSION-master
mkImpulse.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/mkImpulse.m
529
utf_8
cf6f3809cb123791501bb0e92845a0c6
% IM = mkImpulse(SIZE, ORIGIN, AMPLITUDE) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing a single non-zero entry, at position ORIGIN (defaults to % ceil(size/2)), of value AMPLITUDE (defaults to 1). % Eero Simoncelli, 6/96. function [res] = mkImpulse(sz, origin, amplitude) sz = s...
github
ashriram/FUSION-master
rconv2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/rconv2.m
1,435
utf_8
da3a54d6c7b1ac17c78eab0a4a7648d9
% RES = RCONV2(MTX1, MTX2, CTR) % % Convolution of two matrices, with boundaries handled via reflection % about the edge pixels. Result will be of size of LARGER matrix. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % argument:...
github
ashriram/FUSION-master
mkR.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/mkR.m
775
utf_8
504bc90f67c72730edc4a9d86630bdf2
% IM = mkR(SIZE, EXPT, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of a radial ramp function, raised to power EXPT % (default = 1), with given ORIGIN (default = (size+1)/2, [1 1] = % upper left). All but the first argument are optional. % Eero Simoncelli, 6/96....
github
ashriram/FUSION-master
blur.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/blur.m
811
utf_8
5856870b9b936b658eb5529e572832ac
% RES = blur(IM, LEVELS, FILT) % % Blur an image, by filtering and downsampling LEVELS times % (default=1), followed by upsampling and filtering LEVELS times. 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 sep...
github
ashriram/FUSION-master
pyrBand.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/pyrBand.m
395
utf_8
39c1e3772426a1362119d302d9767a24
% RES = pyrBand(PYR, INDICES, BAND_NUM) % % Access a subband from a pyramid (gaussian, laplacian, QMF/wavelet, % or steerable). Subbands are numbered consecutively, from finest % (highest spatial frequency) to coarsest (lowest spatial frequency). % Eero Simoncelli, 6/96. function res = pyrBand(pyr, pind, band) re...
github
ashriram/FUSION-master
kurt2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/kurt2.m
551
utf_8
cd20c1a5155cba8de454011552ec4f2a
% K = KURT2(MTX,MEAN,VAR) % % Sample kurtosis (fourth moment divided by squared variance) % of a matrix. Kurtosis of a Gaussian distribution is 3. % MEAN (optional) and VAR (optional) make the computation faster. % Eero Simoncelli, 6/96. function res = kurt2(mtx, mn, v) if (exist('mn') ~= 1) mn = mean(mean(mtx)...
github
ashriram/FUSION-master
buildSpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/buildSpyr.m
2,017
utf_8
008168b7f92c2aa8e42917b3139f4c8c
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSpyr(IM, HEIGHT, FILTFILE, EDGES) % % Construct a steerable pyramid on matrix IM. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is maxPyrHt(size(IM),size(FILT)). % You can also specify 'auto' to use this value. % % FILTFILE (optional) shou...
github
ashriram/FUSION-master
setPyrBand.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/setPyrBand.m
1,043
utf_8
6953cae28a2e745f465b4485b793b5d6
% NEWPYR = setPyrBand(PYR, INDICES, BAND, BAND_NUM) % % Insert an image (BAND) into a pyramid (gaussian, laplacian, QMF/wavelet, % or steerable). Subbands are numbered consecutively, from finest % (highest spatial frequency) to coarsest (lowest spatial frequency). % Eero Simoncelli, 1/03. function pyr = pyrBand(py...
github
ashriram/FUSION-master
var2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/var2.m
390
utf_8
de26727e055081aa670024c273f0e885
% V = VAR2(MTX,MEAN) % % Sample variance of a matrix. % Passing MEAN (optional) makes the calculation faster. function res = var2(mtx, mn) if (exist('mn') ~= 1) mn = mean2(mtx); end if (isreal(mtx)) res = sum(sum(abs(mtx-mn).^2)) / max((prod(size(mtx)) - 1),1); else res = sum(sum(real(mtx-mn).^2)) + i*sum(su...
github
ashriram/FUSION-master
reconSFpyrLevs.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/reconSFpyrLevs.m
2,016
utf_8
ff83a4f3d2f0927dcaa8851535e6b20a
% RESDFT = reconSFpyrLevs(PYR,INDICES,LOGRAD,XRCOS,YRCOS,ANGLE,NBANDS,LEVS,BANDS) % % Recursive function for reconstructing levels of a steerable pyramid % representation. This is called by reconSFpyr, and is not usually % called directly. % Eero Simoncelli, 5/97. function resdft = reconSFpyrLevs(pyr,pind,log_rad,Xr...
github
ashriram/FUSION-master
rcosFn.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/rcosFn.m
1,122
utf_8
36283e0a34f1baf7ea2c5e6cb23aab89
% [X, Y] = rcosFn(WIDTH, POSITION, VALUES) % % Return a lookup table (suitable for use by INTERP1) % containing a "raised cosine" soft threshold function: % % Y = VALUES(1) + (VALUES(2)-VALUES(1)) * % cos^2( PI/2 * (X - POSITION + WIDTH)/WIDTH ) % % WIDTH is the width of the region over which the tra...
github
ashriram/FUSION-master
wpyrLev.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/wpyrLev.m
729
utf_8
77f309b76f98f3421e786fde4fe2d429
% [LEV,IND] = wpyrLev(PYR,INDICES,LEVEL) % % Access a level from a separable QMF/wavelet pyramid. % Return as an SxB matrix, B = number of bands, S = total size of a band. % Also returns an Bx2 matrix containing dimensions of the subbands. % Eero Simoncelli, 6/96. function [lev,ind] = wpyrLev(pyr,pind,level) if ((p...
github
ashriram/FUSION-master
vector.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/vector.m
135
utf_8
7a00f703e734176bf26c0c48eeee4208
% [VEC] = vector(MTX) % % Pack elements of MTX into a column vector. Same as VEC = MTX(:) function vec = vector(mtx) vec = mtx(:);
github
ashriram/FUSION-master
binomialFilter.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/binomialFilter.m
309
utf_8
47b67219b2519bd65a435f3df318d41a
% KERNEL = binomialFilter(size) % % Returns a vector of binomial coefficients of order (size-1) . % Eero Simoncelli, 2/97. function [kernel] = binomialFilter(sz) if (sz < 2) error('size argument must be larger than 1'); end kernel = [0.5 0.5]'; for n=1:sz-2 kernel = conv([0.5 0.5]', kernel); end
github
ashriram/FUSION-master
cconv2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/cconv2.m
1,325
utf_8
8e564b623ba5cebd51e585eac6c66ba8
% RES = CCONV2(MTX1, MTX2, CTR) % % Circular convolution of two matrices. Result will be of size of % LARGER vector. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % argument: % CTR origin % 0 DIM/2 (defaul...
github
ashriram/FUSION-master
reconSCFpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/reconSCFpyr.m
4,475
utf_8
a0a6a06af4b5c9f7aa195bb8188fc754
% RES = reconSCFpyr(PYR, INDICES, LEVS, BANDS, TWIDTH) % % The inverse of buildSCFpyr: Reconstruct image from its complex steerable pyramid representation, % in the Fourier domain. % % The image is reconstructed by forcing the complex subbands to be analytic % (zero on half of the 2D Fourier plane, as they are supossed...
github
ashriram/FUSION-master
buildSCFpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/buildSCFpyr.m
2,713
utf_8
d94b4004138b50b6651511e8ba6ccb93
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSCFpyr(IM, HEIGHT, ORDER, TWIDTH) % % This is a modified version of buildSFpyr, that constructs a % complex-valued steerable pyramid using Hilbert-transform pairs % of filters. Note that the imaginary parts will *not* be steerable. % % To reconstruct from this representati...
github
ashriram/FUSION-master
showIm.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/showIm.m
6,111
utf_8
15fbbf55e2fd54e3f48ca936e23c3f32
% RANGE = showIm (MATRIX, RANGE, ZOOM, LABEL, NSHADES ) % % Display a MatLab MATRIX as a grayscale image in the current figure, % inside the current axes. If MATRIX is complex, the real and imaginary % parts are shown side-by-side, with the same grayscale mapping. % % If MATRIX is a string, it should be the name of...
github
ashriram/FUSION-master
pyrLow.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/pyrLow.m
287
utf_8
b3514ec06e2e106d7b61e534cac20a8e
% RES = pyrLow(PYR, INDICES) % % Access the lowpass subband from a pyramid % (gaussian, laplacian, QMF/wavelet, steerable). % Eero Simoncelli, 6/96. function res = pyrLow(pyr,pind) band = size(pind,1); res = reshape( pyr(pyrBandIndices(pind,band)), pind(band,1), pind(band,2) );
github
ashriram/FUSION-master
pgmRead.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/pgmRead.m
1,259
utf_8
6f07c13cf0f5d8930a46ac0d778bf86f
% IM = pgmRead( FILENAME ) % % Load a pgm image into a MatLab matrix. % This format is accessible from the XV image browsing utility. % Only works for 8bit gray images (raw or ascii) % Hany Farid, Spring '96. Modified by Eero Simoncelli, 6/96. function im = pgmRead( fname ); [fid,msg] = fopen( fname, 'r' ); ...
github
ashriram/FUSION-master
upConv.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/upConv.m
2,780
utf_8
3ed7375e581915ee319e0756a4db66eb
% RES = upConv(IM, FILT, EDGES, STEP, START, STOP, RES) % % Upsample matrix IM, followed by convolution with matrix FILT. These % arguments should be 1D or 2D matrices, and IM must be larger (in % both dimensions) than FILT. The origin of filt % is assumed to be floor(size(filt)/2)+1. % % EDGES is a string determinin...
github
ashriram/FUSION-master
mean2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/mean2.m
97
utf_8
cacc007ef6e32ba40a1e0da3b3d80a0e
% M = MEAN2(MTX) % % Sample mean of a matrix. function res = mean2(mtx) res = mean(mean(mtx));
github
ashriram/FUSION-master
range2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/range2.m
524
utf_8
5d4a52482a0c4028b2fee27f69d6fd6d
% [MIN, MAX] = range2(MTX) % % Compute minimum and maximum values of MTX, returning them as a 2-vector. % Eero Simoncelli, 3/97. function [mn, mx] = range2(mtx) %% NOTE: THIS CODE IS NOT ACTUALLY USED! (MEX FILE IS CALLED INSTEAD) %fprintf(1,'WARNING: You should compile the MEX version of "range2.c",\n foun...
github
ashriram/FUSION-master
buildSCFpyrLevs.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/buildSCFpyrLevs.m
2,187
utf_8
26747285064a0eaa2f3db75013e80849
% [PYR, INDICES] = buildSCFpyrLevs(LODFT, LOGRAD, XRCOS, YRCOS, ANGLE, HEIGHT, NBANDS) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSCFpyr, and is not usually called directly. % Original code: Eero Simoncelli, 5/97. % Modified by Javier Portilla to generate complex b...
github
ashriram/FUSION-master
clip.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/clip.m
814
utf_8
13c82937ba69d5bc8c94b2ccca783e1b
% [RES] = clip(IM, MINVALorRANGE, MAXVAL) % % Clip values of matrix IM to lie between minVal and maxVal: % RES = max(min(IM,MAXVAL),MINVAL) % The first argument can also specify both min and max, as a 2-vector. % If only one argument is passed, the range defaults to [0,1]. function res = clip(im, minValOrRange, m...
github
ashriram/FUSION-master
upBlur.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/upBlur.m
1,213
utf_8
7b07d26940520537edb6e8dc25b72242
% RES = upBlur(IM, LEVELS, FILT) % % Upsample and blur an image. The blurring is done with filter % kernel specified by FILT (default = 'binom5'), which can be a string % (to be passed to namedFilter), a vector (applied separably as a 1D % convolution kernel in X and Y), or a matrix (applied as a 2D % convolution kern...
github
ashriram/FUSION-master
nextFig.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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
ashriram/FUSION-master
zconv2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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
ashriram/FUSION-master
mkZonePlate.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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
ashriram/FUSION-master
steer2HarmMtx.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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
ashriram/FUSION-master
mkAngularSine.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlab/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....