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 | alcu/sms-master | cylinder_im.m | .m | sms-master/irt/fbp/cylinder_im.m | 9,943 | utf_8 | 5eb1466873158c59d7949e69063a4863 | function [phantom, params] = cylinder_im(ig, params, varargin)
%|function [phantom, params] = cylinder_im(ig, params, varargin)
%|
%| Generate (elliptical) cylinder phantom image from parameters.
%| in
%| ig image_geom()
%| params [ne 8] cylinder parameters. if empty, use 3d Defrise
%| [x_center y_center z_center... |
github | alcu/sms-master | cuboid_proj.m | .m | sms-master/irt/fbp/cuboid_proj.m | 6,284 | utf_8 | 9fc74bf4538d6c289658f9730172163e | function proj = cuboid_proj(cg, params, varargin)
%function proj = cuboid_proj(cg, params, varargin)
%|
%| Compute set of 2d line-integral projection views of cuboids.
%| Works for both parallel-beam and cone-beam geometry.
%|
%| in
%| cg ct_geom()
%| params [ne 9] cuboid parameters:
%| [x_center y_center z_cente... |
github | alcu/sms-master | fbp_dsc.m | .m | sms-master/irt/fbp/fbp_dsc.m | 2,648 | utf_8 | b4db5e3a1356d701e63af219a7a40aff | function x = fbp_dsc(sino, kernel, arg, varargin)
%function x = fbp_dsc(sino, kernel, arg, [options])
% Generic parallel-beam FBP reconstruction.
% Uses Gtomo2_dsc "system 9" backprojector (specific for pixel-driven FBP)
% in:
% sino [nb,na] sinogram
% kernel for filtering
% arg argument array for Gtomo2_dsc, built u... |
github | alcu/sms-master | rect_sino.m | .m | sms-master/irt/fbp/rect_sino.m | 7,854 | utf_8 | 9127e4aee0dd7cb2decfe9cf88a3b8e3 | function [sino, pos, ang] = rect_sino(sg, rects, varargin)
%|function [sino, pos, ang] = rect_sino(sg, rects, [options])
%|
%| Create sinogram projection of one or more rectangles.
%| Works for both parallel-beam geometry and for fan-beam geometry.
%|
%| in
%| sg sinogram geometry object from sino_geom()
%| rects [... |
github | alcu/sms-master | jaszczak1.m | .m | sms-master/irt/fbp/jaszczak1.m | 1,109 | utf_8 | 16f63c6585d36a9a368f028a3e8ad258 | function ell = jaszczak1(diam)
%function ell = jaszczak1(diam)
% Generate ellipse parameters for a Jaszczak phantom of diameter diam.
% Copyright 2005-8-26, Jeff Fessler, The University of Michigan
if nargin < 1, help(mfilename), error(mfilename), end
if streq(diam, 'test'), jaszczak1_test, return, end
nrow = [8 6:-... |
github | alcu/sms-master | ellipses.m | .m | sms-master/irt/fbp/ellipses.m | 3,596 | utf_8 | a4b5d22c0a4abf9ab0a141a1eba99f07 | function [phantom, params] = ellipses(nx, ny, params, dx, dy, varargin)
%function [phantom, params] = ellipses(nx, ny, params, dx, dy, options)
%
% generate ellipse phantom image from parameters:
% [x_center y_center x_radius y_radius angle_degrees amplitude [oversample]]
%
% in
% nx,ny image size
% params ellipse... |
github | alcu/sms-master | sino_geom.m | .m | sms-master/irt/fbp/sino_geom.m | 14,014 | utf_8 | 25dcba777aeae79b8b40d5abb14a2253 | function st = sino_geom(type, varargin)
%|function st = sino_geom(type, varargin)
%|
%| Create the "sinogram geometry" structure that describes the sampling
%| characteristics of a given sinogram for a 2D parallel or fan-beam system.
%| Using this structure facilitates "object oriented" code.
%| (Use ct_geom() instea... |
github | alcu/sms-master | fbp_fan_short_wt.m | .m | sms-master/irt/fbp/fbp_fan_short_wt.m | 4,998 | utf_8 | 2adc4ffbbfafc75d4aa95e2b2482b8fa | function [wt scale180] = fbp_fan_short_wt(sg, varargin)
%|function [wt scale180] = fbp_fan_short_wt(sg, [options])
%|
%| Sinogram weighting for fan-beam short scan
%|
%| in
%| sg strum sino_geom (sg.orbit_start is ignored)
%| or ct_geom
%|
%| option
%| 'type' 'parker' from parker:82:oss (Med Phys 1982)
%|
%| out
... |
github | alcu/sms-master | image_geom.m | .m | sms-master/irt/fbp/image_geom.m | 15,339 | utf_8 | 436e60b6e1f94368e50b32dc10ea7500 | function st = image_geom(varargin)
%|function st = image_geom(varargin)
%|
%| Create a "image geometry" structure that describes the sampling
%| characteristics of a single 2d image.
%| Using this structure should facilitate "object oriented" code.
%|
%| options for 2d
%| 'nx' image dimension
%| 'ny' image dimensio... |
github | alcu/sms-master | fbp2_back.m | .m | sms-master/irt/fbp/fbp2_back.m | 3,158 | utf_8 | 33344cfee37d55649d49e78b1e9375fc | function img = fbp2_back(sg, ig, sino, varargin)
%|function img = fbp2_back(sg, ig, sino, varargin)
%|
%| 2D backprojection for FBP. This matlab version is the backup alternative
%| for users lacking mex backprojector.
%|
%| in
%| sg sino_geom()
%| ig image_geom()
%| sino [nb na] sinogram (line integrals), usua... |
github | alcu/sms-master | ir_proj3_compare1.m | .m | sms-master/irt/fbp/ir_proj3_compare1.m | 3,380 | utf_8 | 5c5080708b4f071e75552ebce29e0f71 | function ir_proj3_compare1(fun_proj, fun_im, varargin)
%function ir_proj3_compare1(fun_proj, fun_im, varargin)
%|
%| Compute a set of 2d line-integral projection views of one or more ellipsoids.
%| Works for both parallel-beam and cone-beam geometry.
%|
%| in
%| fun_proj @(cg) make projections given ct_geom()
%| fun_i... |
github | alcu/sms-master | cuboid_im.m | .m | sms-master/irt/fbp/cuboid_im.m | 5,739 | utf_8 | 1031e64e70dc144ae58c64265ed500cc | function [phantom, params] = cuboid_im(ig, params, varargin)
%function [phantom, params] = cuboid_im(ig, params, varargin)
%|
%| generate cuboid phantom image from parameters:
%| [x_center y_center z_center x_diameter y_diameter z_diameter
%| xy_angle_degrees z_angle_degrees amplitude]
%| in
%| ig image_geom()
%| ... |
github | alcu/sms-master | fbp2_window.m | .m | sms-master/irt/fbp/fbp2_window.m | 1,767 | utf_8 | 96d5871c44234092fdbbcb3aac7558bb | function window = fbp2_window(n, window)
%|function window = fbp2_window(n, window)
%| compute an apodizing window of length n and fft shift it
if nargin == 1 && streq(n, 'test'), fbp2_window_test, return, end
if nargin < 2, help(mfilename), error(mfilename), end
if ischar(window)
if isempty(window) || streq(windo... |
github | alcu/sms-master | feldkamp.m | .m | sms-master/irt/fbp/feldkamp.m | 4,198 | utf_8 | 11b3a964760c0e1e90d1785f6d080a17 | function img = feldkamp(cg, ig, proj, varargin)
%|function img = feldkamp(cg, ig, proj, varargin)
%|
%| FBP reconstruction of cone-beam tomography data collected with
%| a circular source trajectory.
%| See feldkamp_example.m for example.
%|
%| in
%| cg ct_geom()
%| ig image_geom()
%| proj [ns nt na] cone-beam pr... |
github | alcu/sms-master | cbct_back.m | .m | sms-master/irt/fbp/cbct_back.m | 10,043 | utf_8 | 8c2e8abd48dd4221f829e5cde1978372 | function back = cbct_back(proj, cg, ig, varargin)
% function back = cbct_back(proj, cg, ig, varargin)
%|
%| cone-beam backprojector for feldkamp.m
%|
%| in
%| proj [ns nt na] cone-beam projection views
%|
%| option
%| 'use_mex' 0|1|2|3 1 mex with loop in mex (default)
%| 2 mex with loop in matlab
%| 3 mex with ... |
github | alcu/sms-master | ellipsoid_im.m | .m | sms-master/irt/fbp/ellipsoid_im.m | 16,065 | utf_8 | a3d82fb24c9b4ccd8dc19b25c40a798b | function [phantom, params] = ellipsoid_im(ig, params, varargin)
%|function [phantom, params] = ellipsoid_im(ig, params, varargin)
%|
%| Generate ellipsoids phantom image from parameters:
%| in
%| ig image_geom()
%| params [ne 9] ellipsoid parameters. if empty, use 3d shepp-logan
%| [x_center y_center z_center x_... |
github | alcu/sms-master | fbp_ramp.m | .m | sms-master/irt/fbp/fbp_ramp.m | 2,017 | utf_8 | 48449b79b81d25a3c3a6fffac5c23519 | function [h, nn] = fbp_ramp(type, n, ds, dsd)
%|function [h, nn] = fbp_ramp(type, n, ds, dsd)
%|
%| 'ramp-like' filters for parallel-beam and fan-beam FBP reconstruction.
%| This sampled band-limited approach avoids the aliasing that would be
%| caused by sampling the ramp directly in the frequency domain.
%|
%| in
%... |
github | alcu/sms-master | rebin_fan2par.m | .m | sms-master/irt/fbp/rebin_fan2par.m | 8,688 | utf_8 | 61649b53d333b908dddb410cccc15bed | function psino = rebin_fan2par(fsino, sf, sp, varargin)
%|function psino = rebin_fan2par(fsino, sf, sp, varargin)
%|
%| Rebin fan-beam sinogram into parallel-beam (or mojette) sinogram.
%| (Also useful for parallel-to-mojette rebinning.)
%|
%| in
%| fsino [ns nbeta (L)] fan-beam sinogram (or possibly parallel)
%| sf ... |
github | alcu/sms-master | ct_geom.m | .m | sms-master/irt/fbp/arch/ct_geom.m | 16,026 | utf_8 | 6cb92a21f4f530e9e29cf6c99ee72174 | function st = ct_geom(type, varargin)
%|function st = ct_geom(type, varargin)
%|
%| Create the "CT geometry" structure that describes the sampling
%| characteristics of a cone-beam CT system (axial or helical).
%| (Use sino_geom() for 2D fan-beam or parallel-beam systems.)
%|
%| in
%| type 'fan' (multi-slice fan-beam... |
github | alcu/sms-master | feldkamp_old.m | .m | sms-master/irt/fbp/arch/feldkamp_old.m | 6,848 | utf_8 | 03c021cd21f50ef6165b9465dfe0fcca | function img = feldkamp(proj, window, mask, args, varargin)
%function img = feldkamp(proj, window, mask, args, [options])
%
% FBP reconstruction of cone-beam tomography data collected with
% a circular source trajectory.
% See feldkamp_example.m for example.
%
% in:
% proj [nh,nv,na] cone-beam projectons (line integ... |
github | alcu/sms-master | moj2par_rebin.m | .m | sms-master/irt/fbp/arch/moj2par_rebin.m | 1,405 | utf_8 | 30e5dc14b0339fed90b39dbd7ccca673 | function psino = moj2par_rebin(msino, varargin)
%function psino = moj2par_rebin(msino, varargin)
%
% rebin mojette sinogram into parallel-beam sinogram
%
% in
% psino [nr,na] parallel-beam sinogram
% option
% (many, see arg.* below)
% out
% msino [nm,na] mojette sinogram
%
% Copyright 2005-12-7, Jeff Fessler, The Un... |
github | alcu/sms-master | fbp_helix_gh.m | .m | sms-master/irt/fbp/arch/fbp_helix_gh.m | 6,329 | utf_8 | d4842420a6b5ecfbebd6606f4d2f8f44 | function [img sino] = fbp_helix_gh(cg, ig, proj, varargin)
%|function [img sino] = fbp_helix_gh(cg, ig, proj, varargin)
%|
%| A single slice rebinning method for cone-beam tomography data
%| collected with a helical source trajectory
%|
%| in
%| cg ct_geom()
%| ig image_geom()
%| proj [ns nt na] cone-beam project... |
github | alcu/sms-master | par2moj_rebin.m | .m | sms-master/irt/fbp/arch/par2moj_rebin.m | 2,766 | utf_8 | 9fd3165e88091fe8136b4fb5d5283aa1 | function msino = par2moj_rebin(psino, varargin)
%function msino = par2moj_rebin(psino, varargin)
%
% rebin parallel-beam sinogram into mojette sinogram
%
% in
% psino [nr,na] parallel-beam sinogram
% option
% (many, see arg.* below)
% out
% msino [nm,na] mojette sinogram
%
% Copyright 2005-12-7, Jeff Fessler, The Un... |
github | alcu/sms-master | fbp_filter.m | .m | sms-master/irt/fbp/arch/fbp_filter.m | 2,080 | utf_8 | 5c5eb4807b76232c9eec5cef1ce0e099 | function [Hk, hn, nn] = fbp_filter(type, n, ds, varargin)
%function [Hk, hn, nn] = fbp_filter(type, n, ds, [options])
%
% 'ramp-like' filters for parallel-beam and fan-beam FBP reconstruction.
% This sampled band-limited approach avoids the aliasing that would be
% caused by sampling the ramp directly in the frequency... |
github | alcu/sms-master | octave_bug1.m | .m | sms-master/irt/octave/octave_bug1.m | 354 | utf_8 | 4c0c264f51bbf532112a325887373260 | function fun1
a = {1, 2};
b = 'foo';
fun2(a{1}, a{2}, b) % works
fun2(a{:}, b) % fails
function fun2(varargin)
nargin % always is 3
disp(argn) % look at the 'a {:}' here the 2nd time!
numel(argn) % always 3
inputname(3)
% fails the second time it is called above with this error
% error: fun2: A(I): index out o... |
github | alcu/sms-master | pl_pcg_qs_ls.m | .m | sms-master/irt/general/pl_pcg_qs_ls.m | 4,558 | utf_8 | 0fe55de84a5dcfaa9084c76f09cdf9e0 | function [xs, info] = pl_pcg_qs_ls(x, A, data, dercurv, R, varargin)
%|function [xs, info] = pl_pcg_qs_ls(x, A, data, dercurv, R, varargin)
%|
%| Unconstrained generic penalized-likelihood minimization,
%| for arbitrary negative log-likelihood with convex non-quadratic penalty,
%| via preconditioned conjugate gradien... |
github | alcu/sms-master | pl_iot.m | .m | sms-master/irt/general/pl_iot.m | 6,600 | utf_8 | d14dd429816b03ea810b960e15d62e38 | function [xs, info] = pl_iot(x, Ab, data, R, varargin)
%|function [xs, info] = pl_iot(x, Ab, data, R, [options])
%|
%| Generic penalized-likelihood minimization,
%| for arbitrary negative log-likelihood with convex non-quadratic penalty,
%| via incremental optimization transfer using separable quadratic surrogates.
%... |
github | alcu/sms-master | pgd_step_test.m | .m | sms-master/irt/general/pgd_step_test.m | 1,847 | utf_8 | 7185a010f86266bb17522a4a0ff9a14f | function pgd_step_test
%function pgd_step_test
% test the PGD algorithm using 2D LS cost function
% cost function terms
kap = 4;
A = [1 0; 0 sqrt(kap)];
W = eye(2);
M = eye(2);
yy = 0;
f.niter = 10;
x = [-kap; 1];
% run PSD
xpsd = qpwls_psd(x, A, W, yy, 0, 'precon', 1, 'niter', f.niter, 'isave', 'all');
% run PGD
... |
github | alcu/sms-master | subset_start.m | .m | sms-master/irt/general/subset_start.m | 1,008 | utf_8 | 4c48b8d425524f0aea40152e2215755b | function [starts, nsubset] = subset_start(nsubset)
%function [starts, nsubset] = subset_start(nsubset)
%
% Compute array of subset starting indices "starts" for OS algorithms.
% If input is an empty matrix, then 1 subset is used.
% If input is a scalar power of 2 != 1,
% then the "bit-reversal ordering" is used.
% If ... |
github | alcu/sms-master | costgrad_check.m | .m | sms-master/irt/general/costgrad_check.m | 1,127 | utf_8 | c815e16fc609ce9ef595173a38630fb7 | function costgrad_check(x, data, costgrad, varargin)
%|function costgrad_check(x, data, costgrad, varargin)
%|
%| Check for consistency between a cost function and its gradient.
%|
%| in
%| x [np 1] point at which to evaluate cost and gradient
%| data {cell} whatever data is needed for the cost function
%| costgrad... |
github | Anatole27/thesisReport-master | realdiag.m | .m | thesisReport-master/Nodes models/bending/realdiag.m | 506 | utf_8 | daaf8293c08ced192dec358924999941 | %function [Am,Bm,Cm,Vm] = realdiag(A,B,C);
% Author : Wodek K Gawronski
% This function finds the modal state-space representation of form 2
% The diagonal blocks of Am are in increasing order of imaginary part of
% the eigenvalues of A
% Vm is the transformation matrix from (A,B,C) to (Am,Bm,Cm)
%
function [Am,... |
github | Anatole27/thesisReport-master | norm_inf.m | .m | thesisReport-master/Nodes models/bending/norm_inf.m | 717 | utf_8 | 59728460aa2c3ad0fe9fabed80601ac9 | %function norm = norm_inf(om,z,bm,cmq,cmr,cma);
% Author : Wodek K. Gawronski
%This function finds approximate Hinf norm
%for each mode of a structure with displacement, rate, and acceleration
%sensors
%
% Input parameters :
%om - vector of natural frequencies
% z - vector of modal damping
% bm - modal matrix ... |
github | Anatole27/thesisReport-master | displaySimTraj.m | .m | thesisReport-master/Nodes models/pitch dynamics/displaySimTraj.m | 1,797 | utf_8 | 95df9ea363d18f957f6ad7c076eb568a | function displaySimTraj(Z0,X0,gamma,alph0,V0,xCG,thetaT0,thetaT,T0,z,x,theta,w,u,w_nodes,time,slowmo,n_nodes)
vibe_scale = 10^3;
w_nodes = vibe_scale*w_nodes;
theta0 = alph0+gamma;
[x_body,y_body] = getXYbody(Z0,X0,V0,gamma,z,x,theta0,theta,w_nodes,4.9,xCG,n_nodes,time);
[vx,vy] = getSpeed(theta0,theta,gamma,V0,w,u)... |
github | Anatole27/thesisReport-master | displaySim.m | .m | thesisReport-master/Nodes models/pitch dynamics/displaySim.m | 2,023 | utf_8 | 14d9d0e66165189517c89a7dcb54ff86 | function displaySim(Z0,X0,gamma,alph0,V0,xCG,thetaT0,thetaT,T0,z,x,theta,w,u,w_nodes,time,slowmo,n_nodes)
vibe_scale = 10^3;
w_nodes = vibe_scale*w_nodes;
theta0 = alph0+gamma;
[x_body,y_body] = getXYbody(Z0,X0,V0,gamma,z,x,theta0,theta,w_nodes,4.9,xCG,n_nodes,time);
[vx,vy] = getSpeed(theta0,theta,gamma,V0,... |
github | Anatole27/thesisReport-master | realdiag.m | .m | thesisReport-master/Nodes models/pitch dynamics/realdiag.m | 506 | utf_8 | daaf8293c08ced192dec358924999941 | %function [Am,Bm,Cm,Vm] = realdiag(A,B,C);
% Author : Wodek K Gawronski
% This function finds the modal state-space representation of form 2
% The diagonal blocks of Am are in increasing order of imaginary part of
% the eigenvalues of A
% Vm is the transformation matrix from (A,B,C) to (Am,Bm,Cm)
%
function [Am,... |
github | Anatole27/thesisReport-master | norm_inf.m | .m | thesisReport-master/Nodes models/pitch dynamics/norm_inf.m | 717 | utf_8 | 59728460aa2c3ad0fe9fabed80601ac9 | %function norm = norm_inf(om,z,bm,cmq,cmr,cma);
% Author : Wodek K. Gawronski
%This function finds approximate Hinf norm
%for each mode of a structure with displacement, rate, and acceleration
%sensors
%
% Input parameters :
%om - vector of natural frequencies
% z - vector of modal damping
% bm - modal matrix ... |
github | Anatole27/thesisReport-master | displaySimTraj.m | .m | thesisReport-master/Nodes models/pitch dynamics_controller_rb_12_06/displaySimTraj.m | 1,797 | utf_8 | 95df9ea363d18f957f6ad7c076eb568a | function displaySimTraj(Z0,X0,gamma,alph0,V0,xCG,thetaT0,thetaT,T0,z,x,theta,w,u,w_nodes,time,slowmo,n_nodes)
vibe_scale = 10^3;
w_nodes = vibe_scale*w_nodes;
theta0 = alph0+gamma;
[x_body,y_body] = getXYbody(Z0,X0,V0,gamma,z,x,theta0,theta,w_nodes,4.9,xCG,n_nodes,time);
[vx,vy] = getSpeed(theta0,theta,gamma,V0,w,u)... |
github | Anatole27/thesisReport-master | displaySim.m | .m | thesisReport-master/Nodes models/pitch dynamics_controller_rb_12_06/displaySim.m | 2,023 | utf_8 | 14d9d0e66165189517c89a7dcb54ff86 | function displaySim(Z0,X0,gamma,alph0,V0,xCG,thetaT0,thetaT,T0,z,x,theta,w,u,w_nodes,time,slowmo,n_nodes)
vibe_scale = 10^3;
w_nodes = vibe_scale*w_nodes;
theta0 = alph0+gamma;
[x_body,y_body] = getXYbody(Z0,X0,V0,gamma,z,x,theta0,theta,w_nodes,4.9,xCG,n_nodes,time);
[vx,vy] = getSpeed(theta0,theta,gamma,V0,... |
github | Anatole27/thesisReport-master | realdiag.m | .m | thesisReport-master/Nodes models/pitch dynamics_controller_rb_12_06/realdiag.m | 506 | utf_8 | daaf8293c08ced192dec358924999941 | %function [Am,Bm,Cm,Vm] = realdiag(A,B,C);
% Author : Wodek K Gawronski
% This function finds the modal state-space representation of form 2
% The diagonal blocks of Am are in increasing order of imaginary part of
% the eigenvalues of A
% Vm is the transformation matrix from (A,B,C) to (Am,Bm,Cm)
%
function [Am,... |
github | Anatole27/thesisReport-master | norm_inf.m | .m | thesisReport-master/Nodes models/pitch dynamics_controller_rb_12_06/norm_inf.m | 717 | utf_8 | 59728460aa2c3ad0fe9fabed80601ac9 | %function norm = norm_inf(om,z,bm,cmq,cmr,cma);
% Author : Wodek K. Gawronski
%This function finds approximate Hinf norm
%for each mode of a structure with displacement, rate, and acceleration
%sensors
%
% Input parameters :
%om - vector of natural frequencies
% z - vector of modal damping
% bm - modal matrix ... |
github | Anatole27/thesisReport-master | displaySim.m | .m | thesisReport-master/Nodes models/OI_dynamics/displaySim.m | 2,023 | utf_8 | 14d9d0e66165189517c89a7dcb54ff86 | function displaySim(Z0,X0,gamma,alph0,V0,xCG,thetaT0,thetaT,T0,z,x,theta,w,u,w_nodes,time,slowmo,n_nodes)
vibe_scale = 10^3;
w_nodes = vibe_scale*w_nodes;
theta0 = alph0+gamma;
[x_body,y_body] = getXYbody(Z0,X0,V0,gamma,z,x,theta0,theta,w_nodes,4.9,xCG,n_nodes,time);
[vx,vy] = getSpeed(theta0,theta,gamma,V0,... |
github | Anatole27/thesisReport-master | displaySim.m | .m | thesisReport-master/Nodes models/pitch dynamics new states/displaySim.m | 2,023 | utf_8 | 14d9d0e66165189517c89a7dcb54ff86 | function displaySim(Z0,X0,gamma,alph0,V0,xCG,thetaT0,thetaT,T0,z,x,theta,w,u,w_nodes,time,slowmo,n_nodes)
vibe_scale = 10^3;
w_nodes = vibe_scale*w_nodes;
theta0 = alph0+gamma;
[x_body,y_body] = getXYbody(Z0,X0,V0,gamma,z,x,theta0,theta,w_nodes,4.9,xCG,n_nodes,time);
[vx,vy] = getSpeed(theta0,theta,gamma,V0,... |
github | patrikhuber/eos-master | compute_edgestruct.m | .m | eos-master/share/scripts/compute_edgestruct.m | 2,007 | utf_8 | 4a9b9e16b71f4e17ba28dbf0a7b1e748 | %% The code in this file is largely copied and modified from
% https://github.com/waps101/3DMM_edges:
% A. Bas, W.A.P. Smith, T. Bolkart and S. Wuhrer, "Fitting a 3D Morphable
% Model to Edges: A Comparison Between Hard and Soft Correspondences",
% ACCV Workshop 2016.
% The code is licensed under the Apache-2.0 license... |
github | patrikhuber/eos-master | demo.m | .m | eos-master/matlab/demo.m | 2,169 | utf_8 | 9739184965f86939c50ab1d1deacbad4 | %% Demo for running the eos fitting from Matlab
%
%% Set up some required paths to files:
model_file = '../share/sfm_shape_3448.bin';
blendshapes_file = '../share/expression_blendshapes_3448.bin';
landmark_mappings = '../share/ibug_to_sfm.txt';
%% Load an image and its landmarks in ibug format:
image = imread('../bin/... |
github | sel314/AMFEM_Phasefield-master | AssembleMassVec.m | .m | AMFEM_Phasefield-master/2DFEM-Mfiles/AssembleMassVec.m | 581 | utf_8 | 9a57a97c48650e48861a76888a485950 | %SUBROUTINE TO ASSEMBLE ELEMENT STIFFNESS MATRIX INTO GLOBAL STIFFNESS
%MATRIX FOR A 4-Node QUAD
function [M] = AssembleMassVec(ie, nodesinele, M, Me)
% nodesinele: connectivity matrix
% K: Global stiffness matrix
% Kstiff: Element stiffnes matrix
nodes = zeros([4,1]);
for ii = 1:4
nodes(ii,1) = nodesinele(ie,ii);
... |
github | sel314/AMFEM_Phasefield-master | CalcShapeFunc.m | .m | AMFEM_Phasefield-master/2DFEM-Mfiles/CalcShapeFunc.m | 1,155 | utf_8 | 99df4ed96382145c90d9863438006430 | %SUBROUTINE TO CALCULATE PARTIAL DERIVATIVES OF SHAPE FUNCTION W.R.T GLOBAL
%COORDINATES
% e
% |
% |
% |
% ----------------->z
% |
% |
% |
function [B, N, jacobian] = CalcShapeFunc(ie, z, e, coords, nodesinele)
dcoords = zeros([4,2]);
jacobian = ze... |
github | sel314/AMFEM_Phasefield-master | diagM.m | .m | AMFEM_Phasefield-master/2DFEM-Mfiles/diagM.m | 262 | utf_8 | f7c0167b9c6567ba7d78584788035800 | %--------Subroutine to diagonalize element mass matrix--------
function [Me] = diagM(Me, ind)
for i = 1:ind
MeD = 0; %summed up row of Me
for j = 1:ind
MeD = MeD + Me(i,j);
Me(i,j) = 0;
end%end for(j)
Me(i,i) = MeD;
end%end for(i) |
github | sel314/AMFEM_Phasefield-master | AssembleForceVec.m | .m | AMFEM_Phasefield-master/2DFEM-Mfiles/AssembleForceVec.m | 547 | utf_8 | 89a66523d55e1dd305e2845c1505a285 | %SUBROUTINE TO ASSEMBLE ELEMENT FORCE VECTOR INTO GLOBAL FORCE
%FOR A VECTOR SOLUTION
%FOR A 4-NODE QUAD
function [F] = AssembleForceVec(ie, coords, nodesinele, F, Fe)
% nodesinele: connectivity matrix
% F: GLOBAL FORCE
% Fe: LOCAL FORCE
nodes = zeros([4,1]);
for ii = 1:4
nodes(ii,1) = nodesinele(ie,ii);
end %end f... |
github | sel314/AMFEM_Phasefield-master | Assemble.m | .m | AMFEM_Phasefield-master/2DFEM-Mfiles/Assemble.m | 545 | utf_8 | a1012fe150987903ef90980c624e1ae2 | %SUBROUTINE TO ASSEMBLE ELEMENT STIFFNESS MATRIX INTO GLOBAL STIFFNESS
%MATRIX FOR A 4-Node QUAD
function [K] = Assemble(ie, coords, nodesinele, K, Ke)
% nodesinele: connectivity matrix
% K: Global stiffness matrix
% Kstiff: Element stiffnes matrix
nodes = zeros([4,1]);
for ii = 1:4
nodes(ii,1) = nodesinele(ie,ii);... |
github | sel314/AMFEM_Phasefield-master | AssembleMass.m | .m | AMFEM_Phasefield-master/2DFEM-Mfiles/AssembleMass.m | 479 | utf_8 | 327b8500e8112b638a7ec460aceeb948 | %SUBROUTINE TO ASSEMBLE ELEMENT STIFFNESS MATRIX INTO GLOBAL STIFFNESS
%MATRIX FOR A 4-Node QUAD
function [M] = AssembleMass(ie, nodesinele, M, Me)
% nodesinele: connectivity matrix
% K: Global stiffness matrix
% Kstiff: Element stiffnes matrix
nodes = zeros([4,1]);
for ii = 1:4
nodes(ii,1) = nodesinele(ie,ii);
end... |
github | sel314/AMFEM_Phasefield-master | Heatfem.m | .m | AMFEM_Phasefield-master/2DFEM-Mfiles/Heatfem.m | 5,487 | utf_8 | 7ca60dd27b400df0bb215356e5d6d5e7 | function Heatfem(Nx, Ny, X, Y)
%implement convection BC
%finite element heat code for a 2D square
%Nx = number of elements in X direction
%Ny = number of elements in Y direction
%X = length of mesh in X direction
%Y = length of mesh in Y direction
clc
kxx = 1;
kyy = 1;
Temp_L = 300; %ebc of lower boundary
Temp_U = 500;... |
github | sel314/AMFEM_Phasefield-master | AssembleForce.m | .m | AMFEM_Phasefield-master/2DFEM-Mfiles/AssembleForce.m | 445 | utf_8 | 2cf43b8d9d2f05cae9536e8c1db24195 | %SUBROUTINE TO ASSEMBLE ELEMENT FORCE VECTOR INTO GLOBAL FORCE
%FOR A 4-NODE QUAD
function [F] = AssembleForce(ie, coords, nodesinele, F, Fe)
% nodesinele: connectivity matrix
% F: GLOBAL FORCE
% Fe: LOCAL FORCE
nodes = zeros([4,1]);
for ii = 1:4
nodes(ii,1) = nodesinele(ie,ii);
end %end for(i)
for i = 1:4
p =... |
github | 331576717/leveleset-master | LineCurvature2D.m | .m | leveleset-master/LineCurvature2D.m | 4,069 | utf_8 | 5d68750190861c373b2e3ee9972996e6 | function k=LineCurvature2D(Vertices,Lines)
% This function calculates the curvature of a 2D line. It first fits
% polygons to the points. Then calculates the analytical curvature from
% the polygons;
%
% k = LineCurvature2D(Vertices,Lines)
%
% inputs,
% Vertices : A M x 2 list of line points.
% (optional)
% Li... |
github | 331576717/leveleset-master | lse_bfe.m | .m | leveleset-master/lse_bfe.m | 3,097 | utf_8 | a53c3a75b1f2b98d2be28d7c8b81d83f | function [u, b, C]= lse_bfe(u0,Img, b, Ksigma,KONE, nu,timestep,mu,epsilon, iter_lse)
% This function performs the level set evolution (LSE) and bias field
% estimation described in the following paper
% C. Li, R. Huang, Z. Ding, C. Gatenby, D. N. Metaxas, and J. C. Gore,
% "A Level Set Method for Image Segm... |
github | gulbuhar/sflphone-master | echo_diagnostic.m | .m | sflphone-master/sflphone-1.4.1/daemon/libs/pjproject-2.2.1/third_party/speex/libspeex/echo_diagnostic.m | 2,076 | utf_8 | 8d5e7563976fbd9bd2eda26711f7d8dc | % Attempts to diagnose AEC problems from recorded samples
%
% out = echo_diagnostic(rec_file, play_file, out_file, tail_length)
%
% Computes the full matrix inversion to cancel echo from the
% recording 'rec_file' using the far end signal 'play_file' using
% a filter length of 'tail_length'. The output is saved to 'o... |
github | OrangeOwlSolutions/Linear-Algebra-master | Bidiagonalization.m | .m | Linear-Algebra-master/Bidiagonalization/Bidiagonalization.m | 1,209 | utf_8 | b302174fd375eda551e9cf1a9f1f8d57 | % --- Bidiagonalization performed according to the Golub-Van Loan scheme
% --- This is Algorithm 5.4.2 page 252 of Golun and Van Loan III Ed.
% --- Assumption: m <= n
% --- A = UB * B * VB.'
function [B, UB, VB] = Bidiagonalization(A)
m = size(A, 1);
n = size(A, 2);
UB = eye(m);
VB = eye(n);
if (m == n)
... |
github | OrangeOwlSolutions/Linear-Algebra-master | house.m | .m | Linear-Algebra-master/Bidiagonalization/house.m | 626 | utf_8 | b80a3682efaf09916caadcb9e7941bd6 | % --- Householder vector computation
% --- This is algorithm 5.1.1 page 210 of Golub and Van Loan III Ed.
function [v, beta] = house(x)
n = length(x);
essential = x(2 : n); % --- "Essential" part of v
sigma = essential.' * essential; % --- norm(x(2:n))
v ... |
github | LisaAnne/lisa-caffe-public-master | classification_demo.m | .m | lisa-caffe-public-master/matlab/demo/classification_demo.m | 5,412 | utf_8 | 8f46deabe6cde287c4759f3bc8b7f819 | function [scores, maxlabel] = classification_demo(im, use_gpu)
% [scores, maxlabel] = classification_demo(im, use_gpu)
%
% Image classification demo using BVLC CaffeNet.
%
% IMPORTANT: before you run this demo, you should download BVLC CaffeNet
% from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html)
%
% *****... |
github | bboczeng/Codes-master | arrow.m | .m | Codes-master/Machine Learning/Discriminant Analysis/arrow.m | 55,316 | utf_8 | a9fba6cb870e440f70d88c6a4849cb63 | function [h,yy,zz] = arrow(varargin)
% ARROW Draw a line with an arrowhead.
%
% ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points
% should be vectors of length 2 or 3, or matrices with 2 or 3
% columns), and returns the graphics handle of the arrow(s).
%
% ARROW uses the mouse (cl... |
github | ivan-usov/FiberApp-master | FiberApp.m | .m | FiberApp-master/FiberApp.m | 17,795 | utf_8 | f1e393ec0ecb86242184dc6aa032e398 | %FIBERAPP Start FiberApp
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function FiberApp
% Open main figure
figure('Name', 'FiberApp', 'NumberTitle', 'off', 'DockControls', 'off... |
github | ivan-usov/FiberApp-master | interp2D.m | .m | FiberApp-master/+utility/interp2D.m | 3,767 | utf_8 | 9a29fe9267637ae4da3ba123745091d7 | %INTERP2D Fast 2D data interpolation
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function z = interp2D(im, xi, yi, method)
[nrows, ncols] = size(im);
switch method
case '... |
github | ivan-usov/FiberApp-master | searchPath.m | .m | FiberApp-master/+utility/searchPath.m | 5,782 | utf_8 | 900d00ea4321fac518c2435d76d780d6 | %SEARCHPATH Implementation of an A* path search algorithm
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [x_p, y_p] = searchPath(im, fibInt, x_0, y_0, x_end, y_end)
% Te... |
github | ivan-usov/FiberApp-master | readNanoScopeImage.m | .m | FiberApp-master/+utility/readNanoScopeImage.m | 3,484 | utf_8 | f15016d16b1a169eeee259a5432c7474 | %READNANOSCOPEIMAGE Read a NanoScope image
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [im, sizeX, sizeY, sizeX_nm, sizeY_nm, scaleXY, scaleZ] = ...
readNanoScope... |
github | ivan-usov/FiberApp-master | floor2n.m | .m | FiberApp-master/+utility/floor2n.m | 470 | utf_8 | 28fd8efa04fd84c950a423fc6f9eee0b | %FLOOR2N Floor a small number (<100) up to two significant digits
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function out = floor2n(in)
if in == 0
out = 0;
return
end... |
github | ivan-usov/FiberApp-master | getColorMap.m | .m | FiberApp-master/+utility/getColorMap.m | 811 | utf_8 | 4f1fc79acb23c8d57fff3e67a2363e9b | %GETCOLORMAP Return a 256-color colormap corresponding to a string input
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function map = getColorMap(type)
switch type
case 'gra... |
github | ivan-usov/FiberApp-master | gradient2Dx2.m | .m | FiberApp-master/+utility/gradient2Dx2.m | 595 | utf_8 | 5ea39a2c0bf77201db89431a507863e4 | %GRADIENT2DX2 Returns casted to int16 doubled gradient of an image
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [gx, gy] = gradient2Dx2(im)
gx = zeros(size(im), 'int16... |
github | ivan-usov/FiberApp-master | distributePoints.m | .m | FiberApp-master/+utility/distributePoints.m | 1,274 | utf_8 | d11ba161c4a1a9fbc8a91176c1843596 | %DISTRIBUTEPOINTS Distribute along a curve equally spaced points
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function outXY = distributePoints(inXY, step)
% Coordinates of vec... |
github | ivan-usov/FiberApp-master | checkRange.m | .m | FiberApp-master/+utility/checkRange.m | 511 | utf_8 | 31bb18dae475f5c8553f595fe5d2cf72 | %CHECKRANGE Parse minimal and maximal range values
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [rMin, rMax] = checkRange(rMin, rMax, data)
if isempty(rMin)
rMin =... |
github | ivan-usov/FiberApp-master | ceil2n.m | .m | FiberApp-master/+utility/ceil2n.m | 471 | utf_8 | b044a32813adab33512ef07a7d90edd7 | %CEIL2N Ceil only a small number (<100) up to two significant digits
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function out = ceil2n(in)
if in == 0
out = 0;
return
e... |
github | ivan-usov/FiberApp-master | getFileExtension.m | .m | FiberApp-master/+utility/getFileExtension.m | 394 | utf_8 | 56c218d820bec5427b4e3d279e0ad643 | %GETFILEEXTENSION Extract extension of a file
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function ext = getFileExtension(fileName)
ind = find(fileName == '.', 1, 'last');
if ... |
github | ivan-usov/FiberApp-master | readFltImage.m | .m | FiberApp-master/+utility/readFltImage.m | 1,974 | utf_8 | d893c195be92dad68d5c4a0bc65aeff3 | %READFLTIMAGE Read an FLT image (Thermicroscopes SPMLab floating point)
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [im, sizeX, sizeY, sizeX_nm, sizeY_nm, scaleXY, sc... |
github | ivan-usov/FiberApp-master | round2n.m | .m | FiberApp-master/+utility/round2n.m | 449 | utf_8 | 3944a9670c5a02b981b947c6b492d910 | %ROUND2N Round a number up to two significant digits
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function out = round2n(in)
if in == 0
out = 0;
return
end
i = 0;
whi... |
github | ivan-usov/FiberApp-master | pan_zoom.m | .m | FiberApp-master/@FiberAppData/pan_zoom.m | 1,945 | utf_8 | d25c6e032fd06e74a7bf512967f23a8b | %PAN_ZOOM Pan and zoom operations
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function pan_zoom(this, varargin)
switch varargin{1}
case 'z_in' % Zoom in
scale... |
github | ivan-usov/FiberApp-master | hidePanel.m | .m | FiberApp-master/@FiberAppData/hidePanel.m | 555 | utf_8 | 0c95085c4f01672af2bf1f1d895d8f32 | %HIDEPANEL Hide panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function hidePanel(this, tag)
% Make menu item and toggle tool unchecked
set(findobj('Type', 'uimenu', 'Tag'... |
github | ivan-usov/FiberApp-master | tutorial.m | .m | FiberApp-master/@FiberAppData/tutorial.m | 3,316 | utf_8 | 390502aae9b9b5f7f11ab8f766bfa2ad | %TUTORIAL Show tutorial messages
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function tutorial(this, varargin)
if ~this.isTutorial; return; end
tutorial_message = varargin{1}... |
github | ivan-usov/FiberApp-master | getFiberAStar.m | .m | FiberApp-master/@FiberAppData/getFiberAStar.m | 5,090 | utf_8 | 71a7d98f4deee8324b40cb3395e79a6c | %GETFIBERASTAR Get A* path coordinates from a mouse input
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [xdata, ydata] = getFiberAStar(this)
% Save main key and button ... |
github | ivan-usov/FiberApp-master | checkAccordance.m | .m | FiberApp-master/@FiberAppData/checkAccordance.m | 2,676 | utf_8 | c1bc4b892509d2cd65ee8ba3f585a5c3 | %CHECKACCORDANCE Check accordance between a fiber data and an image
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function checkAccordance(this)
% Clean axes from fibers
delete... |
github | ivan-usov/FiberApp-master | renderFibers.m | .m | FiberApp-master/@FiberAppData/renderFibers.m | 628 | utf_8 | dffdf040899054b21eba743737cc9c69 | %RENDERFIBERS Render fibers within a visible rectangle
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function renderFibers(this, varargin)
if isempty(this.fibRect); return; en... |
github | ivan-usov/FiberApp-master | getFiber.m | .m | FiberApp-master/@FiberAppData/getFiber.m | 3,620 | utf_8 | a35ee4a0cac1c1d03373071f7f834454 | %GETFIBER Get line coordinates from a mouse input
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [xdata, ydata] = getFiber(this)
% Save main key and button functions
kpf... |
github | ivan-usov/FiberApp-master | getPoint.m | .m | FiberApp-master/@FiberAppData/getPoint.m | 2,161 | utf_8 | a4510ed81215761cea8af9aeace47379 | %GETPOINT Get point coordinates from a mouse input
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [xdata, ydata] = getPoint(this)
% Save main key and button function
kpf... |
github | ivan-usov/FiberApp-master | enableItems.m | .m | FiberApp-master/@FiberAppData/enableItems.m | 1,156 | utf_8 | 957397ab862b6067697ec40fa74351f9 | %ENABLEITEMS Enable menu and toolbar items on image open
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function enableItems(this)
menuItems = findobj('Type', 'uimenu', ...
'... |
github | ivan-usov/FiberApp-master | updatePanelPosition.m | .m | FiberApp-master/@FiberAppData/updatePanelPosition.m | 1,284 | utf_8 | d095f164d42b4b7ae9bd988e1ae6c098 | %UPDATEPANELPOSITION Update positions of the open panels
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function updatePanelPosition(this)
figPos = get(gcf, 'Position');
% Set u... |
github | ivan-usov/FiberApp-master | updateStatistics.m | .m | FiberApp-master/@FiberAppData/updateStatistics.m | 1,026 | utf_8 | ade8a1f936f17e35a0849e6e2c8f517b | %UPDATESTATISTICS Update statistics on the corresponding panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function updateStatistics(this)
% Number of images
set(findobj('Tag'... |
github | ivan-usov/FiberApp-master | getMask.m | .m | FiberApp-master/@FiberAppData/getMask.m | 3,945 | utf_8 | a930cbdab71aa37fb72c1fccda197056 | %GETMASK Get mask coordinates from a mouse input
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function [xdata, ydata, size] = getMask(this)
% Save main key and button function... |
github | ivan-usov/FiberApp-master | updateImage.m | .m | FiberApp-master/@FiberAppData/updateImage.m | 1,186 | utf_8 | 03db307c85f664af1beb76f0cd752387 | %UPDATEIMAGE Created a new image for viewing (uint8) and display it
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function updateImage(this, varargin)
% Parse input
preserveCont... |
github | ivan-usov/FiberApp-master | getScaleBarLineLength.m | .m | FiberApp-master/@FiberAppData/getScaleBarLineLength.m | 3,761 | utf_8 | 3c2fde480531613efa680e6518b5d71b | %GETSCALEBARLINELENGTH Get horizontal or vertical scale bar line from a mouse input
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function len = getScaleBarLineLength(this)
% Sa... |
github | ivan-usov/FiberApp-master | changeSelection.m | .m | FiberApp-master/@FiberAppData/changeSelection.m | 1,557 | utf_8 | a0023e7b3337a9b01f865cb120cb1597 | %CHANGESELECTION Change fiber selection on mouse click
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function changeSelection(this, val)
% Return if the selection is on already ... |
github | ivan-usov/FiberApp-master | showPanel.m | .m | FiberApp-master/@FiberAppData/showPanel.m | 524 | utf_8 | ac0df40784e8f00ffe195b6b9b5b6db7 | %SHOWPANEL Show panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function showPanel(this, tag)
% Make menu item and toggle tool checked
set(findobj('Type', 'uimenu', 'Tag', ... |
github | ivan-usov/FiberApp-master | KinkAngleDistribution.m | .m | FiberApp-master/+panel/KinkAngleDistribution.m | 5,793 | utf_8 | 17b3b1f95b6069cd4b7dc326c19a3fbc | %KINKANGLEDISTRIBUTION Create a kink angle distribution panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = KinkAngleDistribution
ph = 99; % panel height
pTitle = '... |
github | ivan-usov/FiberApp-master | MaskParameters.m | .m | FiberApp-master/+panel/MaskParameters.m | 3,400 | utf_8 | 7f38413d28d9427f7998f0640686d2f0 | %MASKPARAMETERS Create a mask parameters panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = MaskParameters
FA = guidata(gcf);
ph = 121; % panel height
pTitle = 'Ma... |
github | ivan-usov/FiberApp-master | MSMidpointDisplacement.m | .m | FiberApp-master/+panel/MSMidpointDisplacement.m | 7,146 | utf_8 | df7863451b07b88937eeace33e351cae | %MSMIDPOINTDISPLACEMENT Create a mean-squared midpoint displacement panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = MSMidpointDisplacement
ph = 122; % panel hei... |
github | ivan-usov/FiberApp-master | OrderParameter2D.m | .m | FiberApp-master/+panel/OrderParameter2D.m | 12,975 | utf_8 | b229ba0d23d7f59fc6a1802c52a366f0 | %ORDERPARAMETER2D Create a 2D order parameter panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = OrderParameter2D
ph = 277; % panel height
pTitle = 'Order Paramete... |
github | ivan-usov/FiberApp-master | FiberDataInformation.m | .m | FiberApp-master/+panel/FiberDataInformation.m | 3,548 | utf_8 | 83732634ffd80342053119af866c6797 | %FIBERDATAINFORMATION Create a fiber data information panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = FiberDataInformation
ph = 209; % panel height
pTitle = 'Fi... |
github | ivan-usov/FiberApp-master | HeightProfile.m | .m | FiberApp-master/+panel/HeightProfile.m | 2,692 | utf_8 | b2493e7075b18abaffba5be634b4de09 | %HEIGHTPROFILE Create a height profile panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = HeightProfile
ph = 53; % panel height
pTitle = 'Height Profile';
pTag = '... |
github | ivan-usov/FiberApp-master | ExcessKurtosis.m | .m | FiberApp-master/+panel/ExcessKurtosis.m | 5,008 | utf_8 | 7edeb03402825895aabc151b85e6a992 | %EXCESSKURTOSIS Create an excess kurtosis panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = ExcessKurtosis
ph = 76; % panel height
pTitle = 'Excess Kurtosis';
pTa... |
github | ivan-usov/FiberApp-master | HeightDFT.m | .m | FiberApp-master/+panel/HeightDFT.m | 5,124 | utf_8 | d5c2cf87a849d0a12114ab0e4c230d4d | %HEIGHTDFT Create a height Discrete Fourier transform panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = HeightDFT
ph = 99; % panel height
pTitle = 'Height DFT';
p... |
github | ivan-usov/FiberApp-master | CurvatureDistribution.m | .m | FiberApp-master/+panel/CurvatureDistribution.m | 7,679 | utf_8 | 6d5a4590078023bfee95713f2e43fd5a | %CURVATUREDISTRIBUTION Create a curvature distribution panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = CurvatureDistribution
ph = 168; % panel height
pTitle = '... |
github | ivan-usov/FiberApp-master | ScalingExponent.m | .m | FiberApp-master/+panel/ScalingExponent.m | 5,717 | utf_8 | 8f92bb848c1796e42042a5b0c7e89519 | %SCALINGEXPONENT Create a scaling exponent panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = ScalingExponent
ph = 99; % panel height
pTitle = 'Scaling Exponent';
... |
github | ivan-usov/FiberApp-master | OrientationDistribution.m | .m | FiberApp-master/+panel/OrientationDistribution.m | 6,874 | utf_8 | 9b5f5289cf31f0bb940aa0ea06393af8 | %ORIENTATIONDISTRIBUTION Create an orientation distribution panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = OrientationDistribution
ph = 122; % panel height
pTi... |
github | ivan-usov/FiberApp-master | FiberTrackingParameters.m | .m | FiberApp-master/+panel/FiberTrackingParameters.m | 10,449 | utf_8 | 9229ace4dec081d019ab5c30a7385d45 | %FIBERTRACKINGPARAMETERS Create a fiber tracking parameters panel
% Copyright (c) 2011-2014 ETH Zurich, 2015 FiberApp Contributors. All rights reserved.
% Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
function p = FiberTrackingParameters
ph = 305; % panel height
pTi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.