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
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
UGM_Infer_MeanField.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/UGM/infer/UGM_Infer_MeanField.m
1,956
utf_8
1a659d358023ab95cf73d2942da59c9f
function [nodeBel, edgeBel, logZ] = UGM_Infer_MF(nodePot,edgePot,edgeStruct) if edgeStruct.useMex [nodeBel,edgeBel,logZ] = UGM_Infer_MFC(nodePot,edgePot,int32(edgeStruct.edgeEnds),int32(edgeStruct.nStates),int32(edgeStruct.V),int32(edgeStruct.E),edgeStruct.maxIter); else [nodeBel,edgeBel,logZ] = Infer_MF(nodeP...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
UGM_makeCRFEdgePotentials.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/UGM/train/UGM_makeCRFEdgePotentials.m
2,061
utf_8
d92fcedfcf5f8b4897a7fd7a073c91d6
function [edgePot] = UGM_makeEdgePotentials(Xedge,v,edgeStruct,infoStruct) % [edgePot] = UGM_makeEdgePotentials(Xedge,v,edgeStruct,infoStruct) % % Makes pairwise class potentials for each node % % Xedge(1,feature,edge) % v(feature,variable,variable) - edge weights % nStates - number of States per node % % edge...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
UGM_makeCRFNodePotentials.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/UGM/train/UGM_makeCRFNodePotentials.m
1,096
utf_8
9ba31d7e5a0c2c1075e59aeba48b41dd
function [nodePot] = UGM_makeCRFnodePotentials(X,w,edgeStruct,infoStruct) % [nodePot] = UGM_makeCRFnodePotentials(X,w,edgeStruct,infoStruct) % Makes class potentials for each node % % X(1,feature,node) % w(feature,variable,variable) - node weights % nStates - number of states per node % % nodePot(node,class) ...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
UGM_CRFLoss.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/UGM/train/UGM_CRFLoss.m
5,408
utf_8
c78c4a90e6e0470ad59081dab6b49b4d
function [f,g] = UGM_loss(wv,X,Xedge,y,edgeStruct,infoStruct,inferFunc,varargin) % wv(variable) % X(instance,feature,node) % Xedge(instance,feature,edge) % y(instance,node) % edgeStruct % inferFunc % varargin - additional parameters of inferFunc showErr = 0; [nInstances,nNodeFeatures,nNodes] = size(X); nEdgeFeatures ...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
UGM_MRFLoss.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/UGM/train/UGM_MRFLoss.m
5,252
utf_8
dd0fdaa52e758a4d99c50e16e1efe602
function [f,g] = UGM_MRFLoss(wv,y,edgeStruct,infoStruct,inferFunc,varargin) % [f,g] = UGM_MRFLoss(wv,y,edgeStruct,infoStruct,inferFunc,varargin) nNodeFeatures = 1; nEdgeFeatures = 1; [nInstances,nNodes] = size(y); nFeatures = nNodeFeatures+nEdgeFeatures; edgeEnds = edgeStruct.edgeEnds; nEdges = size(edgeEnds,1); tieNo...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
UGM_CRFpseudoLoss.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/UGM/train/UGM_CRFpseudoLoss.m
9,857
utf_8
4f2c7be5956dc41f8c3d0ffeb9e3cb83
function [f,g,H] = UGM_loss(wv,X,Xedge,y,edgeStruct,infoStruct) % wv(variable) % X(instance,feature,node) % Xedge(instance,feature,edge) % y(instance,node) % edgeStruct % inferFunc % tied % Form weights [w,v] = UGM_splitWeights(wv,infoStruct); % Make Potentials nodePot = UGM_makeCRFNodePotentials(X,w,edgeStruct,infoS...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
UGM_Decode_ICM.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/UGM/decode/UGM_Decode_ICM.m
1,503
utf_8
cd4313f1c39a3352242ef7e499b04336
function [y] = UGM_Decode_ICM(nodePot, edgePot, edgeStruct,y) % INPUT % nodePot(node,class) % edgePot(class,class,edge) where e is referenced by V,E (must be the same % between feature engine and inference engine) % % OUTPUT % nodeLabel(node) if nargin < 4 [junk y] = max(nodePot,[],2); end if edgeSt...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
UGM_Decode_Exact.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/UGM/decode/UGM_Decode_Exact.m
1,354
utf_8
982b1e4d88dc1958161d17ca9abc1743
function [nodeLabels] = UGM_Infer_Exact(nodePot, edgePot, edgeStruct) % INPUT % nodePot(node,class) % edgePot(class,class,edge) where e is referenced by V,E (must be the same % between feature engine and inference engine) % % OUTPUT % nodeLabel(node) assert(prod(edgeStruct.nStates) < 50000000,'Brute Force Ex...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
WolfeLineSearch.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/minFunc/WolfeLineSearch.m
11,395
utf_8
3d2acf1139093fe11df95ccdf888aab8
function [t,f_new,g_new,funEvals,H] = WolfeLineSearch(... x,t,d,f,g,gtd,c1,c2,LS,maxLS,tolX,debug,doPlot,saveHessianComp,funObj,varargin) % % Bracketing Line Search to Satisfy Wolfe Conditions % % Inputs: % x: starting location % t: initial step size % d: descent direction % f: function value at st...
github
ColumbiaDVMM/Weak-attributes-for-large-scale-image-retrieval-master
minFunc_processInputOptions.m
.m
Weak-attributes-for-large-scale-image-retrieval-master/UGM/minFunc/minFunc_processInputOptions.m
3,704
utf_8
dc74c67d849970de7f16c873fcf155bc
function [verbose,verboseI,debug,doPlot,maxFunEvals,maxIter,tolFun,tolX,method,... corrections,c1,c2,LS_init,LS,cgSolve,qnUpdate,cgUpdate,initialHessType,... HessianModify,Fref,useComplex,numDiff,LS_saveHessianComp,... DerivativeCheck,Damped,HvFunc,bbType,cycle,... HessianIter,outputFcn,useMex,use...
github
dbindel/matfeap-master
feapstart.m
.m
matfeap-master/mlab/feapstart.m
9,171
utf_8
e102bfd4fb20856b20b216ca58908106
% feap = feapstart(fname, params) % % Start a FEAP process using an input file given by ifname. % The optional param argument may be used to set parameters % for the input deck; for example, if a parameter 'n' is used % in a deck 'Ifoo', then % % param.n = 10 % p = feapstart('Ifoo', param) % % will give n a default...
github
dbindel/matfeap-master
feapjsock.m
.m
matfeap-master/mlab/jsock/feapjsock.m
1,707
utf_8
a6ed7d43c262995619f84c9aac082663
function feapjsock; % @T ----------------------------------- % \section{Interface to the Java socket helper} % % The Java socket helper class is a thin layer that lets us use % Java stream descriptors and binary I/O routines. We use it to % establish socket connections, send an recieve lines of data, % etc. % % The ...
github
dbindel/matfeap-master
feaps.m
.m
matfeap-master/mlab/web/feaps.m
4,407
utf_8
1cd3632e19fb2425b5a1c1dca1081e1b
% @T =========================== % \section {Communication setup} % % These routines are used to specify which of the three communication modes % available to MATFEAP should be used. % % @q =========================== % @T ------------------------------------------------------------------- % \subsection{Setting up pip...
github
dbindel/matfeap-master
feaputil.m
.m
matfeap-master/mlab/web/feaputil.m
3,327
utf_8
cb927dcc4eeae6458daad5401522e6b7
function feaputil; % @T =========================== % \section {Utility commands} % % These are low-level routines that should generally be invisible % to the user. % % @q =========================== % @T -------------------------------------------- % \subsection{Waiting for synchronization} % % The [[feapsync]] comm...
github
dbindel/matfeap-master
feapgetset.m
.m
matfeap-master/mlab/web/feapgetset.m
12,849
utf_8
e8d076c7e3aca7936adb76e7f2757911
function feapgetset; % @T =========================== % \section {Basic getter / setter interfaces} % % These are the MATLAB interface routines that get and set FEAP % matrices, arrays, and scalars. % % @q =========================== % @T -------------------------------------------- % \subsection{Getting scalar valu...
github
dbindel/matfeap-master
feapuser.m
.m
matfeap-master/mlab/web/feapuser.m
2,227
utf_8
af1bd30707611e6be7a5eae37954cff2
function feapuser; % @T =========================== % \section {User commands} % % These are the main routines in the interface used directly by MATFEAP % users. % % @q =========================== % @T -------------------------------------------- % \subsection{Invoking FEAP macro commands} % % The [[feapcmd]] routine...
github
seisgo/EllipseFit-master
funcEllipseFit_RBrown.m
.m
EllipseFit-master/matlab/funcEllipseFit_RBrown.m
12,164
utf_8
6a7540c4ea13825a717addd48ae2051a
function [z, a, b, alpha] = funcEllipseFit_RBrown(x, varargin) %FITELLIPSE least squares fit of ellipse to 2D data % http://www.mathworks.com/matlabcentral/fileexchange/15125-fitellipse-m % [Z, A, B, ALPHA] = FITELLIPSE(X) % Fit an ellipse to the 2D points in the 2xN array X. The ellipse is % returned i...
github
seisgo/EllipseFit-master
funcEllipseFit_nlinfit.m
.m
EllipseFit-master/matlab/funcEllipseFit_nlinfit.m
639
utf_8
634fb60894d1e5bdc3cd6eacd6c48943
% Ellipse Fitting using nlinfit function and adopting conic section as % nonlinear regression model function. % This function can be extended to other conic section fitting, like % circle, parabola and hyperbola. function [modelF,fitCoef]=funcEllipseFit_nlinfit(inMtrx) % Ellipse Function modelF=@(fitCoef,inMtrx)fitCoef...
github
steventhornton/Newton-Fractal-master
int2rgb.m
.m
Newton-Fractal-master/src/int2rgb.m
2,257
utf_8
9e22059a3b65e4dc93a94404eac4f2fd
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 8/2016 % % ...
github
steventhornton/Newton-Fractal-master
iteration.m
.m
Newton-Fractal-master/src/iteration.m
4,046
utf_8
492f16e63e4dec5240a65553b6e34de5
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 7/2016 % % ...
github
steventhornton/Newton-Fractal-master
newtonFractal.m
.m
Newton-Fractal-master/src/newtonFractal.m
5,645
utf_8
ee449dd78b9840fb3a5c6513cbf226c2
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 7/2016 % % ...
github
steventhornton/Newton-Fractal-master
halleyFractal.m
.m
Newton-Fractal-master/src/halleyFractal.m
6,042
utf_8
20638b73c41f44527c542e99dae833bd
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 7/2016 % % ...
github
steventhornton/Newton-Fractal-master
makeMesh.m
.m
Newton-Fractal-master/src/makeMesh.m
3,029
utf_8
f1c98219c37f7ac66e320201aaa063fb
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 6/2016 % % ...
github
steventhornton/Newton-Fractal-master
makeFractal.m
.m
Newton-Fractal-master/src/makeFractal.m
11,534
utf_8
54266b6d79424ced869e294678607c3c
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 7/2016 % % ...
github
steventhornton/Newton-Fractal-master
double2rgb.m
.m
Newton-Fractal-master/src/double2rgb.m
3,569
utf_8
75aba98dfb19353cb6cf384524f0853b
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Oct. 25/2016 % % ...
github
steventhornton/Newton-Fractal-master
processOptions.m
.m
Newton-Fractal-master/src/processOptions.m
5,969
utf_8
ebb6ff0e936e57b2a3db455cd095d5d2
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 6/2016 % % ...
github
steventhornton/Newton-Fractal-master
newtonsMethod.m
.m
Newton-Fractal-master/src/methods/newtonsMethod.m
2,528
utf_8
75fb2f00ad6efd1ae22fc5f06868030d
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 7/2016 % % ...
github
steventhornton/Newton-Fractal-master
halleysMethod.m
.m
Newton-Fractal-master/src/methods/halleysMethod.m
2,638
utf_8
2bc7c532b5459cd6ee000921beaece95
% ----------------------------------------------------------------------- % % AUTHOR .... Steven E. Thornton (Copyright (c) 2016) % % EMAIL ..... sthornt7@uwo.ca % % UPDATED ... Sept. 7/2016 % % ...
github
DevLibraries/SmallLibraries-master
analyze_leafsize_stats.m
.m
SmallLibraries-master/Permissive/nanoflann/perf-tests/analyze_leafsize_stats.m
1,502
utf_8
5bcc7168b358ccc2a7e4345373d29a85
function [] = analyze_leafsize_stats() % Compute the stats from the result files of performance tests wrt % the max. leaf size close all; %D=load('LEAF_STATS.txt'); %D=load('LEAF_STATS_DOUBLE.txt'); D=load('LEAF_STATS_DATASET.txt'); MAXs = unique(D(:,2)); COLs = {'k','b','r','g'}; % C...
github
DevLibraries/SmallLibraries-master
analyze_stats.m
.m
SmallLibraries-master/Permissive/nanoflann/perf-tests/analyze_stats.m
2,369
utf_8
b6d766f7cf55dee127cf6bb3085f2776
function [] = analyze_stats() % Compute the stats from the result files of flann & nanoflann performance tests % close all; [Nsf, Tf_M, Tf_STD] = analyze_file('stats_flann.txt'); [Nsnf, Tnf_M, Tnf_STD]= analyze_file('stats_nanoflann.txt'); titles={'Convert into Matrix<>', 'Build index', 'One 3D...
github
hazirbas/light-field-toolbox-master
LFCalRectifyLF.m
.m
light-field-toolbox-master/LFToolbox0.4/LFCalRectifyLF.m
4,859
utf_8
58ca494191153d4b172d9f8d2408ca25
% LFCalRectifyLF - rectify a light field using a calibrated camera model, called as part of LFUtilDecodeLytroFolder % % Usage: % [LF, RectOptions] = LFCalRectifyLF( LF, CalInfo, RectOptions ) % [LF, RectOptions] = LFCalRectifyLF( LF, CalInfo ) % % This function is called by LFUtilDecodeLytroFolder to rectify a ...
github
hazirbas/light-field-toolbox-master
LFWriteMetadata.m
.m
light-field-toolbox-master/LFToolbox0.4/LFWriteMetadata.m
10,271
utf_8
18ac683694e04562a3249c7226bdde52
% LFWriteMetadata - saves variables to a file in JSON format % % Usage: % LFWriteMetadata( JsonFileFname, DataToSave ) % % This function saves data to a JSON file. % % Based on JSONlab by Qianqian Fang, % http://www.mathworks.com.au/matlabcentral/fileexchange/33381-jsonlab-a-toolbox-to-encodedecode-json-files-in-m...
github
hazirbas/light-field-toolbox-master
LFBuild4DFreqDualFan.m
.m
light-field-toolbox-master/LFToolbox0.4/LFBuild4DFreqDualFan.m
4,955
utf_8
b925c1d38066faa9f44d0c51b8c68d91
% LFBuild4DFreqDualFan - construct a 4D dual-fan passband filter in the frequency domain % % Usage: % % [H, FiltOptions] = LFBuild4DFreqDualFan( LFSize, Slope, BW, FiltOptions ) % H = LFBuild4DFreqDualFan( LFSize, Slope, BW ) % % This file constructs a real-valued magnitude response in 4D, for which the pas...
github
hazirbas/light-field-toolbox-master
LFBuild4DFreqHypercone.m
.m
light-field-toolbox-master/LFToolbox0.4/LFBuild4DFreqHypercone.m
4,501
utf_8
256d28a026711e06809d334c23db0633
% LFBuild4DFreqHypercone - construct a 4D hypercone passband filter in the frequency domain % % Usage: % % [H, FiltOptions] = LFBuild4DFreqHypercone( LFSize, Slope, BW, FiltOptions ) % H = LFBuild4DFreqHypercone( LFSize, Slope, BW ) % % This file constructs a real-valued magnitude response in 4D, for which ...
github
hazirbas/light-field-toolbox-master
LFUtilProcessWhiteImages.m
.m
light-field-toolbox-master/LFToolbox0.4/LFUtilProcessWhiteImages.m
12,517
utf_8
82b7183214df46d50702d31ad904317c
% LFUtilProcessWhiteImages - process a folder/tree of white images by fitting a grid model to each % % Usage: % % LFUtilProcessWhiteImages % LFUtilProcessWhiteImages( WhiteImagesPath ) % LFUtilProcessWhiteImages( WhiteImagesPath, FileOptions, GridModelOptions ) % LFUtilProcessWhiteImages( WhiteImagesPat...
github
hazirbas/light-field-toolbox-master
LFCalDispEstPoses.m
.m
light-field-toolbox-master/LFToolbox0.4/LFCalDispEstPoses.m
2,604
utf_8
1f7d8e57212bcbb143d2c597e59038f3
% LFCalDispEstPoses - Visualize pose estimates associated with a calibration info file % % Usage: % LFCalDispEstPoses( InputPath, CalOptions, DrawFrameSizeMult, BaseColour ) % % Draws a set of frames, one for each camera pose, in the colour defined by BaseColour. All inputs % except InputPath are optional. Pass an...
github
hazirbas/light-field-toolbox-master
LFMatlabPathSetup.m
.m
light-field-toolbox-master/LFToolbox0.4/LFMatlabPathSetup.m
629
utf_8
09c19ebacb36d9e2d70336dd7f62bc9c
% LFMatlabPathSetup - convenience function to add the light field toolbox to matlab's path % % It may be convenient to add this to your startup.m file. % Part of LF Toolbox v0.4 released 12-Feb-2015 % Copyright (c) 2013-2015 Donald G. Dansereau function LFMatlabPathSetup % Find the path to this script, and use it as...
github
hazirbas/light-field-toolbox-master
LFReadLFP.m
.m
light-field-toolbox-master/LFToolbox0.4/LFReadLFP.m
9,456
utf_8
12a412c0c96c3bd388028f4eb975749f
% LFReadLFP - Load a lytro LFP / LFR file % % Usage: % [LFP, ExtraSections] = LFReadLFP( Fname ) % % The Lytro LFP is a container format and may contain one of several types of data. The file extension varies based on % the source of the files, with exported files, on-camera files and image library files variousl...
github
hazirbas/light-field-toolbox-master
LFBuild4DFreqHyperfan.m
.m
light-field-toolbox-master/LFToolbox0.4/LFBuild4DFreqHyperfan.m
4,676
utf_8
2bec28d4e5b0d48494ee457844595957
% LFBuild4DFreqHyperfan - construct a 4D hyperfan passband filter in the frequency domain % % Usage: % % [H, FiltOptions] = LFBuild4DFreqHyperfan( LFSize, Slope, BW, FiltOptions ) % H = LFBuild4DFreqHyperfan( LFSize, Slope, BW ) % % This file constructs a real-valued magnitude response in 4D, for which the ...
github
hazirbas/light-field-toolbox-master
LFUtilProcessCalibrations.m
.m
light-field-toolbox-master/LFToolbox0.4/LFUtilProcessCalibrations.m
3,086
utf_8
b7ed374da00985b749186101dccbfc70
% LFUtilProcessCalibrations - process a folder/tree of camera calibrations % % Usage: % % LFUtilProcessCalibrations % LFUtilProcessCalibrations( CalibrationsPath ) % LFUtilProcessCalibrations( CalibrationsPath, FileOptions ) % LFUtilProcessCalibrations( [], FileOptions ) % % All parameters are optional...
github
hazirbas/light-field-toolbox-master
LFUtilExtractLFPThumbs.m
.m
light-field-toolbox-master/LFToolbox0.4/LFUtilExtractLFPThumbs.m
2,528
utf_8
bcf530be1d01e6c00268cf5bbf398fde
% LFUtilExtractLFPThumbs - extract thumbnails from LFP files and write to disk % % Usage: % % LFUtilExtractLFPThumbs % LFUtilExtractLFPThumbs( InputPath ) % % This extracts the thumbnail preview and focal stack images from LFR and LFP files, and is useful in providing a % preview, e.g. when copying files direct...
github
hazirbas/light-field-toolbox-master
LFFilt2DFFT.m
.m
light-field-toolbox-master/LFToolbox0.4/LFFilt2DFFT.m
4,344
utf_8
94c37a901f7a9a1271d469d23be351cc
% LFFilt2DFFT - Apply a 2D frequency-domain filter to a 4D light field using the FFT % % Usage: % % [LF, FiltOptions] = LFFilt2DFFT( LF, H, FiltDims, FiltOptions ) % LF = LFFilt2DFFT( LF, H, FiltDims ) % % % This filter works on 2D slices of the input light field, applying the 2D filter H to each in turn. It ...
github
hazirbas/light-field-toolbox-master
LFBuild2DFreqLine.m
.m
light-field-toolbox-master/LFToolbox0.4/LFBuild2DFreqLine.m
4,431
utf_8
0dcc452b6b957958b7243b285453790b
% LFBuild2DFreqLine - construct a 2D line passband filter in the frequency domain % % Usage: % % [H, FiltOptions] = LFBuild2DFreqLine( LFSize, Slope, BW, FiltOptions ) % H = LFBuild2DFreqLine( LFSize, Slope, BW ) % % This file constructs a real-valued magnitude response in 2D, for which the passband is a li...
github
hazirbas/light-field-toolbox-master
LFColourCorrect.m
.m
light-field-toolbox-master/LFToolbox0.4/LFColourCorrect.m
1,999
utf_8
07c213f4b7fbcaa5ad2fae5e30c82edf
% LFColourCorrect - applies a colour correction matrix, balance vector, and gamma, called by LFUtilDecodeLytroFolder % % Usage: % LF = LFColourCorrect( LF, ColMatrix, ColBalance, Gamma ) % % This implementation deals with saturated input pixels by aggressively saturating output pixels. % % Inputs : % % LF : ...
github
hazirbas/light-field-toolbox-master
LFBuild4DFreqPlane.m
.m
light-field-toolbox-master/LFToolbox0.4/LFBuild4DFreqPlane.m
4,768
utf_8
44b35c86e926ed95961fbf34e0872ffb
% LFBuild4DFreqPlane - construct a 4D planar passband filter in the frequency domain % % Usage: % % [H, FiltOptions] = LFBuild4DFreqPlane( LFSize, Slope, BW, FiltOptions ) % H = LFBuild4DFreqPlane( LFSize, Slope, BW ) % % This file constructs a real-valued magnitude response in 4D, for which the passband is...
github
hazirbas/light-field-toolbox-master
LFFindFilesRecursive.m
.m
light-field-toolbox-master/LFToolbox0.4/LFFindFilesRecursive.m
3,789
utf_8
d7e26a587e0dd5460fb2f59371802d2e
% LFFindFilesRecursive - Recursively searches a folder for files matching one or more patterns % % Usage: % % [AllFiles, BasePath, FolderList, PerFolderFiles] = LFFindFilesRecursive( InputPath ) % % Inputs: % % InputPath: the folder to recursively search % % Outputs: % % Allfiles : A list of all file...
github
hazirbas/light-field-toolbox-master
LFDispMousePan.m
.m
light-field-toolbox-master/LFToolbox0.4/LFDispMousePan.m
3,147
utf_8
19664da990653623f36d25770af65dec
% LFDispMousePan - visualize a 4D light field using the mouse to pan through two dimensions % % Usage: % FigureHandle = LFDispMousePan( LF ) % FigureHandle = LFDispMousePan( LF, ScaleFactor ) % % A figure is set up for high-performance display, with the tag 'LFDisplay'. Subsequent calls to % this function an...
github
hazirbas/light-field-toolbox-master
LFReadGantryArray.m
.m
light-field-toolbox-master/LFToolbox0.4/LFReadGantryArray.m
4,902
utf_8
80dc406ff9c8008ff8aa0877a0fcdb0f
% LFReadGantryArray - load gantry-style light field, e.g. the Stanford light fields at lightfield.stanford.edu % % Usage: % % LF = LFReadGantryArray( InputPath, DecodeOptions ) % % To use, download and unzip an image archive from the Stanford light field archive, and pass this function the path to % the unzipped ...
github
hazirbas/light-field-toolbox-master
LFRecenterIntrinsics.m
.m
light-field-toolbox-master/LFToolbox0.4/LFRecenterIntrinsics.m
599
utf_8
95e4073ad162508fcaf1705124873fc5
% LFRecenterIntrinsics - Recenter a light field intrinsic matrix % % Usage: % H = LFRecenterIntrinsics( H, LFSize ) % % The recentering works by forcing the central sample in a light field of LFSize samples to % correspond to the ray [s,t,u,v] = 0. Note that 1-based indexing is assumed in [i,j,k,l]. % Part of LF T...
github
hazirbas/light-field-toolbox-master
LFCalDispRectIntrinsics.m
.m
light-field-toolbox-master/LFToolbox0.4/LFCalDispRectIntrinsics.m
3,804
utf_8
9881daba2d9060eef02a39e1c9ac81dd
% LFCalDispRectIntrinsics - Visualize sampling pattern resulting from a prescribed intrinsic matrix % % Usage: % RectOptions = LFCalDispRectIntrinsics( LF, LFMetadata, RectOptions, PaintColour ) % % During rectification, the matrix RectOptions.RectCamIntrinsicsH determines which subset of the light field gets % sa...
github
hazirbas/light-field-toolbox-master
LFFiltShiftSum.m
.m
light-field-toolbox-master/LFToolbox0.4/LFFiltShiftSum.m
5,666
utf_8
08be7f6f27c502a03f85f49912ae8183
% LFFiltShiftSum - a spatial-domain depth-selective filter, with an effect similar to planar focus % % Usage: % % [ImgOut, FiltOptions, LF] = LFFiltShiftSum( LF, Slope, FiltOptions ) % ImgOut = LFFiltShiftSum( LF, Slope ) % % % This filter works by shifting all u,v slices of the light field to a common depth, ...
github
hazirbas/light-field-toolbox-master
LFUtilUnpackLytroArchive.m
.m
light-field-toolbox-master/LFToolbox0.4/LFUtilUnpackLytroArchive.m
5,667
utf_8
0af0d42eaef631b6f44fbfc81dd81b3e
% LFUtilUnpackLytroArchive - extract white images and other files from a multi-volume Lytro archive % % Usage: % LFUtilUnpackLytroArchive % LFUtilUnpackLytroArchive( InputPath ) % LFUtilUnpackLytroArchive( InputPath, FirstVolumeFname ) % LFUtilUnpackLytroArchive( [], FirstVolumeFname ) % % This extract...
github
hazirbas/light-field-toolbox-master
LFReadMetadata.m
.m
light-field-toolbox-master/LFToolbox0.4/LFReadMetadata.m
14,953
utf_8
98e987806e2f748e70644b1801d2bf95
% LFReadMetadata - reads the metadata files in the JSON file format, from a file or a char buffer % % Usage: % % Data = LFReadMetadata( JsonFileFname ) % % This function parses a JSON file and returns the data contained therein. If a char buffer is passed in, it's % interpreted directly. % % Based on code from JS...
github
hazirbas/light-field-toolbox-master
LFUtilDecodeLytroFolder.m
.m
light-field-toolbox-master/LFToolbox0.4/LFUtilDecodeLytroFolder.m
16,946
utf_8
6867204a9b31f8807a667ab1fe4fa420
% LFUtilDecodeLytroFolder - decode and optionally colour correct and rectify Lytro light fields % % Usage: % % LFUtilDecodeLytroFolder % LFUtilDecodeLytroFolder( InputPath ) % LFUtilDecodeLytroFolder( InputPath, FileOptions, DecodeOptions, RectOptions ) % LFUtilDecodeLytroFolder( InputPath, [], [], Rect...
github
hazirbas/light-field-toolbox-master
LFFilt4DFFT.m
.m
light-field-toolbox-master/LFToolbox0.4/LFFilt4DFFT.m
3,622
utf_8
bb1d9662c072ab5fb38568d45f44bd28
% LFFilt4DFFT -Applies a 4D frequency-domain filter using the FFT % % Usage: % % [LF, FiltOptions] = LFFilt4DFFT( LF, H, FiltOptions ) % LF = LFFilt4DFFT( LF, H ) % % % This filter works by taking the FFT of the input light field, multiplying by the provided magnitude response H, then % calling the inverse FFT...
github
hazirbas/light-field-toolbox-master
LFUtilCalLensletCam.m
.m
light-field-toolbox-master/LFToolbox0.4/LFUtilCalLensletCam.m
8,438
utf_8
56382b29c1b601dbae1ec2d6763a51b0
% LFUtilCalLensletCam - calibrate a lenslet-based light field camera % % Usage: % % LFUtilCalLensletCam % LFUtilCalLensletCam( Inputpath ) % LFUtilCalLensletCam( InputPath, CalOptions ) % LFUtilProcessCalibrations( [], CalOptions ) % % All parameters are optional and take on default values as set in the...
github
hazirbas/light-field-toolbox-master
LFHistEqualize.m
.m
light-field-toolbox-master/LFToolbox0.4/LFHistEqualize.m
6,002
utf_8
aaaa0313c7b80ba9ccf5524a24026bdb
% LFHistEqualize - histogram-based contrast adjustment % % Usage: % % LF = LFHistEqualize( LF ) % [LF, LowerBound, UpperBound] = LFHistEqualize( LF, Cutoff_percent ) % LF = LFHistEqualize( LF, [], LowerBound, UpperBound ) % LF = LFHistEqualize(LF, Cutoff_percent, [], [], Precision) % % This function p...
github
hazirbas/light-field-toolbox-master
LFReadRaw.m
.m
light-field-toolbox-master/LFToolbox0.4/LFReadRaw.m
2,387
utf_8
f61af2a213353cf523d8d47f5fd665aa
% LFReadRaw - Reads 8, 10, 12 and 16-bit raw image files % % Usage: % % Img = LFReadRaw( Fname ) % Img = LFReadRaw( Fname, BitPacking, ImgSize ) % Img = LFReadRaw( Fname, [], ImgSize ) % % There is no universal `RAW' file format. This function reads a few variants, including the 12-bit and 10-bit files % ...
github
hazirbas/light-field-toolbox-master
LFDispVidCirc.m
.m
light-field-toolbox-master/LFToolbox0.4/LFDispVidCirc.m
3,251
utf_8
7f29b601b697f1bf5daf1621b54fe7b0
% LFDispVidCirc - visualize a 4D light field animating a circular path through two dimensions % % Usage: % % FigureHandle = LFDispVidCirc( LF ) % FigureHandle = LFDispVidCirc( LF, PathRadius_percent, FrameDelay ) % FigureHandle = LFDispVidCirc( LF, PathRadius_percent, FrameDelay, ScaleFactor ) % Figu...
github
hazirbas/light-field-toolbox-master
LFDisp.m
.m
light-field-toolbox-master/LFToolbox0.4/LFDisp.m
1,447
utf_8
e7dcaf88325fd23f136fac4a166709e5
% LFDisp - Convenience function to display a 2D slice of a light field % % Usage: % LFSlice = LFDispMousePan( LF ) % LFDispMousePan( LF ) % % % The centermost image is taken in s and t. Also works with 3D arrays of images. If an output argument is included, no % display is generated, but the e...
github
hazirbas/light-field-toolbox-master
LFBuild2DFreqFan.m
.m
light-field-toolbox-master/LFToolbox0.4/LFBuild2DFreqFan.m
4,507
utf_8
d3bc64badf14c750b5f1f2a996936c1f
% LFBuild2DFreqFan - construct a 2D fan passband filter in the frequency domain % % Usage: % % [H, FiltOptions] = LFBuild2DFreqFan( LFSize, Slope1, Slope2, BW, FiltOptions ) % H = LFBuild2DFreqFan( LFSize, Slope, BW ) % % This file constructs a real-valued magnitude response in 2D, for which the passband is...
github
hazirbas/light-field-toolbox-master
LFLytroDecodeImage.m
.m
light-field-toolbox-master/LFToolbox0.4/LFLytroDecodeImage.m
9,163
utf_8
cc50d3baf7583157ad9f352a8774b14f
% LFLytroDecodeImage - decode a Lytro light field from a raw lenslet image, called by LFUtilDecodeLytroFolder % % Usage: % [LF, LFMetadata, WhiteImageMetadata, LensletGridModel, DecodeOptions] = ... % LFLytroDecodeImage( InputFname, DecodeOptions ) % [LF, LFMetadata, WhiteImageMetadata, LensletGridModel...
github
hazirbas/light-field-toolbox-master
LFDefaultIntrinsics.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFDefaultIntrinsics.m
2,030
utf_8
948ce39fff4f94ed954e090033778c04
% LFDefaultIntrinsics - Initializes a set of intrinsics for use in rectifying light fields % % Usage: % % RectCamIntrinsicsH = LFDefaultIntrinsics( LFSize, CalInfo ) % % This gets called by LFCalDispRectIntrinsics to set up a default set of intrinsics for rectification. Based on the % calibration information and...
github
hazirbas/light-field-toolbox-master
LFDefaultField.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFDefaultField.m
1,979
utf_8
485dfac0b4aba775cf4d1d20f537f0f7
% LFDefaultField - Convenience function to set up structs with default field values % % Usage: % % ParentStruct = LFDefaultField( ParentStruct, FieldName, DefaultVal ) % % This provides an elegant way to establish default field values in a struct. See LFDefaultValue for % setting up non-struct variables with defa...
github
hazirbas/light-field-toolbox-master
LFSign.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFSign.m
225
utf_8
901dea01bff401571d8125711feeffad
% LFSign - Like Matlab's sign, but never returns 0, treating 0 as positive % Part of LF Toolbox v0.4 released 12-Feb-2015 % Copyright (c) 2013-2015 Donald G. Dansereau function s = LFSign(i) s = ones(size(i)); s(i<0) = -1;
github
hazirbas/light-field-toolbox-master
LFRotz.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFRotz.m
306
utf_8
2a4fc216ff9e1b6b35762c010ebe50f2
% LFRotz - simple 3D rotation matrix, rotation about z % % Usage: % R = LFRotz( psi ) % % Part of LF Toolbox v0.4 released 12-Feb-2015 % Copyright (c) 2013-2015 Donald G. Dansereau function R = LFRotz(psi) c = cos(psi); s = sin(psi); R = [ c, -s, 0; ... s, c, 0; ... 0, 0, 1 ];
github
hazirbas/light-field-toolbox-master
LFHelperBuild4DFreq.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFHelperBuild4DFreq.m
4,143
utf_8
5cefe44f63c8fd80b66ad5e267298bff
% LFHelperBuild4DFreq - Helper function used to construct 4D frequency-domain filters % % Much of the complexity in constructing MD frequency-domain filters, especially around including aliased components and % controlling the filter rolloff, is common between filter shapes. This function wraps much of this complexity...
github
hazirbas/light-field-toolbox-master
LFCalInit.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFCalInit.m
12,108
utf_8
c694e604e6425b97a908bce5ea738134
% LFCalInit - initialize calibration estimate, called by LFUtilCalLensletCam % % Usage: % CalOptions = LFCalInit( InputPath, CalOptions ) % CalOptions = LFCalInit( InputPath ) % % This function is called by LFUtilCalLensletCam to initialize a pose and camera model estimate % given a set of extracted checkerboa...
github
hazirbas/light-field-toolbox-master
LFDecodeLensletImageSimple.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFDecodeLensletImageSimple.m
15,455
utf_8
7c4a879c6a41b6e546bba9d398361001
% LFDecodeLensletImageSimple - decodes a 2D lenslet image into a 4D light field, called by LFUtilDecodeLytroFolder % % Usage: % % [LF, LFWeight, DecodeOptions, DebayerLensletImage, CorrectedLensletImage] = ... % LFDecodeLensletImageSimple( LensletImage, WhiteImage, LensletGridModel, DecodeOptions ) % % This func...
github
hazirbas/light-field-toolbox-master
LFHelperBuild2DFreq.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFHelperBuild2DFreq.m
3,367
utf_8
3cd16d8e0a260aa2447e46ea325a04f9
% LFHelperBuild2DFreq - Helper function used to construct 2D frequency-domain filters % % Much of the complexity in constructing MD frequency-domain filters, especially around including aliased components and % controlling the filter rolloff, is common between filter shapes. This function wraps much of this complexity...
github
hazirbas/light-field-toolbox-master
LFFindLytroPartnerFile.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFFindLytroPartnerFile.m
1,439
utf_8
a4f3d1519bad3b234bde99c00a97ea3d
% LFFindLytroPartnerFile - Finds metadata / raw data file partner for Lytro white images % % Usage: % % PartnerFilename = LFFindLytroPartnerFile( OrigFilename, PartnerFilenameExtension ) % % The LF Reader tool prepends filenames extracted from LFP storage files, complicating .txt / .raw % file association as the ...
github
hazirbas/light-field-toolbox-master
LFVar2Struct.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFVar2Struct.m
646
utf_8
8e9d0eed0d9242fdf45c14ba302e05d2
% LFVar2Struct - Convenience function to build a struct from a set of variables % % Usage: % StructOut = LFVar2Struct( var1, var2, ... ) % % Example: % Apples = 3; % Oranges = 4; % FruitCount = LFVar2Struct( Apples, Oranges ) % % Results in a struct FruitCount: % FruitCount = % ...
github
hazirbas/light-field-toolbox-master
LFBuildLensletGridModel.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFBuildLensletGridModel.m
9,749
utf_8
77a704b9345494e7a5ab0bc07f763d10
% LFBuildLensletGridModel - builds a lenslet grid model from a white image, called by LFUtilProcessWhiteImages % % Usage: % [LensletGridModel, GridCoords] = LFBuildLensletGridModel( WhiteImg, GridModelOptions, DebugDisplay ) % % Inputs: % WhiteImg : path of an image taken through a diffuser, or of an e...
github
hazirbas/light-field-toolbox-master
LFDefaultVal.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFDefaultVal.m
1,291
utf_8
c246f7b5e263b013ced34d42170f53b4
% LFDefaultVal - Convenience function to set up default parameter values % % Usage: % % Var = LFDefaultVal( Var, DefaultVal ) % % % This provides an elegant way to establish default parameter values. See LFDefaultField for setting % up structs with default field values. % % Inputs: % % Var: string giving the ...
github
hazirbas/light-field-toolbox-master
LFDispSetup.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFDispSetup.m
2,717
utf_8
018642a726ed8feb41058f29f9ffeb14
% LFDispSetup - helper function used to set up a light field display % % Usage: % % [ImageHandle, FigureHandle] = LFDispSetup( InitialFrame ) % [ImageHandle, FigureHandle] = LFDispSetup( InitialFrame, ScaleFactor ) % % % This sets up a figure for LFDispMousePan and LFDispVidCirc. The figure is configured f...
github
hazirbas/light-field-toolbox-master
LFGatherCamInfo.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFGatherCamInfo.m
2,778
utf_8
c0acfa7e282c05682ab4f98ab740a59c
% LFGatherCamInfo - collect metadata from a folder of processed white images or calibrations % % Usage: % % CamInfo = LFGatherCamInfo( FilePath, FilenamePattern ) % % % This function is designed to work with one of two sources of information: a folder of Lytro white % images, as extracted from the calibration dat...
github
hazirbas/light-field-toolbox-master
LFToolboxVersion.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFToolboxVersion.m
252
utf_8
d37c67edd0424685c2530c25195c3826
% LFToolboxVersion - returns a string describing the current toolbox version % Part of LF Toolbox v0.4 released 12-Feb-2015 % Copyright (c) 2013-2015 Donald G. Dansereau function VersionStr = LFToolboxVersion VersionStr = 'v0.4 released 12-Feb-2015';
github
hazirbas/light-field-toolbox-master
LFStruct2Var.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFStruct2Var.m
871
utf_8
bd1821a5700012dfce0f79c4d5dd8ab0
% LFStruct2Var - Convenience function to break a subset of variables out of a struct % % Usage: % [var1, var2, ...] = LFStruct2Var( StructIn, 'var1', 'var2', ... ) % % This would ideally exclude the named variables in the argument list, but there was no elegant way % to do this given the absence of an `outputname'...
github
hazirbas/light-field-toolbox-master
LFFindCalInfo.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFFindCalInfo.m
2,572
utf_8
c7daafa528ed72904c233ed5ad834fe6
% LFFindCalInfo - Find and load the calibration info file appropriate for a specific camera, zoom and focus % % Usage: % % [CalInfo, RectOptions] = LFFindCalInfo( LFMetadata, RectOptions ) % % This uses a calibration info database to locate a calibration appropriate to a given camera under a given set of zoom % a...
github
hazirbas/light-field-toolbox-master
LFConvertToFloat.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFConvertToFloat.m
481
utf_8
347631d509cdee15114cff38f1046966
% LFConvertToFloat - Helper function to convert light fields to floating-point representation % % Integer inputs get normalized to a max value of 1. % Part of LF Toolbox v0.4 released 12-Feb-2015 % Copyright (c) 2013-2015 Donald G. Dansereau function LF = LFConvertToFloat( LF, Precision ) Precision = LFDefaultVal('P...
github
hazirbas/light-field-toolbox-master
LFUnpackRawBuffer.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFUnpackRawBuffer.m
2,263
utf_8
6edde771ccfa5abb4c1b0242c9ee9af9
% LFUnpackRawBuffer - Unpack a buffer of packed raw binary data into an image % % Usage: % % ImgOut = LFUnpackRawBuffer( Buff, BitPacking, ImgSize ) % % Used by LFReadRaw and LFReadLFP, this helper function unpacks a raw binary data buffer in one of several formats. % % Inputs : % % Buff : Buffer of chars t...
github
hazirbas/light-field-toolbox-master
LFCalFindCheckerCorners.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFCalFindCheckerCorners.m
8,816
utf_8
d8f59cd55e2ed367addcfa426036fbe0
% LFCalFindCheckerCorners - locates corners in checkerboard images, called by LFUtilCalLensletCam % % Usage: % CalOptions = LFCalFindCheckerCorners( InputPath, CalOptions ) % CalOptions = LFCalFindCheckerCorners( InputPath ) % % This function is called by LFUtilCalLensletCam to identify the corners in a set of...
github
hazirbas/light-field-toolbox-master
LFSelectFromDatabase.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFSelectFromDatabase.m
2,288
utf_8
f72e49d5261aad46cd204a67ea981f14
% LFSelectFromDatabase - support function for selecting white image/calibration by matching serial/zoom/focus % % Usage: % % SelectedCamInfo = LFSelectFromDatabase( DesiredCamInfo, DatabaseFname ) % % This helper function is used when decoding a light field to select an appropriate white image, % and when rectif...
github
hazirbas/light-field-toolbox-master
LFMapRectifiedToMeasured.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFMapRectifiedToMeasured.m
2,589
utf_8
5e58f495c8db32d93abdde790c719aff
% LFMapRectifiedToMeasured - Applies a calibrated camera model to map desired samples to measured samples % % Usage: % % InterpIdx = LFMapRectifiedToMeasured( InterpIdx, CalInfo, RectOptions ) % % Helper function used by LFCalRectifyLF. Based on a calibrated camera model, including distortion parameters and a %...
github
hazirbas/light-field-toolbox-master
LFCalRefine.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFCalRefine.m
16,821
utf_8
ad30626be45ef6d56dafc860da607c7c
% LFCalRefine - refine calibration by minimizing point/ray reprojection error, called by LFUtilCalLensletCam % % Usage: % CalOptions = LFCalRefine( InputPath, CalOptions ) % % This function is called by LFUtilCalLensletCam to refine an initial camera model and pose % estimates through optimization. This follows t...
github
hazirbas/light-field-toolbox-master
LFNormalizedFreqAxis.m
.m
light-field-toolbox-master/LFToolbox0.4/SupportFunctions/LFNormalizedFreqAxis.m
579
utf_8
02656a40ea9705a7d443208d9349a19e
% LFNormalizedFreqAxis - Helper function to construct a frequency axis % % Output range is from -0.5 to 0.5. This is designed so that the zero frequency matches the fftshifted output of the % fft algorithm. % Part of LF Toolbox v0.4 released 12-Feb-2015 % Copyright (c) 2013-2015 Donald G. Dansereau function f = LFN...
github
matheusmlopess-zz/neoplastic-tissue-diffraction-analysis-master
interface2.m
.m
neoplastic-tissue-diffraction-analysis-master/interface2.m
148,990
utf_8
abc9a81ee068e444c643f8e1c840d424
function varargout = interface2(varargin) gui_Singleton = 1; gui_State = struct('gui_Name', mfilename,'gui_Singleton',gui_Singleton, 'gui_OpeningFcn',@interface2_OpeningFcn,'gui_OutputFcn' ,@interface2_OutputFcn ,'gui_LayoutFcn' ,[],'gui_Callback',[]); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2...
github
lob-epfl/sofitool-master
sofiCumulants.m
.m
sofitool-master/GUI/codeSofi/SOFI/sofiCumulants.m
7,034
utf_8
29b26a76924276e6cd03cafc2c759001
%[sofi,grid]=sofiCumulants(stack,first,frames,region,orders,gpu) %--------------------------------------------------------------- % %Raw cross-cumulant images from image stack. % %Inputs: % stack Image stack % or TIFF file name % first First image index {1} % frames Number of images ...
github
lob-epfl/sofitool-master
nvcc.m
.m
sofitool-master/GUI/codeSofi/SOFI/private/nvcc.m
7,590
utf_8
d1942566971b573b025b45d49e8d4945
function nvcc(varargin) % This function NVCC is a wraper for the NVIDIA Cuda compiler NVCC.exe % in combination with a Visual Studio compiler. After this Cuda % files can be compiled into kernels % % If you call the code the first time, or with "nvcc -config": % 1) It will try to locate the "The NVIDIA GPU Computing T...
github
lob-epfl/sofitool-master
simulation_gen.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/simulation_gen.m
3,703
utf_8
eda1970cea6cf8f15efc9597464629e1
%% **************************************************************************************************** %% Simulated image generation %% %% Input: img_size : size of CCD image %% num_frame : number of images %% boundary_offset : boundary doesn't have any molecule %% num_mol ...
github
lob-epfl/sofitool-master
handover.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/handover.m
2,552
utf_8
ae20c2aadbee1edbd1eeb467dd4ae0a1
%% rearrange particles having high displacement values function [est_c_new,delta_x_new,delta_y_new,delta_z_new] = handover(est_c,delta_x,delta_y,delta_z) % find indices of particles which are close to adjacent grid points. ind_arrange = find((abs(delta_x)>0.99)|(abs(delta_y)>0.99)); est_c_new = est_c; delta_x_new = del...
github
lob-epfl/sofitool-master
Gen_kernels.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/Gen_kernels.m
3,818
utf_8
7ef51303f140e7c50d3c3c439993e97b
%% Point spread function and its derivatives generation. function [fPSF_decon,fPSF_refine,fPSF_dev_x,fPSF_dev_y,fPSF_dev_z] = ... Gen_kernels(x_dim,y_dim,up_decon,up_refine,Gsigma1,Gsigma2,Gsigma_ratio,delta_sigma) %% PSF for deconvolution steps 1&2 Gsigma1_decon = Gsigma1*up_decon; Gsigma2_decon = Gsigma2*up_dec...
github
lob-epfl/sofitool-master
simul_eval.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/simul_eval.m
1,737
utf_8
bfa63a35225e00195e9aef18e28c2663
%% **************************************************************************************************** %% calculation of localization error in x,y direction. %% each localized particle is matched to the closest true particle within a radius %% ***************************************************************************...
github
lob-epfl/sofitool-master
Gauss_kernel.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/Gauss_kernel.m
646
utf_8
df3fea6cbfa7cebbba874149c2fce428
%% **************************************************************************************************** %% Return 2D guassian kernel %% %% Input: x_inx,y_inx : meshgrid of x and y %% x_pos,y_pos : center_position %% Gsigma : standard deviation of gaussian functi...
github
lob-epfl/sofitool-master
LS_fitting.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/LS_fitting.m
5,630
utf_8
d625f417f4987484703fb8736f79d5e6
%% % Output % Results = [frame, amplitude, sigma1,sigma2,sigma_ratio,xPos,yPos,background,resnorm/sum(ccd_image(:))] % %% function [Results] = LS_fitting(filename,num_frame,dummy_frame,ADU,baseline,thresh,debug) Results = []; num_frame = min(num_frame,length(imfinfo(filename))); fprintf('running \n'); parfor ii = 1:num...
github
lob-epfl/sofitool-master
Gen_Gauss_kernels.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/Gen_Gauss_kernels.m
3,918
utf_8
0a7d4ef7852ae69564737e36f33b7b60
%% Point spread function and its derivatives generation. function [fPSF_decon,fPSF_refine,fPSF_dev_x,fPSF_dev_y,fPSF_dev_z] = ... Gen_Gauss_kernels(x_dim,y_dim,up_decon,up_refine,zero_pad,Gsigma1,Gsigma2,Gsigma_ratio,delta_sigma) %% PSF for deconvolution steps Gsigma1_decon = Gsigma1*up_decon; Gsigma2_decon = Gsig...
github
lob-epfl/sofitool-master
background_estimation.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/background_estimation.m
1,032
utf_8
34368ccbaebf0b8e7298017c84ecaf4d
%% background estimation using iterative wavelet transform function est_bg = background_estimation(imgs,th,dlevel,wavename,iter) est_bg = zeros(size(imgs),'single'); imgs = max(imgs,0); for N = 1: size(imgs,3) X = imgs(:,:,N); X_filt = X; for ii = 1:iter % wavelet transform [c,s] = wave...
github
lob-epfl/sofitool-master
super_render.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/super_render.m
2,426
utf_8
07cf8db3f2aa9c7d4f3bd85809d7282d
%% Generating super-resolution images %% %% Input: Nx : length of image in x axis (px) %% Ny : length of image in x axis (px) %% est_photon : estimated photons %% est_pos : estimated positions %% up_ren : upsampling factor for SR ...
github
lob-epfl/sofitool-master
Peakdets.m
.m
sofitool-master/GUI/codeStorm/FALCON2D/functions/Peakdets.m
1,253
utf_8
b1f877a43cf8325c0161b316cbf183ea
%% find local peaks and get initial localizations by center of mass function [est_c_new,delta_x,delta_y] = Peakdets(est_c,thresh) [Ny,Nx,Nt] = size(est_c); img = zeros(Ny,Nx,'single'); est_c_new = zeros(size(est_c),'single'); delta_x = zeros(size(est_c),'single'); delta_y = zeros(size(est_c),'single'); c_mask = ones(...
github
tgen/lumosVar2-master
printNormalMetrics_byChr.m
.m
lumosVar2-master/src/printNormalMetrics_byChr.m
6,471
utf_8
02a10bcf33373cd0dddf611ec5eca06c
function printNormalMetrics_byChr_v2(configFile,step) %printNormalMetrics - gets mean read depths and %position quality scores for a set of normal bams %calls parsePileupData.packed.pl to parse samtools output %writes a bgziped tabix index table for each chromosome %prerequisite for running TumorOnlyWrapper.m % % Syn...