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
bethany/o2model-master
convection_v12_1a.m
.m
o2model-master/SAS1A_2layer/Mylake_v12/v12_1/convection_v12_1a.m
4,678
utf_8
e94636301a8b5e1e69f8658c854900ca
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % VERSION 1.2.1a, based on convection_v12 (with three modified lines of code, marked with NEW!!!) % Convection module % Code checked by TSA, 07.03.05 % Last modified by TSA, 17.07.07 function [Tz,Cz,Sz,Pz,Chlz,PPz,D...
github
bethany/o2model-master
hfbulktc.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/air_sea/hfbulktc.m
11,877
utf_8
f57ca3e55e72511e31eb4247c8151775
function A=hfbulktc(ur,zr,Ta,zt,rh,zq,Pa,Ts,sal,dlw,dsw,nsw) % HFBULKTC: computes sensible and latent heat fluxes and other variables. % A=HFBULKTC(ur,zr,Ta,zt,rh,zq,Pa,Ts,sal,dlw,dsw,nsw) computes the following: % % Hs = sensible heat flux INTO ocean [W/m^2] % Hl = latent heat flux INTO o...
github
bethany/o2model-master
cool_skin.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/air_sea/cool_skin.m
7,518
utf_8
c498431a06857156738bb02881093d6b
function [delta,Dter,Dqer] = cool_skin(sal,Tw,rhoa,cpa,Pa, ... U_star,T_star,Q_star, ... dlw,dsw,nsw,delta,g,Rgas, ... CtoK,Qsat_coeff) % COOL_SKIN: compute the cool-skin parameters. % COOL_...
github
bethany/o2model-master
hfbulktc_speed.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/air_sea/hfbulktc_speed.m
12,258
utf_8
58921b3e65881e9bc27ce88e3a96436d
% As hfbulktc.m but in order to speed up the function, the iteration loop is % changed from "if" to "while" structure by TSA 05.09.03 function A=hfbulktc_speed(ur,zr,Ta,zt,rh,zq,Pa,Ts,sal,dlw,dsw,nsw) % HFBULKTC: computes sensible and latent heat fluxes and other variables. % A=HFBULKTC(ur,zr,Ta,zt,rh,zq,Pa,Ts,sa...
github
bethany/o2model-master
reedcf.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/air_sea/reedcf.m
3,943
utf_8
a868371ec818451f13265398804019c4
function c = reedcf(yd,lat,dsw); % REEDCF: computes daily mean cloud cover following Reed (1977). % c = REEDCF(yd,lat,dsw) computes daily averaged cloud cover c from % yearday, latitude, and measured insolation following Reed (1977), J. Phys. % Oceanog., 7, 482-485. Assumes hourly input series are either both ...
github
bethany/o2model-master
modelinputs_v12.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/v12/modelinputs_v12.m
6,853
utf_8
f2f8ca11ae6207d5c802738438d47dce
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2005 % % Module for reading input data and parameters % Code checked by TSA, xx.03.2005 % Last modified by TSA, 15.08.2006 (Az replaced by In_Az 10.03.06; Possibility to have NaN in Global rad. series, 15.08.06) fu...
github
bethany/o2model-master
IOflow_v11.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/v12/IOflow_v11.m
1,836
utf_8
3fd8e614c653ec3dc38eb09d0a96c19c
% === MyLake model, version 1.1, 16.03.04 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % % Module for calculating river inflow and its effect on profiles of temperature and other state variables % Code checked by TSA, 16.3.2004 % INPUTS: % vertical arrays: z is model grid, Vz is layer volume, Tz la...
github
bethany/o2model-master
heatflux_v12.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/v12/heatflux_v12.m
3,866
utf_8
c2ac59002c564b594507ca488a499d58
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2005 % % Module for calculating heat fluxes and other physical parameters % Code checked by TSA, 03.03.2005 % Last modified by TSA, 03.03.2005 function [Qsw,Qlw,Qsl,tau,Dayfrac,Dayfracheating] = heatflux_v12(t,GR,CC,Ta,Ra,P...
github
bethany/o2model-master
solvemodel_v12.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/v12/solvemodel_v12.m
64,713
utf_8
b8f8cf4868fb2808617e37542294b9e9
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2005 % % Main module % Code checked by TSA, xx.03.2005 % Last modified by TSA, 15.08.2006 (temperature profile sent to convection.m, Thermocline-bug corrected) function [zz,Az,Vz,tt,Qst,Kzt,Tzt,Czt,Szt,Pzt,Chlzt,PPzt,DOPzt...
github
bethany/o2model-master
sedimentheat_v11.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/v12/sedimentheat_v11.m
957
utf_8
651aaf0bdc6f47d157c158f80f7f0d6b
% === MyLake model, version 1.1, 16.03.04 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % % Module for calculating new temperature profile in sediments % Code checked by TSA, 16.03.2004 function [Tzy_sed_updated] = sedimentheat_v11(Tzy_sed, K_sed, dt) % Grid resolution in sediment is 0.2 m in the 0-2 lay...
github
bethany/o2model-master
convection_v12_1a.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/v12/convection_v12_1a.m
4,563
utf_8
52c642bd5f521687dc0e18eed5c37432
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % VERSION 1.2.1a, based on convection_v12 (with three modified lines of code, marked with NEW!!!) % Convection module % Code checked by TSA, 07.03.05 % Last modified by TSA, 17.07.07 function [Tz,Cz,Sz,Pz,Chlz,PPz,D...
github
bethany/o2model-master
convection_v12_1a.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/v12_1/convection_v12_1a.m
4,672
utf_8
1560fe5acb1866ab414d51978bb5c74b
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % VERSION 1.2.1a, based on convection_v12 (with three modified lines of code, marked with NEW!!!) % Convection module % Code checked by TSA, 07.03.05 % Last modified by TSA, 17.07.07 function [Tz,Cz,Sz,Pz,Chlz,PPz,D...
github
bethany/o2model-master
solvemodel_v12_1b_ut.m
.m
o2model-master/SAS1A_2layer_sensitivity-analysis/Mylake_v12/v12_1/solvemodel_v12_1b_ut.m
56,687
utf_8
8f54a141697b1c96494feb0d71369d88
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2005 % % VERSION 1.2.1 (two phytoplankton groups are included; variable Cz denotes % this second group now. Frazil ice included + some small bug-fixes and code rearrangements. Using convection_v12_1a.m code) % % Main module %...
github
bethany/o2model-master
hfbulktc.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/air_sea/hfbulktc.m
11,877
utf_8
f57ca3e55e72511e31eb4247c8151775
function A=hfbulktc(ur,zr,Ta,zt,rh,zq,Pa,Ts,sal,dlw,dsw,nsw) % HFBULKTC: computes sensible and latent heat fluxes and other variables. % A=HFBULKTC(ur,zr,Ta,zt,rh,zq,Pa,Ts,sal,dlw,dsw,nsw) computes the following: % % Hs = sensible heat flux INTO ocean [W/m^2] % Hl = latent heat flux INTO o...
github
bethany/o2model-master
cool_skin.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/air_sea/cool_skin.m
7,518
utf_8
c498431a06857156738bb02881093d6b
function [delta,Dter,Dqer] = cool_skin(sal,Tw,rhoa,cpa,Pa, ... U_star,T_star,Q_star, ... dlw,dsw,nsw,delta,g,Rgas, ... CtoK,Qsat_coeff) % COOL_SKIN: compute the cool-skin parameters. % COOL_...
github
bethany/o2model-master
hfbulktc_speed.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/air_sea/hfbulktc_speed.m
12,258
utf_8
58921b3e65881e9bc27ce88e3a96436d
% As hfbulktc.m but in order to speed up the function, the iteration loop is % changed from "if" to "while" structure by TSA 05.09.03 function A=hfbulktc_speed(ur,zr,Ta,zt,rh,zq,Pa,Ts,sal,dlw,dsw,nsw) % HFBULKTC: computes sensible and latent heat fluxes and other variables. % A=HFBULKTC(ur,zr,Ta,zt,rh,zq,Pa,Ts,sa...
github
bethany/o2model-master
reedcf.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/air_sea/reedcf.m
3,943
utf_8
a868371ec818451f13265398804019c4
function c = reedcf(yd,lat,dsw); % REEDCF: computes daily mean cloud cover following Reed (1977). % c = REEDCF(yd,lat,dsw) computes daily averaged cloud cover c from % yearday, latitude, and measured insolation following Reed (1977), J. Phys. % Oceanog., 7, 482-485. Assumes hourly input series are either both ...
github
bethany/o2model-master
modelinputs_v12.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/v12/modelinputs_v12.m
6,853
utf_8
f2f8ca11ae6207d5c802738438d47dce
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2005 % % Module for reading input data and parameters % Code checked by TSA, xx.03.2005 % Last modified by TSA, 15.08.2006 (Az replaced by In_Az 10.03.06; Possibility to have NaN in Global rad. series, 15.08.06) fu...
github
bethany/o2model-master
IOflow_v11.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/v12/IOflow_v11.m
1,836
utf_8
3fd8e614c653ec3dc38eb09d0a96c19c
% === MyLake model, version 1.1, 16.03.04 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % % Module for calculating river inflow and its effect on profiles of temperature and other state variables % Code checked by TSA, 16.3.2004 % INPUTS: % vertical arrays: z is model grid, Vz is layer volume, Tz la...
github
bethany/o2model-master
heatflux_v12.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/v12/heatflux_v12.m
3,866
utf_8
c2ac59002c564b594507ca488a499d58
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2005 % % Module for calculating heat fluxes and other physical parameters % Code checked by TSA, 03.03.2005 % Last modified by TSA, 03.03.2005 function [Qsw,Qlw,Qsl,tau,Dayfrac,Dayfracheating] = heatflux_v12(t,GR,CC,Ta,Ra,P...
github
bethany/o2model-master
solvemodel_v12.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/v12/solvemodel_v12.m
60,047
utf_8
75927e7e66ca36798d8207467775b362
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2005 % % Main module % Code checked by TSA, xx.03.2005 % Last modified by TSA, 15.08.2006 (temperature profile sent to convection.m, Thermocline-bug corrected) function [zz,Az,Vz,tt,Qst,Kzt,Tzt,Czt,Szt,Pzt,Chlzt,PPzt,DOPzt...
github
bethany/o2model-master
sedimentheat_v11.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/v12/sedimentheat_v11.m
957
utf_8
651aaf0bdc6f47d157c158f80f7f0d6b
% === MyLake model, version 1.1, 16.03.04 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % % Module for calculating new temperature profile in sediments % Code checked by TSA, 16.03.2004 function [Tzy_sed_updated] = sedimentheat_v11(Tzy_sed, K_sed, dt) % Grid resolution in sediment is 0.2 m in the 0-2 lay...
github
bethany/o2model-master
convection_v12_1a.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/v12/convection_v12_1a.m
4,678
utf_8
ee28d5983f6a9c5e5efdd548047b73b6
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % VERSION 1.2.1a, based on convection_v12 (with three modified lines of code, marked with NEW!!!) % Convection module % Code checked by TSA, 07.03.05 % Last modified by TSA, 17.07.07 function [Tz,Cz,Sz,Pz,Chlz,PPz,D...
github
bethany/o2model-master
convection_v12_1a.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/v12_1/convection_v12_1a.m
4,672
utf_8
1087d9c9e1b8a1e06675c40303b57baa
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2004 % VERSION 1.2.1a, based on convection_v12 (with three modified lines of code, marked with NEW!!!) % Convection module % Code checked by TSA, 07.03.05 % Last modified by TSA, 17.07.07 function [Tz,Cz,Sz,Pz,Chlz,PPz,D...
github
bethany/o2model-master
solvemodel_v12_1b_ut.m
.m
o2model-master/SAS1A_alldata RCP 4.5/Mylake_v12/v12_1/solvemodel_v12_1b_ut.m
56,687
utf_8
8f54a141697b1c96494feb0d71369d88
% === MyLake model, version 1.2, 15.03.05 === % by Tom Andersen & Tuomo Saloranta, NIVA 2005 % % VERSION 1.2.1 (two phytoplankton groups are included; variable Cz denotes % this second group now. Frazil ice included + some small bug-fixes and code rearrangements. Using convection_v12_1a.m code) % % Main module %...
github
ashriram/FUSION-master
quadedgep2.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/filtersQuad/quadedgep2.m
5,686
utf_8
bd13f17991058601f439a128b1807df5
% function [xs,ys,gx,gy,par,threshold,mag,mage,g,FIe,FIo,mago] = quadedgep(I,par,threshold); % Input: % I = image % par = vector for 4 parameters % [number of filter orientations, number of scale, filter size, elongation] % To use default values, put 0. % threshold = threshold on edge strength ...
github
ashriram/FUSION-master
savepgm.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/calib_bouguetj/savepgm.m
446
utf_8
20f631ec4a08463004879aa736d6e210
%SAVEPGM Write a PGM format file % % SAVEPGM(filename, im) % % Saves the specified image array in a binary (P5) format PGM image file. % % SEE ALSO: loadpgm % % Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab % Peter Corke 1994 function savepgm(fname, im) fid = fopen(fname, 'w'); [r,c] = size(...
github
ashriram/FUSION-master
loadinr.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/calib_bouguetj/loadinr.m
1,029
utf_8
ac39329cc5acba186f4c5ef4c62f3a33
%LOADINR Load an INRIMAGE format file % % LOADINR(filename, im) % % Load an INRIA image format file and return it as a matrix % % SEE ALSO: saveinr % % Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab % Peter Corke 1996 function im = loadinr(fname, im) fid = fopen(fname, 'r'); s = fgets(fid); ...
github
ashriram/FUSION-master
saveppm.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/calib_bouguetj/saveppm.m
514
utf_8
07dea55d0d49dfe07b27097d0e865b63
%SAVEPPM Write a PPM format file % % SAVEPPM(filename, r, g, b) % % Saves the specified red, green and blue planes in a binary (P6) % format PPM image file. % % SEE ALSO: loadppm % % Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab % Peter Corke 1994 function saveppm(fname, R, G, B) fid = fopen(f...
github
ashriram/FUSION-master
ginput3.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/calib_bouguetj/ginput3.m
6,340
utf_8
fe00d9c5f48e9d92f0d2f51ba3ec7a2a
function [out1,out2,out3] = ginput2(arg1) %GINPUT Graphical input from mouse. % [X,Y] = GINPUT(N) gets N points from the current axes and returns % the X- and Y-coordinates in length N vectors X and Y. The cursor % can be positioned using a mouse (or by using the Arrow Keys on some % systems). Data points a...
github
ashriram/FUSION-master
loadppm.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/calib_bouguetj/loadppm.m
2,098
utf_8
3420adc34bc6ed0aa2787f9a5015691d
%LOADPPM Load a PPM image % % [R,G,B] = loadppm(filename) % % Returns a matrix containing the image loaded from the PPM format % file filename. Handles ASCII (P3) and binary (P6) PPM file formats. % % If the filename has no extension, and open fails, a '.ppm' and % '.pnm' extension will be tried. % % SEE ALSO: saveppm...
github
ashriram/FUSION-master
saveinr.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/calib_bouguetj/saveinr.m
949
utf_8
a18df4fba021be006842fbc35166bc23
%SAVEINR Write an INRIMAGE format file % % SAVEINR(filename, im) % % Saves the specified image array in a INRIA image format file. % % SEE ALSO: loadinr % % Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab % Peter Corke 1996 function saveinr(fname, im) fid = fopen(fname, 'w'); [r,c] = size(im'); ...
github
ashriram/FUSION-master
loadpgm.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/calib_bouguetj/loadpgm.m
1,836
utf_8
9ad18a34df6b4b136fd67753e7dfab23
%LOADPGM Load a PGM image % % I = loadpgm(filename) % % Returns a matrix containing the image loaded from the PGM format % file filename. Handles ASCII (P2) and binary (P5) PGM file formats. % % If the filename has no extension, and open fails, a '.pgm' will % be appended. % % % Copyright (c) Peter Corke, 1999 Machin...
github
ashriram/FUSION-master
smooth.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/filter_hist/smooth.m
445
utf_8
de46b292c6ad43bbce4f5d8d27fac512
% smooth an image % coordinates (r, c) follow matrix convention; % the gaussian is truncated at x = +- tail, and there are samples samples % inbetween, where samples = hsamples * 2 + 1 function g = smooth(image, hsamples) tail=4; samples = hsamples * 2 + 1; x = linspace(-tail, tail, samples); gauss = exp(-x.^2); n =...
github
ashriram/FUSION-master
factor_test2.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/fact/factor_test2.m
944
utf_8
539636e4818fac07036a7a0c25132b97
% % Usage: % % [R,t,S] = factor(W) % % Function to factor a matrix of input data (W) into the camera % rotation matrix (R), translation (t), and the shape matrix (S). % Three-dimensional version. Failure of normalization results in % empty R and S. function [R,t,S,C,b] = factor(W) pts = size(W,2); t = W*ones(pts,1...
github
ashriram/FUSION-master
factor_test.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/fact/factor_test.m
944
utf_8
24d82fbf674d146ac2b8ef0287d5a21a
% % Usage: % % [R,t,S] = factor(W) % % Function to factor a matrix of input data (W) into the camera % rotation matrix (R), translation (t), and the shape matrix (S). % Three-dimensional version. Failure of normalization results in % empty R and S. function [R,t,S,C,b] = factor(W) pts = size(W,2); t = W*ones(pts,1...
github
ashriram/FUSION-master
factor.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/fact/factor.m
910
utf_8
674c784f89a24244e6890b8cbe6e8d18
% % Usage: % % [R,t,S] = factor(W) % % Function to factor a matrix of input data (W) into the camera % rotation matrix (R), translation (t), and the shape matrix (S). % Three-dimensional version. Failure of normalization results in % empty R and S. function [R,t,S] = factor(W) pts = size(W,2); t = W*ones(pts,1)/pt...
github
ashriram/FUSION-master
zt.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/fact/zt.m
197
utf_8
785d4238b16a68ebfcf6a1a5abc9eff5
% the z' operator described in the paper (returns a row vector) function v = zt(a, b) v = [ a(1)*b(1), a(1)*b(2)+a(2)*b(1), a(1)*b(3)+a(3)*b(1), ... a(2)*b(2), a(2)*b(3)+a(3)*b(2), a(3)*b(3) ];
github
ashriram/FUSION-master
smooth.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/filter/smooth.m
554
utf_8
65754545303ead531e23f964f813dff5
% smooth an image % coordinates (r, c) follow matrix convention; % the gaussian is truncated at x = +- tail, and there are samples samples % inbetween, where samples = hsamples * 2 + 1 function g = smooth(image, hsamples) tail=4; samples = hsamples * 2 + 1; x = linspace(-tail, tail, samples); gauss = exp(-x.^2); %s ...
github
ashriram/FUSION-master
quadedgep.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/common/quadedgep.m
3,585
utf_8
a0c56dc97d76510e834f0e28ff768f01
% function [x,y,gx,gy,par,threshold,mag,mage,g,FIe,FIo,mago] = quadedgep(I,par,threshold); % Input: % I = image % par = vector for 4 parameters % [number of filter orientations, number of scales, filter size, elongation] % To use default values, put 0. % threshold = threshold on edge strength ...
github
ashriram/FUSION-master
ncutd.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/common/ncutd.m
2,512
utf_8
34f2f00c326bd652a5356fd92fb7873a
% function [v,s,na,d] = ncutd(a,nv,beta,sigma,offset) % Input: % a = (attraction + i*repulsion), both nonnegative but could be asymmetrical % nv = number of eigenvectors v % beta = weighting between undirected graph and directed graph % beta = 1, undirected; beta = 0, directed. Default = 0.5 % sigm...
github
ashriram/FUSION-master
ncut.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/common/ncut.m
2,445
utf_8
4ec65362aa2b9c90105a61c0836b81de
% function [v,s,na,d] = ncut(a,nv,sigma,offset) % Input: % a = affinity matrix, hermitian, could be 3D, or a cell % nv = number of eigenvectors v % sigma = refer to EIGS.M, 0 for smallest, default = 'LR' % offset = vector, each for an affinity matrix, offset for nondirectional repulsion % W = A...
github
ashriram/FUSION-master
nonmaxsup.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/common/nonmaxsup.m
1,610
utf_8
c80f7ee8fa49008e092c2553067e1875
% function f = nonmaxsup(g,ismax,r) return extrema boolean map. % Input: g = image, gradient image pair [x,y], or [x,y,g] in 3D matrix % ismax (=1)/0 is for non maximum/minimum suppression % r (=1) is the neighbourhood radius. % Output: % f = thinned extrema boolean map, where % d (||gr...
github
ashriram/FUSION-master
showncut.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/showncut.m
2,431
utf_8
4d23bc296dc5730d5abbb7f4cebe7b16
% function [g,lgd,v,s,dd] = showncut(fn,rec_num) % Input: % fn = file / image name % rec_num = Ncut record number % Output: % g = a cell contains 1D, 2D and 3D embeddings % lgd = legend for g % v = eigenvectors % s = eigenvalues % dd = normalization matrix = 1/sqrt(rowsum(abs(a))) % an image i...
github
ashriram/FUSION-master
firstncut.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/firstncut.m
1,630
utf_8
a63143b222041e09224e5eb6dadc1fbc
% function [v,s,d] = firstncut(base_name,rec_num) % Input: % base_name = image name % rec_num = parameter record number % Output: % v = eigenvectors % s = eigenvalues % d = normalization matrix d = 1/sqrt(rowsum(abs(a))) % Convert Jianbo Shi's Ncut Ccode results from images to matlab matrices. % Stella...
github
ashriram/FUSION-master
jshincutdefpar.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/jshincutdefpar.m
565
utf_8
137e4dedf0307b31a5df5415ea48af80
% function rec = jshincutdefpar; % default parameter setting for Jianbo Shi's NCut C codes % Stella X. Yu, 2000. function rec = jshincutdefpar; rec.fname_base = '240018s'; rec.fname_ext = 'ppm'; rec.num_eigvecs = 15; rec.spatial_neighborhood_x=20; rec.sigma_x= 10; rec.sig_...
github
ashriram/FUSION-master
showim.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/showim.m
814
utf_8
838ba8b1c5d11a2ff841fdf6ea40825c
% function showim(f,cmap) display real or complex image. % When it is complex, the real part and imaginary part % are displayed as [real,imag] in one image. % cmap is the colormap. default = gray, -1 = inverted gray. % Stella X. Yu, 2000. function showim(f,cmap,ishori) if not(isreal(f)), i = [real(f(:)...
github
ashriram/FUSION-master
jshincut.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/jshincut.m
2,362
utf_8
e42f7d6ff8a38d087b114c51330ccd49
% function [par, rec_num] = jshincut(par,image_dir) % Input: % par = a structure with parameters for command_ncut.tex % image_dir = the directory where the imagefile is stored % Output: % par = parameters used % rec_num = record number in the NCut database % Jianbo Shi's ncut_IC is applied to the image % (If ...
github
ashriram/FUSION-master
afromncut.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/afromncut.m
1,798
utf_8
d566c9f3ed90ca0d95f6eb0e9068e75f
% function a = afromncut(v,s,d,visimg,no_rep,pixel_loc) % Input: % v = eigenvectors of d*a*d, starting from the second. % (the first is all one over some constant determined by d) % s = eigenvalues % d = normalization matrix 1/sqrt(rowsum(abs(a))) % visimg = 1/0 if each eigenvector is/not 2D (so v is 3...
github
ashriram/FUSION-master
getfnames.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/getfnames.m
835
utf_8
8fec31a5b925b4662f9b800e6dae7f41
% function [fn,dn] = getfnames(direc,opt) % Input: % direc = directory % opt = wildcat % Output: % fn = a cell with all filenames under direc and with opt % dn = a cell with all directory names under direc and with opt % For example, getfnames('19990910','*.jpg'); % Set IS_PC according to your platform in ...
github
ashriram/FUSION-master
ncutcheckin.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/ncutcheckin.m
3,390
utf_8
3d9dbfa24cde4526127df20ffd158393
% function rec_num = ncutcheckin(fn,sdir,tdir) % Input: % fn = parameter file name, default = 'command_ncut.tex' % sdir = source dir for fn as well as data files % tdir = target dir to check in, both default = IMAGE_DIR % Output: % rec_num = the number of current parameter records % The imagefile_par.m i...
github
ashriram/FUSION-master
openfigure.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/openfigure.m
1,169
utf_8
1fe3dbb7915cfc7536139ebcd5af4b84
% function openfigure(m,n,caption,isnew) function h = openfigure(m,n,caption,isnew) if nargin<3, caption = ' '; end if nargin<4, isnew = 1; end if (m<=0 | n<=0) return; end if isnew, h = figure; colormap(gray); else h = gcf; end clf subplot('position',[0,0,0.1,0.1]); axis ...
github
ashriram/FUSION-master
getimage2.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/getimage2.m
1,033
utf_8
4b1329c267b6821233df65305e33d9af
% function f = getimage2(imagefile) returns a normalized intensity image. % If the file postfix is not given, then I will search any possible image file % under the IMAGE_DIR. % Stella X. Yu, March 1999 function f = getimage2(imagefile) if exist(imagefile)==2, g = {imagefile}; else g = {}; end glo...
github
ashriram/FUSION-master
dispimg.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/stella/dispimg.m
1,306
utf_8
ab241c5778bc45b7aff066131314a3fc
% function dispimg(g,fmt,lgd,cmap) display multiple images in one figure. % Input: % g = a cell and fmt is a 1x2 vector specifying the layout. % lgd = a string cell for the title of each image. % cmap = the colormap (default is the gray, -1 for the inverted gray). % ishori = a vector of 1/0 to display rea...
github
ashriram/FUSION-master
savepgm.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/TOOLBOX_calib/savepgm.m
447
utf_8
b8fe9ed33cbd68ea4b83271b431e3667
%SAVEPGM Write a PGM format file % % SAVEPGM(filename, im) % % Saves the specified image array in a binary (P5) format PGM image file. % % SEE ALSO: loadpgm % % Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab % Peter Corke 1994 function savepgm(fname, im) fid = fopen(fname, 'w'); [r,c] = size(...
github
ashriram/FUSION-master
loadinr.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/TOOLBOX_calib/loadinr.m
1,029
utf_8
ac39329cc5acba186f4c5ef4c62f3a33
%LOADINR Load an INRIMAGE format file % % LOADINR(filename, im) % % Load an INRIA image format file and return it as a matrix % % SEE ALSO: saveinr % % Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab % Peter Corke 1996 function im = loadinr(fname, im) fid = fopen(fname, 'r'); s = fgets(fid); ...
github
ashriram/FUSION-master
saveppm.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/TOOLBOX_calib/saveppm.m
722
utf_8
9904ad3d075a120ca32bd9c10e019512
%SAVEPPM Write a PPM format file % % SAVEPPM(filename, I) % % Saves the specified red, green and blue planes in a binary (P6) % format PPM image file. % % SEE ALSO: loadppm % % Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab % Peter Corke 1994 function saveppm(fname, I) I = double(I); if size(I,...
github
ashriram/FUSION-master
ginput3.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/TOOLBOX_calib/ginput3.m
6,340
utf_8
fe00d9c5f48e9d92f0d2f51ba3ec7a2a
function [out1,out2,out3] = ginput2(arg1) %GINPUT Graphical input from mouse. % [X,Y] = GINPUT(N) gets N points from the current axes and returns % the X- and Y-coordinates in length N vectors X and Y. The cursor % can be positioned using a mouse (or by using the Arrow Keys on some % systems). Data points a...
github
ashriram/FUSION-master
loadppm.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/TOOLBOX_calib/loadppm.m
2,195
utf_8
d10c6882d2fd376c02aa45b6f709d620
%LOADPPM Load a PPM image % % I = loadppm(filename) % % Returns a matrix containing the image loaded from the PPM format % file filename. Handles ASCII (P3) and binary (P6) PPM file formats. % % If the filename has no extension, and open fails, a '.ppm' and % '.pnm' extension will be tried. % % SEE ALSO: saveppm loadp...
github
ashriram/FUSION-master
saveinr.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/TOOLBOX_calib/saveinr.m
949
utf_8
a18df4fba021be006842fbc35166bc23
%SAVEINR Write an INRIMAGE format file % % SAVEINR(filename, im) % % Saves the specified image array in a INRIA image format file. % % SEE ALSO: loadinr % % Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab % Peter Corke 1996 function saveinr(fname, im) fid = fopen(fname, 'w'); [r,c] = size(im'); ...
github
ashriram/FUSION-master
loadpgm.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/toolbox_basic/TOOLBOX_calib/loadpgm.m
1,838
utf_8
6ec18330c2633d5519c72eb2e6fe963b
%LOADPGM Load a PGM image % % I = loadpgm(filename) % % Returns a matrix containing the image loaded from the PGM format % file filename. Handles ASCII (P2) and binary (P5) PGM file formats. % % If the filename has no extension, and open fails, a '.pgm' will % be appended. % % % Copyright (c) Peter Corke, 1999 Machin...
github
ashriram/FUSION-master
quadedgep2.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/MultiNcut/quadedgep2.m
5,686
utf_8
bd13f17991058601f439a128b1807df5
% function [xs,ys,gx,gy,par,threshold,mag,mage,g,FIe,FIo,mago] = quadedgep(I,par,threshold); % Input: % I = image % par = vector for 4 parameters % [number of filter orientations, number of scale, filter size, elongation] % To use default values, put 0. % threshold = threshold on edge strength ...
github
ashriram/FUSION-master
computeMultiW.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/MultiNcut/computeMultiW.m
6,932
utf_8
1d5ea18c0f7089917a030eabf1c5de29
%inputs : image, number of layers, distance defining the subgrid, the edge filter scales for each layer, radius for each layer, %edge variance for filter, shape of the neighbourhood layout ('square', 'star', 'cross'), sigma for intensity affinity, % sigma for distance influence in affinity, weight coefficients for Wp...
github
ashriram/FUSION-master
quickNcutHardBiais2.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/MultiNcut/quickNcutHardBiais2.m
5,869
utf_8
889a87dee040c006f6a7b8b13d67249c
% function [v,s] = quickNcutHardBiais(W,U,nbEigenValues,dataGraphCut) %ligne 35 : changement tim %[v,s] = ncut(W,nbEigenValues,[],offset); %devient : %[v,s] = tim_ncut_rapide(W,nbEigenValues,[],offset); %et eigs devient tim_eigs % Input: % W = affinity matrix % U = hard constraint matrix, could be a cell...
github
ashriram/FUSION-master
showmask.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/MultiNcut/showmask.m
1,345
utf_8
31da201fac0f7fbe83e1244e978a7bef
% function RGB=showmask(V,M,hue); % Input: % V = image % M = nonnegative mask % hue = a number in [0,1], red,yellow,green,cyan,...,red % a char, 'r','g','b','y','c','m' % or a matrix of the same size of image % eg. hue = mask1 * 0.7 + mask2 * 1; % % Output: % RGB = an...
github
ashriram/FUSION-master
harris.m
.m
FUSION-master/Workloads/sd-vbs/common/toolbox/ikkjin/harris.m
1,202
utf_8
11c8ccc181893e4f64481030a27839b0
% Sample code for detecting Harris corners, following % Brown et al, CVPR 2005 % by Alyosha Efros, so probably buggy... % slightly modified by ikkjin function [x,y,v] = harris(imrgb); [nr nc nb]=size(imrgb); if nb==3 im=rgb2gray(imrgb); else im=imrgb; end im = im2double(im); g1 = fspecial('gau...
github
ashriram/FUSION-master
photonPrintTiming.m
.m
FUSION-master/Workloads/sd-vbs/common/matlab/photonPrintTiming.m
242
utf_8
ea941090f7ca62e236e5418a74138d9c
%! _photonPrintTiming_NA_i2 function photonPrintTiming(elapsed) if(elapsed(2) == 0) fprintf(1,'Cycles elapsed\t\t- %u\n',elapsed(1)); else fprintf(1,'Cycles elapsed\t\t- %u%\u\n',elapsed(2),elapsed(1)); end end
github
ashriram/FUSION-master
randn.m
.m
FUSION-master/Workloads/sd-vbs/common/matlab/randn.m
359
utf_8
555636fd9e64ec12e32a75c4fffe996e
%! _randn_f2_i1i1 function retRand = randn(m,n) retRand = ones(m,n); for i=1:m for j=1:n w = 10; while(w>=1.0) x1 = 2.0 * rand(1,1) - 1.0; x2 = 2.0 * rand(1,1) - 1.0; w = x1*x1 + x2*x2; end w = sqrt((-2.0*log(w))/w); retRa...
github
ashriram/FUSION-master
photonReportTiming.m
.m
FUSION-master/Workloads/sd-vbs/common/matlab/photonReportTiming.m
219
utf_8
cc1ed57058645356e7b7571ca35bc616
%! _photonReportTiming_i2_i2i2 function elapsed = photonReportTiming(startCycles, endCycles) elapsed = zeros(1,2); elapsed(1) = endCycles(1) - startCycles(1); elapsed(2) = endCycles(2) - startCycles(2); end
github
ashriram/FUSION-master
photonPrintTiming.m
.m
FUSION-master/Workloads/sd-vbs/common/matlab/timingFuncs/photonPrintTiming.m
87
utf_8
9cf0781a56436c483cb79e418a16f74b
%! _photonPrintTiming_NA_i2 function photonPrintTiming(elapsed) disp(elapsed); end
github
ashriram/FUSION-master
photonReportTiming.m
.m
FUSION-master/Workloads/sd-vbs/common/matlab/timingFuncs/photonReportTiming.m
219
utf_8
cc1ed57058645356e7b7571ca35bc616
%! _photonReportTiming_i2_i2i2 function elapsed = photonReportTiming(startCycles, endCycles) elapsed = zeros(1,2); elapsed(1) = endCycles(1) - startCycles(1); elapsed(2) = endCycles(2) - startCycles(2); end
github
ashriram/FUSION-master
harris.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/stitch/src/matlab/harris.m
1,038
utf_8
9a347ea08665e1cfbf46d44561e969ce
% Sample code for detecting Harris corners, following % Brown et al, CVPR 2005 % by Alyosha Efros, so probably buggy... function [x,y,v] = harris(im, dataDir); g1 = [1,4,6,4,1; 4,16,24,16,4;6,24,36,24,6;4,16,24,16,4;1,4,6,4,1]/256; g2 = [1,2,1;2,4,2;1,2,1]/16; img1 = conv2(im,g1,'same'); % blur image with ...
github
ashriram/FUSION-master
getDisparity.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/disparity/src/matlab/getDisparity.m
1,492
utf_8
2af67b3db0ce54fe04bada165f87303e
function [retDisparity retSAD minSAD]=getDisparity(Ileft, Iright, win_sz, max_shift) Ileft=double(Ileft); Iright=double(Iright); [nr,nc,nb]=size(Ileft); retSAD=zeros(nr, nc, max_shift); if(win_sz > 1) half_win_sz=win_sz/2; IleftPadded=padarray(Ileft, [half_win_sz, half_win_sz]); IrightPadded=padarray(Irigh...
github
ashriram/FUSION-master
script_run_profile.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/multi_ncut/src/matlab/script_run_profile.m
1,545
utf_8
7e5c8be7d000d50e4c3a4ec2ca822d62
% MNcutDemo.m % created by song, 06/13/2005 % an exmaple of how to use and display MNcut function script_run_profile(dataDir, resultDir, type, common, toolDir) %% Input parameters if(nargin == 0) data_set='test'; end if(nargin <=2) imageSize = 100; end num_segs = 20; if(strcmp(type, 'test')) num_s...
github
ashriram/FUSION-master
gaussianss.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/sift/src/matlab/gaussianss.m
7,531
utf_8
091cc6763bd62cc24555388419026c3b
function SS = gaussianss(I,sigman,O,S,omin,smin,smax,sigma0) % GAUSSIANSS % SS = GAUSSIANSS(I,SIGMAN,O,S,OMIN,SMIN,SMAX,SIGMA0) returns the % Gaussian scale space of image I. Image I is assumed to be % pre-smoothed at level SIGMAN. O,S,OMIN,SMIN,SMAX,SIGMA0 are the % parameters of the scale space as explained i...
github
ashriram/FUSION-master
sift.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/sift/src/matlab/sift.m
3,127
utf_8
5868c80cda90be1970358c3f65700ad6
% Input: % I the input image, with pixel values normalize to lie betwen [0,1]. % % Output: % features a structure which contains the following fields: % pos an n*2 matrix containing the (x,y) coordinates of the keypoints % stored in rows. % scale an n*3 matrix with rows d...
github
ashriram/FUSION-master
plotsiftdescriptor.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/sift/src/matlab/plotsiftdescriptor.m
5,466
utf_8
65f208762b6abd63cf2fa092410c1256
function h=plotsiftdescriptor(d,f) % PLOTSIFTDESCRIPTOR Plot SIFT descriptor % PLOTSIFTDESCRIPTOR(D) plots the SIFT descriptors D, stored as % columns of the matrix D. D has the same format used by SIFT(). % % PLOTSIFTDESCRIPTOR(D,F) plots the SIFT descriptors warped to the % SIFT frames F, specified as colum...
github
ashriram/FUSION-master
sp3Filters.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/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/matlabPyrTools/reconSFpyrLevs.m
2,016
utf_8
ff83a4f3d2f0927dcaa8851535e6b20a
% RESDFT = reconSFpyrLevs(PYR,INDICES,LOGRAD,XRCOS,YRCOS,ANGLE,NBANDS,LEVS,BANDS) % % Recursive function for reconstructing levels of a steerable pyramid % representation. This is called by reconSFpyr, and is not usually % called directly. % Eero Simoncelli, 5/97. function resdft = reconSFpyrLevs(pyr,pind,log_rad,Xr...
github
ashriram/FUSION-master
rcosFn.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/rcosFn.m
1,122
utf_8
36283e0a34f1baf7ea2c5e6cb23aab89
% [X, Y] = rcosFn(WIDTH, POSITION, VALUES) % % Return a lookup table (suitable for use by INTERP1) % containing a "raised cosine" soft threshold function: % % Y = VALUES(1) + (VALUES(2)-VALUES(1)) * % cos^2( PI/2 * (X - POSITION + WIDTH)/WIDTH ) % % WIDTH is the width of the region over which the tra...
github
ashriram/FUSION-master
wpyrLev.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/wpyrLev.m
729
utf_8
77f309b76f98f3421e786fde4fe2d429
% [LEV,IND] = wpyrLev(PYR,INDICES,LEVEL) % % Access a level from a separable QMF/wavelet pyramid. % Return as an SxB matrix, B = number of bands, S = total size of a band. % Also returns an Bx2 matrix containing dimensions of the subbands. % Eero Simoncelli, 6/96. function [lev,ind] = wpyrLev(pyr,pind,level) if ((p...
github
ashriram/FUSION-master
binomialFilter.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/binomialFilter.m
309
utf_8
47b67219b2519bd65a435f3df318d41a
% KERNEL = binomialFilter(size) % % Returns a vector of binomial coefficients of order (size-1) . % Eero Simoncelli, 2/97. function [kernel] = binomialFilter(sz) if (sz < 2) error('size argument must be larger than 1'); end kernel = [0.5 0.5]'; for n=1:sz-2 kernel = conv([0.5 0.5]', kernel); end
github
ashriram/FUSION-master
cconv2.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/cconv2.m
1,325
utf_8
8e564b623ba5cebd51e585eac6c66ba8
% RES = CCONV2(MTX1, MTX2, CTR) % % Circular convolution of two matrices. Result will be of size of % LARGER vector. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % argument: % CTR origin % 0 DIM/2 (defaul...
github
ashriram/FUSION-master
reconSCFpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/reconSCFpyr.m
4,475
utf_8
a0a6a06af4b5c9f7aa195bb8188fc754
% RES = reconSCFpyr(PYR, INDICES, LEVS, BANDS, TWIDTH) % % The inverse of buildSCFpyr: Reconstruct image from its complex steerable pyramid representation, % in the Fourier domain. % % The image is reconstructed by forcing the complex subbands to be analytic % (zero on half of the 2D Fourier plane, as they are supossed...
github
ashriram/FUSION-master
buildSCFpyr.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/buildSCFpyr.m
2,713
utf_8
d94b4004138b50b6651511e8ba6ccb93
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSCFpyr(IM, HEIGHT, ORDER, TWIDTH) % % This is a modified version of buildSFpyr, that constructs a % complex-valued steerable pyramid using Hilbert-transform pairs % of filters. Note that the imaginary parts will *not* be steerable. % % To reconstruct from this representati...
github
ashriram/FUSION-master
showIm.m
.m
FUSION-master/Workloads/sd-vbs/benchmarks/texture_synthesis/src/matlabPyrTools/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/matlabPyrTools/pyrLow.m
287
utf_8
b3514ec06e2e106d7b61e534cac20a8e
% RES = pyrLow(PYR, INDICES) % % Access the lowpass subband from a pyramid % (gaussian, laplacian, QMF/wavelet, steerable). % Eero Simoncelli, 6/96. function res = pyrLow(pyr,pind) band = size(pind,1); res = reshape( pyr(pyrBandIndices(pind,band)), pind(band,1), pind(band,2) );