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
michaelcrawley/Processing_Codes-master
getfiles.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/getfiles.m
3,208
utf_8
a92568c31ff51428bbdb65a6c5d39aee
function [flist,src_dir,folders] = getfiles(condition,varargin) %[flist,src_dir,folders] = getfiles(condition,varargin) %Function returns list of files and folders (and source directory) based on %a given condition. %Inputs: % condition: conditional string on which returned files are % ...
github
michaelcrawley/Processing_Codes-master
gif_add_frame.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/gif_add_frame.m
1,885
utf_8
96936d7a622c9978087af8e3395a8536
% GIF_ADD_FRAME: adds a current figure snapshot to a gif animation % % SYNTAX % gif_add_frame(h,filename,fps,...) % % INPUT: % - h: handle to the axis that you want to take the snapshot from (use gca) % - filename: filename of gif to create or append frames to % - fps: the number of frame per secon...
github
michaelcrawley/Processing_Codes-master
format_ticks.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/format_ticks.m
17,358
utf_8
86786fceb9c2ff6c1422dc6d2a2434f9
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% BEGIN HEADER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ...
github
michaelcrawley/Processing_Codes-master
pdftops.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/pdftops.m
3,077
utf_8
8dff856e4b450072050d8aa571d1a08e
function varargout = pdftops(cmd) %PDFTOPS Calls a local pdftops executable with the input command % % Example: % [status result] = pdftops(cmd) % % Attempts to locate a pdftops executable, finally asking the user to % specify the directory pdftops was installed into. The resulting path is % stored for future refere...
github
michaelcrawley/Processing_Codes-master
crop_borders.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/crop_borders.m
1,669
utf_8
725f526e7270a9b417300035d8748a9c
%CROP_BORDERS Crop the borders of an image or stack of images % % [B, v] = crop_borders(A, bcol, [padding]) % %IN: % A - HxWxCxN stack of images. % bcol - Cx1 background colour vector. % padding - scalar indicating how many pixels padding to have. Default: 0. % %OUT: % B - JxKxCxN cropped stack of images. % ...
github
michaelcrawley/Processing_Codes-master
isolate_axes.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/isolate_axes.m
3,668
utf_8
e2dce471e433886fcb87f9dcb284a2cb
%ISOLATE_AXES Isolate the specified axes in a figure on their own % % Examples: % fh = isolate_axes(ah) % fh = isolate_axes(ah, vis) % % This function will create a new figure containing the axes/uipanels % specified, and also their associated legends and colorbars. The objects % specified must all be in the same f...
github
michaelcrawley/Processing_Codes-master
im2gif.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/im2gif.m
6,048
utf_8
5a7437140f8d013158a195de1e372737
%IM2GIF Convert a multiframe image to an animated GIF file % % Examples: % im2gif infile % im2gif infile outfile % im2gif(A, outfile) % im2gif(..., '-nocrop') % im2gif(..., '-nodither') % im2gif(..., '-ncolors', n) % im2gif(..., '-loops', n) % im2gif(..., '-delay', n) % % This function converts a mu...
github
michaelcrawley/Processing_Codes-master
read_write_entire_textfile.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/read_write_entire_textfile.m
924
utf_8
779e56972f5d9778c40dee98ddbd677e
%READ_WRITE_ENTIRE_TEXTFILE Read or write a whole text file to/from memory % % Read or write an entire text file to/from memory, without leaving the % file open if an error occurs. % % Reading: % fstrm = read_write_entire_textfile(fname) % Writing: % read_write_entire_textfile(fname, fstrm) % %IN: % fname - Pathn...
github
michaelcrawley/Processing_Codes-master
pdf2eps.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/pdf2eps.m
1,471
utf_8
a1f41f0c7713c73886a2323e53ed982b
%PDF2EPS Convert a pdf file to eps format using pdftops % % Examples: % pdf2eps source dest % % This function converts a pdf file to eps format. % % This function requires that you have pdftops, from the Xpdf suite of % functions, installed on your system. This can be downloaded from: % http://www.foolabs.com/xpdf ...
github
michaelcrawley/Processing_Codes-master
print2array.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/print2array.m
6,281
utf_8
46b35b8863d6bccad70ce01e005a8697
%PRINT2ARRAY Exports a figure to an image array % % Examples: % A = print2array % A = print2array(figure_handle) % A = print2array(figure_handle, resolution) % A = print2array(figure_handle, resolution, renderer) % [A bcol] = print2array(...) % % This function outputs a bitmap image of the given figure, at t...
github
michaelcrawley/Processing_Codes-master
append_pdfs.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/append_pdfs.m
2,010
utf_8
1034abde9642693c404671ff1c693a22
%APPEND_PDFS Appends/concatenates multiple PDF files % % Example: % append_pdfs(output, input1, input2, ...) % append_pdfs(output, input_list{:}) % append_pdfs test.pdf temp1.pdf temp2.pdf % % This function appends multiple PDF files to an existing PDF file, or % concatenates them into a PDF file if the output fi...
github
michaelcrawley/Processing_Codes-master
using_hg2.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/using_hg2.m
365
utf_8
6a7f56042fda1873d8225eb3ec1cc197
%USING_HG2 Determine if the HG2 graphics pipeline is used % % tf = using_hg2(fig) % %IN: % fig - handle to the figure in question. % %OUT: % tf - boolean indicating whether the HG2 graphics pipeline is being used % (true) or not (false). function tf = using_hg2(fig) try tf = ~graphicsversion(fig, 'han...
github
michaelcrawley/Processing_Codes-master
eps2pdf.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/eps2pdf.m
5,009
utf_8
5658b3d96232e138be7fd49693d88453
%EPS2PDF Convert an eps file to pdf format using ghostscript % % Examples: % eps2pdf source dest % eps2pdf(source, dest, crop) % eps2pdf(source, dest, crop, append) % eps2pdf(source, dest, crop, append, gray) % eps2pdf(source, dest, crop, append, gray, quality) % % This function converts an eps file to pdf f...
github
michaelcrawley/Processing_Codes-master
copyfig.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/copyfig.m
812
utf_8
b6b1fa9a9351df33ae0d42056c3df40a
%COPYFIG Create a copy of a figure, without changing the figure % % Examples: % fh_new = copyfig(fh_old) % % This function will create a copy of a figure, but not change the figure, % as copyobj sometimes does, e.g. by changing legends. % % IN: % fh_old - The handle of the figure to be copied. Default: gcf. % % OU...
github
michaelcrawley/Processing_Codes-master
user_string.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/user_string.m
2,460
utf_8
e8aa836a5140410546fceccb4cca47aa
%USER_STRING Get/set a user specific string % % Examples: % string = user_string(string_name) % saved = user_string(string_name, new_string) % % Function to get and set a string in a system or user specific file. This % enables, for example, system specific paths to binaries to be saved. % % IN: % string_name - ...
github
michaelcrawley/Processing_Codes-master
export_fig.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/export_fig.m
29,720
utf_8
923dcc1ad89f1381ee70abbf422b20a5
%EXPORT_FIG Exports figures suitable for publication % % Examples: % im = export_fig % [im alpha] = export_fig % export_fig filename % export_fig filename -format1 -format2 % export_fig ... -nocrop % export_fig ... -transparent % export_fig ... -native % export_fig ... -m<val> % export_fig ... -r<val...
github
michaelcrawley/Processing_Codes-master
ghostscript.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/ghostscript.m
4,974
utf_8
b0b8399fe97df80ca8c89744be6a7da0
%GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path % is stored for future reference. % % Once ...
github
michaelcrawley/Processing_Codes-master
fix_lines.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/export_fig/fix_lines.m
5,759
utf_8
3338572f35c4669b79cc3265892d35de
%FIX_LINES Improves the line style of eps files generated by print % % Examples: % fix_lines fname % fix_lines fname fname2 % fstrm_out = fixlines(fstrm_in) % % This function improves the style of lines in eps files generated by % MATLAB's print function, making them more similar to those seen on % screen. Grid ...
github
michaelcrawley/Processing_Codes-master
saveppt2.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/saveppt2/saveppt2.m
33,963
utf_8
964141b17291298bb21a3bbe265ff1ae
% SAVEPPT2 saves plots to PowerPoint. % SAVEPPT2(save_file,<additional parameters>) % Saves the current Matlab figure window or Simulink model window to a PowerPoint % file designated by save_file. If save_file is omitted, the user is prompted to enter % one via UIPUTFILE. If the path is omitted from filespec, the...
github
michaelcrawley/Processing_Codes-master
ezfft.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/ezyfit/ezfft.m
6,144
utf_8
ec0f79b7576b333f219274386191d1b7
function [w,e] = ezfft(varargin) %EZFFT Easy to use Power Spectrum % EZFFT(T,U) plots the power spectrum of the signal U(T) , where T is a % 'time' and U is a real signal (T can be considered as a space % coordinate as well). If T is a scalar, then it is interpreted as the % 'sampling time' of the signal U. I...
github
michaelcrawley/Processing_Codes-master
efmenu.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/ezyfit/efmenu.m
12,283
utf_8
80b66d94c189d6711bff7b97d7743ced
function efmenu(opt) %EFMENU Ezyfit menu % EFMENU adds or refreshes the Ezyfit menu for the current figure and % for all new figures. % EFMENU OFF removes the menu from all the figures and for all new % figures. % % If you want to always have the EzyFit menu in your figures, type % EFMENU INSTALL. This wi...
github
michaelcrawley/Processing_Codes-master
myginput.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/ezyfit/myginput.m
6,514
utf_8
b41d5ef88f16d866bd8415d9fc53b0a1
function [out1,out2,out3] = myginput(arg1,strpointertype) %MYGINPUT Graphical input from mouse with custum cursor pointer. % [X,Y] = MYGINPUT(N) gets N points from the current axes and returns % the X- and Y-coordinates in length N vectors X and Y. % % [X,Y] = MYGINPUT(N, POINTER) also specifies the cursor point...
github
michaelcrawley/Processing_Codes-master
selectdata.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/ezyfit/private/selectdata.m
36,731
utf_8
da7b675fc6b47cc93bf72801f3e30399
function [pointslist,xselect,yselect] = selectdata(varargin) % selectdata: graphical selection of data points on a plot using the mouse % usage: pointslist = selectdata % uses all default options % usage: pointslist = selectdata(prop1,val1,prop2,val2,...) % % SELECTDATA allows the user to select data points on ...
github
michaelcrawley/Processing_Codes-master
uninstall_emd.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/uninstall_emd.m
2,128
utf_8
f1f4135f0d97101408694ab4f544d561
% UNINSTALL_EMD.M uninstall the EMD package % reverts the modifications made by INSTALL_EMD: % removes the following locations from Matlab's path: % <EMD_BASEDIR> % <EMD_BASEDIR>/utils % <EMD_BASEDIR>/examples/NSIP2003 % <EMD_BASEDIR>/examples/SPL2007 % % where <EMD_BASEDIR> is the directory containing uninstall_emd.m ...
github
michaelcrawley/Processing_Codes-master
install_emd.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/install_emd.m
1,562
utf_8
edba7a4d545fe9776097f92bd1ed273e
%INSTALL_EMD.M install the EMD package % add the following locations to Matlab's path: % <EMD_BASEDIR> % <EMD_BASEDIR>/emd % <EMD_BASEDIR>/utils % <EMD_BASEDIR>/examples/NSIP2003 % <EMD_BASEDIR>/examples/SPL2007 % % where <EMD_BASEDIR> is the directory containing install_emd.m % % and compiles the C codes % % IMPORTANT...
github
michaelcrawley/Processing_Codes-master
cemd_visu.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/cemd_visu.m
2,823
utf_8
5c2f5edbd41b0b0d83980d462bebf66c
%CEMD_VISU visualization of bivariate/complex EMD % % inputs : - x : complex analyzed signal % - t : time instants % - imf : set of complex IMFs % - i (optional) : figure number for display % % % The slider on the right hand side of the figure controls the direction on % which the co...
github
michaelcrawley/Processing_Codes-master
disp_hhs.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/disp_hhs.m
1,583
utf_8
dd6aace2bcf71483ee9329121ce38729
%DISP_HHS display Hilbert-Huang spectrum % % DISP_HHS(im,t,inf) % displays in a new figure the spectrum contained in matrix "im" % (amplitudes in dB). % % inputs: - im: image matrix (e.g., output of "toimage") % - t (optional): time instants (e.g., output of "toimage") % - inf (optional): -dynamic ...
github
michaelcrawley/Processing_Codes-master
plotc.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/plotc.m
3,243
utf_8
9e878242623f66dbe1f061cca4f876b9
%PLOTC plots a complex signal in 2D projection with variable projection angle. %The angle can be modified at any time using the slider: % slider at bottom: angle=0 the projection is the real part of the signal % slider at 1/4: angle=pi/2 the projection is the imaginary part of the signal % slider at top: angle=2pi sam...
github
michaelcrawley/Processing_Codes-master
findtag.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/findtag.m
1,044
utf_8
7454c7afdd89ce124034fa98264cb74e
%FINDTAG locate objects with specific tag % % FINDTAG(STR) % Locate objects with specific tag STR % % FINDTAG(OBJECT_HANDLES,STR) % Restricts the search to objects listed in objhandles and their descendants. % % FINDTAG(...,'-depth',d) % The depth argument d controls how many levels under the handles in objhandles %...
github
michaelcrawley/Processing_Codes-master
emd_visu.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/emd_visu.m
3,216
utf_8
b14b325a26ce79c2d4107444497d6eee
%EMD_VISU visualization of EMD and partial reconstructions (fine to coarse & coarse to fine) % % inputs : - x : analyzed signal, if x is complex cemd_visu is called % - t : time instants % - imf : output of emd.m % - i (optional) : figure number for display % % outputs : - f2c : fin...
github
michaelcrawley/Processing_Codes-master
boundary_conditions_emd.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/boundary_conditions_emd.m
3,546
utf_8
bde5088d1c5d540f2f15221e7130a453
%BOUNDARY_CONDITIONS_EMD extends an extrema set to limit edge effects on the interpolations % % % [TMIN,TMAX,ZMIN,ZMAX] = BOUNDARY_CONDITIONS_EMD(INDMIN,INDMAX,T,X,Z,NBSYM) % % inputs: % - INDMIN, INDMAX: indices of minima and maxima in the real signal X % - T: sampling times % - X: real signal in which INDMIN ...
github
michaelcrawley/Processing_Codes-master
plot3c.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/plot3c.m
798
utf_8
18cd6c9a1aa6a3a04e75a7a24b35a431
%PLOT3C plots a complex signal in 3D % % use: same as plot % % % See also % plotc (another type of visualization of complex signals) % % G. Rilling, last modification 12.2006 % gabriel.rilling@ens-lyon.fr function varargout = plot3c(varargin) % if first arument is a handle to some axes object if nargin >=2 && isscal...
github
michaelcrawley/Processing_Codes-master
cemd_disp.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/cemd_disp.m
2,547
utf_8
bcfc94ab889ec17222f5ac9d56aeebdd
%CEMD_DISP displays complex envelope curves and the corresponding tube envelope % % %CEMD_DISP(T,X,ENV,MODE) % % inputs: % - T: time instants % - X: analyzed signal (complex) % - ENV: matrix returned by cenvelope.m Each line is an envelope curve % - MODE: 'render' -> 3D rendering of the tube en...
github
michaelcrawley/Processing_Codes-master
extr.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/extr.m
1,938
utf_8
b255b6a18f2f3ebfbd1655dfddc2017b
%EXTR finds extrema and zero-crossings % % [indmin, indmax, indzer] = EXTR(x,t) % % inputs : - x : analyzed signal % - t (optional) : sampling times, default 1:length(x) % % outputs : - indmin = indices of minima % - indmax = indices of maxima % - indzer = indices of zero-crossings % % See...
github
michaelcrawley/Processing_Codes-master
addtag.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/addtag.m
791
utf_8
7753834d0f8132b47b2646f9a79bde33
%ADDTAG add a tag to an object % % ADDTAG(OBJ_HANDLE,STR) % % Adds the tag STR to the object referrenced by OBJ_HANDLE % When OBJ_HANDLE is an array of handles, STR is added to all corresponding % objects. % % Rem: In order for this to work properly, the object's tag field must be a string % containing keywords (or...
github
michaelcrawley/Processing_Codes-master
dirstretch.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/dirstretch.m
1,248
utf_8
ac3b11257589d22ec8b3705e588d54a2
%DIRSTRETCH variable directional stretching of a complex vector % % DIRSTRETCH(X,D) where X is a complex vector and D a complex scalar stretches X by abs(D) along the direction arg(D) % if D is a vector the same size as X, then X(i) is stretched by abs(D(i)) along the direction arf(D(i)) % DIRSTRETCH(X,DIR,COEF) whe...
github
michaelcrawley/Processing_Codes-master
hhspectrum.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/hhspectrum.m
1,445
utf_8
a2e3601a6b074460a64f0ee5c73e4a9c
%HHSPECTRUM compute Hilbert-Huang spectrum % % [A,f,tt] = HHSPECTRUM(x,t,l,aff) computes the Hilbert-Huang spectrum % % inputs: % - x : matrix with one signal per row % - t : time instants % - l : estimation parameter for instfreq (integer >=1 (1:default)) % - aff : if 1, displays the computation evolut...
github
michaelcrawley/Processing_Codes-master
hastag.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/hastag.m
659
utf_8
98c2d59c6e9ddf7de584ddba67f6ec51
%HASTAG tests if an object has a specific tag % % BOOL = HASTAG(OBJ_HANDLE,STR) % % Tests if the object corresponding to OBJ_HANDLE has the tag STR. % When OBJ_HANDLE is an array of handles HASTAG returns a logical array of % the same size. % % Rem: In order for this to work properly, the object's tag field must be ...
github
michaelcrawley/Processing_Codes-master
rmtag.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/rmtag.m
820
utf_8
c8cca7ed559bb8d9f89e3f8e3b34fc72
%RMTAG removes tag from object % % RMTAG(OBJ_HANDLE,STR) % % Removes the tag STR from the object referrenced by OBJ_HANDLE % When OBJ_HANDLE is an array of handles, the tag is removed from all % corresponding objects. % % Rem: In order for this to work properly, the object's tag field must be a string % containing ...
github
michaelcrawley/Processing_Codes-master
toimage.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/utils/toimage.m
3,003
utf_8
82d44ccfe64bb1323e00c307e16baa67
%TOIMAGE transforms a spectrum made of 1D functions in an 2D image % % [im,tt,ff] = TOIMAGE(A,f,t,splx,sply) transforms a spectrum made % of 1D functions (e.g., output of "hhspectrum") in an 2D image % % inputs : - A : amplitudes of modes (1 mode per row of A) % - f : instantaneous frequencies % ...
github
michaelcrawley/Processing_Codes-master
make_emdc.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/EMDs/make_emdc.m
1,361
utf_8
403408e17b436e17594d8a2bdd27ce6a
%MAKE_EMDC Compiles the C codes for Empirical Mode Decomposition % % Note: The compilation can fail on some systems (e.g. MacOS) if Matlab cannot find the C compiler. % In this case, you should either install a C compiler or check Matlab configuration. % The configuration files for compilation are mexopts.sh (Unix / M...
github
michaelcrawley/Processing_Codes-master
bivariate_EMD_principle.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/examples/SPL2007/bivariate_EMD_principle.m
3,936
utf_8
8ce99e0c1f645e2df06b921e64862397
%bivariate_EMD_principle.m %shows principle of the bivariate EMD extension %reproduces Fig. 1 in "Bivariate Empirical Mode Decomposition", G. Rilling, %P. Flandrin, P. Goncalves and J. M. Lilly, IEEE Signal Processing Letters % %G. Rilling 3/2007 email: gabriel.rilling@ens-lyon.fr function bivariate_EMD_principle N =...
github
michaelcrawley/Processing_Codes-master
dirstretch.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/examples/SPL2007/dirstretch.m
614
utf_8
6bd1c732deb536d078fbca3cc50b8d6e
%DIRSTRETCH variable directional stretching of a complex vector function y=dirstretch(x,dir,coef) if nargin == 3 if ~isreal(dir) && all(abs(dir) ~= 1) warning('non unit modulus of direction argument ignored') end if isreal(dir) && any(abs(dir) ~= 1) dir = exp(i*dir); end if any(dir==0) error('inv...
github
michaelcrawley/Processing_Codes-master
triangular_signal.m
.m
Processing_Codes-master/MATLAB/General Use/Utilities/package_emd/examples/NSIP2003/triangular_signal.m
378
utf_8
902a9084037dff3a52b19cd810a75795
% TRIANG.M % % P. Flandrin, Mar. 13, 2003 % % generates a triangular waveform % % inputs : - N : # of data samples % - p : period % % output : - x : signal function x = triang(N,p); K = ceil(N/(2*p-2)); w = zeros(1,K*(2*p-2)+1); rp = linspace(-1,1,p); rn = linspace(1,-1,p); r = [rp rn(2:p)]; for k = ...
github
michaelcrawley/Processing_Codes-master
FFN_MBP.m
.m
Processing_Codes-master/MATLAB/General Use/ANN/FFN_MBP.m
10,409
utf_8
7e61dd49f69d1c40aa3fce171702a5e7
function [nneFun, MSE, weights, phi,eta,params] = FFN_MBP(xt,d,arch,varargin) %This code serves as a engine for a modified feed-forward, %back-propagation artificial neural network, which uses the Delta-Bar-Delta %learning rule with gradient descent. Per the results shown in Haykin, only %batch-processing is allowed. ...
github
michaelcrawley/Processing_Codes-master
WN_BP.m
.m
Processing_Codes-master/MATLAB/General Use/ANN/WN_BP.m
9,548
utf_8
eff1141c8aa0e8aefc01c977a9690654
function [nneFun, MSE, weights] = WN_BP(xt,d,arch,varargin) %This code implements a multidimensional wavelet network per Alexandridis %2013 (Neural Networks). Learning is performed using the standard %backpropagation algorithm in batch mode. The network is fully connected, %and includes linear connections from the inp...
github
michaelcrawley/Processing_Codes-master
FFN_BP.m
.m
Processing_Codes-master/MATLAB/General Use/ANN/FFN_BP.m
10,515
utf_8
7a02aee0a924cd0f65c1472cd3be4840
function [nneFun, MSE, weights, phi, params] = FFN_BP(xt,d,arch,varargin) %This code serves as a engine for a static feed-forward, %back-propagation artificial neural network. The network is defined to be %fully connected (this cannot be changed by user). %Last updated on 2013-03-02 by Michael Crawley. %Inputs: % ...
github
michaelcrawley/Processing_Codes-master
FFN_PSO.m
.m
Processing_Codes-master/MATLAB/General Use/ANN/FFN_PSO.m
9,285
utf_8
361f4a6973302c265ceeb1ff3e26affb
function [nneFun, MSE, weights] = FFN_PSO(xt,d,arch,varargin) %This code constructs a static, fully-connected feed-forward neural %network. Learning is accomplished solely using particle swarm %optimization. The user must open a worker pool prior to calling this %function if parallelization is desired. %Last updated on...
github
michaelcrawley/Processing_Codes-master
FFN_PSOG.m
.m
Processing_Codes-master/MATLAB/General Use/ANN/FFN_PSOG.m
11,670
utf_8
43a2b30eb4d844356d2abbd47fae5e83
function [nneFun, MSE, weights] = FFN_PSOG(xt,d,arch,varargin) %This code constructs a static, fully-connected feed-forward neural %network. Learning is accomplished using particle swarm %optimization with gradient descent. The user must open a worker pool prior %to calling this function if parallelization is desired....
github
michaelcrawley/Processing_Codes-master
ExtWN_PSO.m
.m
Processing_Codes-master/MATLAB/General Use/ANN/ExtWN_PSO.m
10,910
utf_8
f2058c003cee51b827f4f6944a7ff979
function [nneFun, MSE, w] = ExtWN_PSO(xt,d,arch,varargin) %This code constructs a static, fully-connected wavelet network. %Learning is accomplished solely using particle swarm %optimization. The user must open a worker pool prior to calling this %function if parallelization is desired. %Last updated on 2015-04-21 by ...
github
michaelcrawley/Processing_Codes-master
multiWaitbar.m
.m
Processing_Codes-master/MATLAB/General Use/waitbar/multiWaitbar.m
16,943
utf_8
329b2e5f4a6cb38ff640171dd117ade3
function multiWaitbar( label, varargin ) %multiWaitbar: add, remove or update an entry on the multi waitbar % % multiWaitbar(LABEL,VALUE) adds a waitbar for the specified label, or % if it already exists updates the value. LABEL must be a string and % VALUE a number between zero and one or the string 'Close' to r...
github
michaelcrawley/Processing_Codes-master
CWT1Dl.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/CWT1Dl.m
1,821
utf_8
5a98732bfd585ed4ed870d18ad3f1acf
function [wave,freq,s] = CWT1Dl(sig,dt,fmax,fmin,J,mother,param) %Computes 1-Dimensional Continuous Wavelet Transform using a standard for-loop Convolution method. %Inputs: % x: signal (N,1) % dt: period between samples % fmax: maximum Fourier frequency of interest %...
github
michaelcrawley/Processing_Codes-master
iCWT1D.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/iCWT1D.m
1,963
utf_8
7684af209926f8dac672cc2f26938752
function [xn] = iCWT1D(wave,scale,omegak,mother,param) %Computes inverse 1-Dimensional Continuous Wavelet Transform using Fourier %method. This algorithm performs the integration over scale, rather than %over translation (due to cone-of-influence effects near the boundaries). %Inputs: % wave: wavelet c...
github
michaelcrawley/Processing_Codes-master
CWT1Dc.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/CWT1Dc.m
1,694
utf_8
46e0ebda19d8f444196f92dbeaab55d0
function [wave,freq,s] = CWT1Dc(sig,dt,fmax,fmin,J,mother,param) %Computes 1-Dimensional Continuous Wavelet Transform using Matlab's built-in Convolution method. %Inputs: % x: signal (N,1) % dt: period between samples % fmax: maximum Fourier frequency of interest % ...
github
michaelcrawley/Processing_Codes-master
CWT1Dlnrspc.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/CWT1Dlnrspc.m
2,403
utf_8
725b691c4e95dc1df13eb93b3be27a66
function [wave,freq,s,omegak] = CWT1Dlnrspc(x,dt,fmax,fmin,J,mother,param) %Computes 1-Dimensional Continuous Wavelet Transform using Fourier method. %For this code, the scales are linearly spaced, specifically for use with %POD (so I don't need to apply a weighting function to the grid). %Inputs: % x: ...
github
michaelcrawley/Processing_Codes-master
CWT1D.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/CWT1D.m
2,225
utf_8
775eb5a26496258662a99ce7aa4c1b4e
function [wave,freq,s,omegak] = CWT1D(x,dt,fmax,fmin,J,mother,param) %Computes 1-Dimensional Continuous Wavelet Transform using Fourier method. %Inputs: % x: signal (N,1) % dt: period between samples % fmax: maximum Fourier frequency of interest % fmin: ...
github
michaelcrawley/Processing_Codes-master
spectrum.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/spectrum.m
13,263
utf_8
5b5df172751851ed1f1f118f129ea9b0
function [Spec,f] = spectrum(varargin) %SPECTRUM Power spectrum estimate of one or two data sequences. % P=SPECTRUM(X,NFFT,NOVERLAP,WIND) estimates the Power Spectral Density of % signal vector X using Welch's averaged periodogram method. The signal X % is divided into overlapping sections, each of which is detre...
github
michaelcrawley/Processing_Codes-master
getlength.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Utilities/getlength.m
638
utf_8
320d2a4b6bcb9556c70ea5aefc3ff7d4
% method of class @signal % % INPUT VALUES: % % RETURN VALUE: % % % (c) 2003, University of Cambridge, Medical Research Council % Stefan Bleeck (stefan@bleeck.de) % http://www.mrc-cbu.cam.ac.uk/cnbh/aimmanual % $Date: 2003/01/17 16:57:43 $ % $Revision: 1.3 $ function res =getlength(sig) % returns the length i...
github
michaelcrawley/Processing_Codes-master
spectrum.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Browsers/One-D/spectrum.m
10,815
utf_8
2465d1a507f9362e9c0f5bda718e3f80
function [Spec,f] = spectrum(varargin) %SPECTRUM Power spectrum estimate of one or two data sequences. % SPECTRUM has been replaced by SPECTRUM.WELCH. SPECTRUM still works but % may be removed in the future. Use SPECTRUM.WELCH (or its functional % form PWELCH) instead. Type help SPECTRUM/WELCH for details. % % ...
github
michaelcrawley/Processing_Codes-master
def_signal.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Browsers/One-D/def_signal.m
822
utf_8
3d205982ba291fa4a1490bbc0d3c5032
% def_signal -- Called by WLBrowser % Usage % def_signal % function x = def_signal(i) do_global; global nsig; signal_name = Signals_entries( i,: ); while signal_name( length(signal_name) ) == ' ' signal_name( length(signal_name) ) = []; end if ~exist('nsig') | nsig == [] | nsig == 0 nsig = 2^8; end ...
github
michaelcrawley/Processing_Codes-master
def_data.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Browsers/One-D/def_data.m
881
utf_8
dd6c7b1f269745e207c2f0b62b9125e0
% def_data -- Called by WLBrowser % Usage % def_data % % Description % Load WaveLab datasets % function x = def_data(i) do_global data_name = Data____entries( i+1, : ); while data_name( length(data_name) ) == ' ' data_name( length(data_name) ) = []; end if i < 7 x = ReadSignal(data_name); signal_name...
github
michaelcrawley/Processing_Codes-master
AdaptDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/Adapt/AdaptDemo.m
11,368
utf_8
180001bdfcbd44bcd54b8cf9120dc5f0
%******************************************************** function AdaptDemo(action) %Usage: AdaptDemo %Description: Demo for paper Adapting to Unknown Smoothness via Wavelet %Shrinkage %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperName...
github
michaelcrawley/Processing_Codes-master
CSpinDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/SpinCycle/CSpinDemo.m
11,707
utf_8
bc47e62d03b6b2a5bf926f80cd1ea94f
%******************************************************** function CSpinDemo(action) %Usage: CSpinDemo %Description: Demo for paper Translation-Invariant DeNoisin %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperName global MakeFigureFileP...
github
michaelcrawley/Processing_Codes-master
CorrelDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/Correl/CorrelDemo.m
11,790
utf_8
4516b88cdbb65bba9a28c6ca6586aef4
%******************************************************** function CorrelDemo(action) %Usage: CorrelDemo %Description: Demo for paper Wavelet Threshold Estimators for Data with %Correlated Noise %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global ...
github
michaelcrawley/Processing_Codes-master
fbm.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/Correl/fbm.m
424
utf_8
c9c458f14c5dbce240a77e172b3993c4
%function x1 = fbm( alpha = 0.9, m = 4096) function x1 = fbm( alpha, m) x = randn(1,m); l = m/2 ; freq = [ 1 1:l (l-1):-1:1 ]; xft = fft(x); xft(1) = 0; x1ft = xft .* (freq .^ (- alpha/2 ) ); x1 = real( ifft(x1ft) ); % % Part of Wavelab Version 850 % Built Tue Jan 3 13:20:41 EST 2006 % This is Copyr...
github
michaelcrawley/Processing_Codes-master
MIPTDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/MIPT/MIPTDemo.m
12,091
utf_8
54726d4620c4a3533989f6cf610f2cc9
%******************************************************** function MIPTDemo(action) %Usage: MIPTDemo %Description: Demo for paper Robust Wavelet Transforms Based on %Median-Interpolation %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperNam...
github
michaelcrawley/Processing_Codes-master
MESDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/MinEntSeg/MESDemo.m
12,121
utf_8
10c38e6038829379a0e22866c7656a78
%******************************************************** function MESDemo(action) %Usage: MESDemo %Description: Demo for paper Minimum Entropy Segmentation %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperName global MakeFigureFilePrefix ...
github
michaelcrawley/Processing_Codes-master
RiskDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/RiskAnalysis/RiskDemo.m
11,626
utf_8
2a233fe2f8463d8c4804916c4bba3f16
%******************************************************** function RiskDemo(action) %Usage: RiskDemo %Description: Demo for paper EXACT RISK ANALYSIS OF WAVELET REGRESSION %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperName global MakeFi...
github
michaelcrawley/Processing_Codes-master
SCDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/ShortCourse/SCDemo.m
11,628
utf_8
2cfe2fd8ea91b4f70eb21adfc3f1722c
%******************************************************** function SCDemo(action) %Usage: SCDemo %Description: Demo for Short Course %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperName global MakeFigureFilePrefix global IfNewWindow globa...
github
michaelcrawley/Processing_Codes-master
IdealDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/Ideal/IdealDemo.m
11,748
utf_8
83efbf856831b0ab48fa8309e404072e
%******************************************************** function IdealDemo(action) %Usage: IdealDemo %Description: Demo for paper Ideal Spatial Adaptation via Wavelet Shrinkage %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperName global...
github
michaelcrawley/Processing_Codes-master
BlockyDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/Blocky/BlockyDemo.m
11,446
utf_8
eca745f65c369f6596e97b9b376401b3
%******************************************************** function BockyDemo(action) %Usage: BlockyDemo %Description: Demo for paper Smooth Wavelet Decompositions with Blocky %Coefficient Kernels %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global...
github
michaelcrawley/Processing_Codes-master
VdLDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/VillardDeLans/VdLDemo.m
11,692
utf_8
de5771598e9111e4276abf5d9395a4ce
%******************************************************** function VdLDemo(action) %Usage: VdLDemo %Description: Demo for paper WaveLab and Reproducible Research %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperName global MakeFigureFilePr...
github
michaelcrawley/Processing_Codes-master
TourDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/Tour/TourDemo.m
11,732
utf_8
81919bc6b7d0842b12e02c40a909e027
%******************************************************** function TourDemo(action) %Usage: TourDemo %Description: Demo for paper Wavelet Shrinkage and W.V.D.: A Ten-Minute %Tour %Date: August 1,2005 %******************************************************** global plotOffset global LastFigureNo global PaperName global ...
github
michaelcrawley/Processing_Codes-master
AsympDemo.m
.m
Processing_Codes-master/MATLAB/General Use/Wavelets/Wavelab850/Papers/Asymp/AsympDemo.m
11,354
utf_8
81c6f0550a19608ea51b03a62b22b423
%******************************************************** function AsympDemo(action) %Usage: AsympDemo %Description: Demo for paper Wavelet Shrinkage: Asymptopia? %Date: August 1, 2005 %******************************************************** global plotOffset global LastFigureNo global PaperName global MakeFigureFileP...
github
michaelcrawley/Processing_Codes-master
NumericalDerivative.m
.m
Processing_Codes-master/MATLAB/General Use/Numerical Derivative/NumericalDerivative.m
4,608
utf_8
a84eaee0d4a92b30cd82c24ad04a7b0f
function [deriv] = NumericalDerivative(Dorder, Horder, h, phi,varargin) %Numerically derivate matrix given constant step size %Code Version: 3.2 @ 2011-02-23 %This is not complete; DRP scheme is only available for central %differencing %Inputs: % Dorder: Derivative Order % Horder: Number...
github
michaelcrawley/Processing_Codes-master
mNumericalDerivative.m
.m
Processing_Codes-master/MATLAB/General Use/Numerical Derivative/mNumericalDerivative.m
4,655
utf_8
580697730f8eb02eaf2cd85e7a7f2c35
function [coefm] = mNumericalDerivative(Dorder, Horder, h, N, varargin) %Generate matrix to numerically derivate matrix given constant step size %Code Version: 1.1 @ 2014-09-10 %This is not complete; DRP scheme is only available for central %differencing %Inputs: % Dorder: Derivative Order ...
github
michaelcrawley/Processing_Codes-master
CondAverageImg.m
.m
Processing_Codes-master/MATLAB/General Use/CorrelationExamples/CondAverageImg.m
4,218
utf_8
568f3e592f392bec5792cd5ff3b7c1bf
function[R] = CondAverageImg(src_dir,flist,cHi,cWi,backimg,Rthreshold) %Inputs: % src_dir: source directory for images % flist: list of files for conditional-averaging (cell array) % cHi & cWi: indices for correlation window (Height and Width) % backimg: background image (full file name) % Rthres...
github
michaelcrawley/Processing_Codes-master
readLeCroyWaveJetWfm.m
.m
Processing_Codes-master/MATLAB/General Use/Other DAQ/readLeCroyWaveJetWfm.m
14,909
utf_8
c58353bcab887148242d410a0625b023
function [ varargout ] = readLeCroyWaveJetWfm( varargin ) %readLeCroyWaveJetWfm - Read binary waveform (.wfm) files as saved by % LeCroy WaveJet oscilloscopes. % % readLeCroyWaveJetWfm( filename ) % % Loads the specified file, shows some information about the file, % and displays the waveform(s). % % [ data ] = rea...
github
michaelcrawley/Processing_Codes-master
dlmfit.m
.m
Processing_Codes-master/MATLAB/General Use/Kalman filtering/dlmtbx/dlmfit.m
9,293
utf_8
cbbf3715be73ddbf26e534bd928b26d4
function out = dlmfit(y,s,wdiag,x0,C0, X, options) %DLMFIT Fit DLM time series model % Fits dlm time series model with local level, trend, seasonal, and proxies % out = dlmfit(y,s,wdiag,x0,C0, X, options) % Input: % y time series, n*p % s obs uncertainty, n*p or 1*1 % w sqrt of first diagonal entries of the model erro...
github
michaelcrawley/Processing_Codes-master
meannan.m
.m
Processing_Codes-master/MATLAB/General Use/Kalman filtering/dlmtbx/meannan.m
659
utf_8
39818015bad9cb2775051a8cecde31cd
function y=meannan(x,x2,w1) %MEANNAN mean ignoring NaNs % meannan(x) mean of columns of x % meannan(oldmean, x, oldweight) updates oldmean with x % $Revision: 1.2 $ $Date: 2011/06/22 13:28:01 $ if nargin == 1 [m,n] = size(x); if m==1 x = x'; m = n; n = 1; end y = zeros(1,n); for i=1:n y(...
github
michaelcrawley/Processing_Codes-master
hyperpriorupdate.m
.m
Processing_Codes-master/MATLAB/General Use/Kalman filtering/mcmcstat/hyperpriorupdate.m
2,388
utf_8
060350d56a39c54c40ed800abb3e210f
function [mu,sig,parrow] = hyperpriorupdate(theta,thetamu,thetasig,params) % hyperpriorupdate - default hyper prior update function for mcmcrun % assumes: % theta ~ N(mu,sig2) % mu ~ N(mu0, tau20) % sig2 ~ invchi(n0, sig20) % needs in params structure % nhpar, number of parameter sets with hyper priors % ind, ...
github
michaelcrawley/Processing_Codes-master
mcmcpred.m
.m
Processing_Codes-master/MATLAB/General Use/Kalman filtering/mcmcstat/mcmcpred.m
2,739
utf_8
f948293406f519ad29f44ca85dd1676b
function out=mcmcpred(results,chain,s2chain,data,modelfun,nsample,varargin) %MCMCPRED predictive calculations from the mcmcrun chain % out = mcmcpred(results,chain,s2chain,data,modelfun,nsample,varargin) % Calls modelfun(data,theta,varargin{:}) % or modelfun(data{ibatch},theta(local),varargin{:}) in case the % data has...
github
michaelcrawley/Processing_Codes-master
gammar.m
.m
Processing_Codes-master/MATLAB/General Use/Kalman filtering/mcmcstat/gammar.m
1,482
utf_8
af30d501ac9be0ca7ec9619a40461ede
function y=gammar(m,n,a,b) %GAMMAR random deviates from gamma distribution % GAMMAR(M,N,A,B) returns a M*N matrix of random deviates from the Gamma % distribution with shape parameter A and scale parameter B: % % p(x|A,B) = B^-A/gamma(A)*x^(A-1)*exp(-x/B) % Marko Laine <marko.laine@fmi.fi> % $Revision: 1.6 $ $Date...
github
michaelcrawley/Processing_Codes-master
showparams.m
.m
Processing_Codes-master/MATLAB/General Use/Kalman filtering/mcmcstat/showparams.m
1,578
utf_8
b1a765fe5bcb988ace22d1d8fd682adb
function showparams(param,nbatch,texfile) %SHOWPARAMS mcmc utility % $Revision: $ $Date: $ if nargin<2 nbatch=1; end if nargin <3 texfile=''; end [names,value,parind,local,upper,lower,thetamu,thetasig] = ... openparstruct(param,nbatch); fprintf('Optimizing these parameters:\nname start [min,max] N(mu,s^...
github
michaelcrawley/Processing_Codes-master
mcmcrun.m
.m
Processing_Codes-master/MATLAB/General Use/Kalman filtering/mcmcstat/mcmcrun.m
29,186
utf_8
e00036ca2788e0055a617b944241038e
function [results,chain,s2chain,sschain, hchain]=mcmcrun(model,data,params,options,res) %MCMCRUN Metropolis-Hastings MCMC simulation for nonlinear Gaussian models % properties: % multiple y-columns, sigma2-sampling, adaptation, % Gaussian prior, parameter limits, delayed rejection, dram % % [RESULTS,CHAIN,S2CHAIN,SSC...
github
michaelcrawley/Processing_Codes-master
gammaqf.m
.m
Processing_Codes-master/MATLAB/General Use/Kalman filtering/mcmcstat/gammaqf.m
1,065
utf_8
78413cdc729a77767c9c6dc3633a32ff
function y=gammaqf(p,a,b) % GAMMAQF inverse of Gamma distribution function % GAMMAQF(p,alpha,beta) % Marko Laine <marko.laine@fmi.fi> % $Revision: 1.5 $ $Date: 2012/09/27 11:47:36 $ if nargin<3, b=1; end if ~isunix & exist('distribs') == 3 % mex file version y = distribs('gammain',p,a).*b; return end y=zeros(si...
github
michaelcrawley/Processing_Codes-master
perform_windowed_fourier_transform.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/perform_windowed_fourier_transform.m
6,202
utf_8
bbb87e7a70bc93ae51e18e2691849448
function y = perform_windowed_fourier_transform(x,w,q,n, options) % perform_windowed_fourier_transform - compute a local Fourier transform % % Forward transform: % MF = perform_windowed_fourier_transform(M,w,q,n, options); % Backward transform: % M = perform_windowed_fourier_transform(MF,w,q,n, options); % % w ...
github
michaelcrawley/Processing_Codes-master
load_hdr.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/load_hdr.m
4,928
utf_8
cdf17b3681f4c6902ed0f7de2ad31f7d
function [img, fileinfo] = read_hdr(filename) % load_hdr - loading a radiance RBGE file. % % [img, fileinfo] = read_rle_rgbe(filename); % % Written by Lawrence A. Taplin (taplin@cis.rit.edu) % % Based loosely on the c-code RGBE implementation written by Bruce Walters % http://www.graphics.cornell.edu/~bjw/rgbe.html ...
github
michaelcrawley/Processing_Codes-master
load_image.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/load_image.m
20,769
utf_8
1e7385317f656bdec8213321748edab7
function M = load_image(type, n, options) % load_image - load benchmark images. % % M = load_image(name, n, options); % % name can be: % Synthetic images: % 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line', % 'line_vertical', 'line_horiz...
github
michaelcrawley/Processing_Codes-master
grab_inpainting_mask.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/grab_inpainting_mask.m
3,717
utf_8
c160d95ddbbe80a15f290993fd6bac1a
function [U,point_list] = grab_inpainting_mask(M, options) % grab_inpainting_mask - create a mask from user input % % U = grab_inpainting_mask(M, options); % % Select set of point in an image (useful to select a region for % inpainting). The set of point is U==Inf. % % options.r is the radius for selection (de...
github
michaelcrawley/Processing_Codes-master
change_color_mode.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/change_color_mode.m
7,483
utf_8
184fcadc594ac09e3b2a2086820890bb
function [M,ColorP] = change_color_mode(M,dir,options) % change_color_mode - change of color representation % % M = change_color_mode(M,dir,options); % % switch between RGB and another color mode. % % options.color_mode can be: % 'rgb' (no change), 'hsv', 'ycbcr', 'pca' % % For PCA you should proceed like th...
github
michaelcrawley/Processing_Codes-master
compute_ssim_index.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/compute_ssim_index.m
18,516
utf_8
8f8a1253f9cbb32e75b2c552827cfa1f
function [mssim, ssim_map] = compute_ssim_index(img1, img2, K, window, L) %======================================================================== %SSIM Index, Version 1.0 %Copyright(c) 2003 Zhou Wang %All Rights Reserved. % %The author is with Howard Hughes Medical Institute, and Laboratory %for Computational Vision...
github
michaelcrawley/Processing_Codes-master
perform_tv_hilbert_projection.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/perform_tv_hilbert_projection.m
3,727
utf_8
f96d06428439140dc4dc1f0182805595
function [u,v,px,py] = perform_tv_hilbert_projection(f,kernel,lam,options) % Aujol & Chambolle projection for solving TV-K regularization % % [u,v,px,py] = perform_tv_hilbert_projection(f,kernel,lam,options); % % Solve the image separation problem : % u = argmin_u |f-u|_K^2 + lam*|u|_TV % % f = u+v % u i...
github
michaelcrawley/Processing_Codes-master
perform_tv_correction.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/perform_tv_correction.m
985
utf_8
e9637dd038c9c859b0c6dedd242fecae
function y = perform_tv_correction(x,T) % perform_tv_correction - perform correction of the image to that it minimizes the TV norm. % % y = perform_tv_correction(x,T); % % Perform correction using thresholding of haar wavelet coefficients on 1 % scale. % % Copyright (c) 2006 Gabriel Peyre n = size(x,1); Jmin ...
github
michaelcrawley/Processing_Codes-master
compute_periodic_poisson.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/compute_periodic_poisson.m
855
utf_8
52f67b893134bee2f5ec735f55733e1f
function G = compute_periodic_poisson(d, symmetrize) % compute_periodic_poisson - solve poisson equation % % G = compute_periodic_poisson(d,symmetrize); % % Solve % Delta(G) = d % with periodic boundary condition. % G has zero mean. % % Set symmetrize=1 (default 0) if the data divergence d is not peri...
github
michaelcrawley/Processing_Codes-master
perform_quincunx_interpolation.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/perform_quincunx_interpolation.m
1,537
utf_8
6d747ffd41f26abbb6804e53fb57335d
function Mi = perform_quincunx_interpolation(M,vm) % perform_quincunx_interpolation - interpolate data on a quincunx grid % % Mi = perform_quincunx_interpolation(M,vm); % % M is a 2D image where only pixels M(i+j,i-j) are available % (checkboard subsampling) % % vm is 2, 4 or 6 % % Copyright (c) 2008 Gabri...
github
michaelcrawley/Processing_Codes-master
perform_windowed_dct_transform.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/perform_windowed_dct_transform.m
2,282
utf_8
9c456075e56465427a4442c1e5c9afc8
function y = perform_windowed_dct_transform(x,w,q,n, options) % perform_windowed_dct_transform - compute a local DCT transform % % Forward transform: % MF = perform_windowed_dct_transform(M,w,q,n, options); % Backward transform: % M = perform_windowed_dct_transform(MF,w,q,n, options); % % w is the width of the ...
github
michaelcrawley/Processing_Codes-master
perform_windowed_dct4_transform.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/perform_windowed_dct4_transform.m
14,528
utf_8
14fb4b703d9af03093b3a48e38dceded
function y = perform_windowed_dct4_transform(x, w, dir, options) % perform_windowed_dct4_transform - orthogonal local DCT % % y = perform_windowed_dct4_transform(x, w, dir, options); % % This is an orthogonal transform, with x2 overlap, % note that the low frequencies are removes if options.remove_lowfreq = 1. % ...
github
michaelcrawley/Processing_Codes-master
perform_dct_transform.m
.m
Processing_Codes-master/MATLAB/General Use/toolbox_image/toolbox_image/toolbox/perform_dct_transform.m
7,750
utf_8
07f7ce84cf4f6dfc91ad645a17eab05c
function y = perform_dct_transform(x,dir) % perform_dct_transform - discrete cosine transform % % y = perform_dct_transform(x,dir); % % Copyright (c) 2006 Gabriel Peyre if size(x,1)==1 || size(x,2)==1 % 1D transform if dir==1 y = dct(x); else y = idct(x); end else if dir==1 ...
github
michaelcrawley/Processing_Codes-master
POD2d.m
.m
Processing_Codes-master/MATLAB/General Use/POD/Ani/POD2d.m
1,214
utf_8
25a495a2ce66ee5c04c4d20d43f6486d
function [phi, lambda] = POD2d(U) % L = length(flist); % % %read in first file to get sizing information, initialize variables % data = readimx([src_dir filesep flist{1}]); % [~,~,u,v] = showimx(data); % [M N] = size(u); % U = zeros(2*M*N,L); % U(:,1) = [u(:); v(:)]; % % %read...