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 | jonathanmasci/ShapeNet_data_preparation_toolbox-master | extract_lbo.m | .m | ShapeNet_data_preparation_toolbox-master/extract_lbo.m | 419 | utf_8 | 184e9e1537ec53688f3dbb4552136e36 | function extract_lbo(srcpath, dstpath, nLBO)
fnames = dir(fullfile(srcpath, '*.mat'));
parfor i = 1 : length(fnames)
fprintf('Processing %s\n', fnames(i).name)
tmp = load(fullfile(srcpath, fnames(i).name));
[Phi, Lambda, A] = calc_lbo(tmp.shape, nLBO);
parsave(fullfile(dstpath, fnames(i).name), Phi, La... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | get_net.m | .m | ShapeNet_data_preparation_toolbox-master/isc/get_net.m | 2,487 | utf_8 | f223c80d8c4fee7d696e11f156ae8677 | function [in_ray,in_ring,shape,rays_from_point,directions,ds] = get_net(shape,start_vertex,varargin)
%% default parameters
%% determine rings
scale_max = 80; scale_min = 2; nscales = 25;
scales = logspace(log(scale_min)/log(10),log(scale_max)/log(10),nscales+1);
%% determine rays
N_rays = 8;
expa... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | get1ring.m | .m | ShapeNet_data_preparation_toolbox-master/isc/get1ring.m | 2,759 | utf_8 | 95fbcad8237ddf12cf042926c637a91c | function [Vray,TRIV_] = get1ring(shape,i,tt,K,visualize)
if nargin==4,
visualize = 0;
end
XX = [shape.X shape.Y shape.Z];
TRIV_ = find_adj_triang(shape.TRIV,tt,i);
% rng(42,'twister')
TRIV_ = circshift(TRIV_,randi(numel(tt)));% do random re-order of 1-ring, so directions won't depent on it
V1 = XX(TRI... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | fastmarch.m | .m | ShapeNet_data_preparation_toolbox-master/isc/fastmarch.m | 3,943 | utf_8 | 6c83a95ed5f2ea29f60530a30764e7fe | % fastmarch Fast marching algorithm for geodesic distance approximation
%
% Usage:
%
% D = fastmarch(TRIV, X, Y, Z, [src], [opt])
% D = fastmarch(surface, [src], [opt])
%
% Description:
%
% Computes the geodesic distances on a triangulated surfaces using
% the fast marching algorithm. The algorithm... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | geodesic_triangles.m | .m | ShapeNet_data_preparation_toolbox-master/isc/geodesic_triangles.m | 15,005 | utf_8 | 8f96626edcd7102ed4a3099a14a65d8e | function [all_touched,coordinates]= geodesic_triangles(v_source,shoot_dir,shape,scale)
perp = [0;0;0];
[current_triangle,v_loc,o_loc,recon,d1,d2] = project_direction(v_source,shoot_dir,perp,shape);
coordinates = [];
iter =0;
shape.D = -shape.D;
doviz = 0;
all_touched = zeros(400,1);
all_touched_pairs ... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | plot_polarhist.m | .m | ShapeNet_data_preparation_toolbox-master/isc/util/plot_polarhist.m | 498 | utf_8 | 1e011bb5db2c1c56aaa3bec4bcb974be | function plot_polarhist(HIST,rr,th,offset,c)
rr = [0 rr];
th = [0 th];
cc = HIST;
hold on
for r = 1:size(HIST,1)
for t = 1:size(HIST,2)
[X,Y] = drawpatch(th(t)+offset,th(t+1)+offset,rr(r),rr(r+1));
patch(X,Y,cc(r,t),'LineWidth',3);
end
end
if nargin==5
colormap(c)
end
fun... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | compute_vertex_face_ring.m | .m | ShapeNet_data_preparation_toolbox-master/isc/util/compute_vertex_face_ring.m | 1,020 | utf_8 | 7a78589eb73e3304c3ccaa6e08925f9d | function ring = compute_vertex_face_ring(face)
% compute_vertex_face_ring - compute the faces adjacent to each vertex
%
% ring = compute_vertex_face_ring(face);
%
% Copyright (c) 2007 Gabriel Peyre
[tmp,face] = check_face_vertex([],face);
nfaces = size(face,2);
nverts = max(face(:));
ring{nverts} = [];
for i=1:n... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | visualize_triangle.m | .m | ShapeNet_data_preparation_toolbox-master/isc/util/visualize_triangle.m | 1,318 | utf_8 | 1d105f64c1fe95bb65dceddd66781794 | function ha= visualize_triangle(fig_id,points,u_start,shoot_dir,cl1,lw1,cl2,lw2,k);
%% recon is the shooting direction, as reconstructed within the
%% previous triangle.
%% We are now extending the path along this direction within the new triangle.
coordinates = points*u_start';
figure(fig_id);
if nargout==1,
... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | hks.m | .m | ShapeNet_data_preparation_toolbox-master/isc/sihks/hks.m | 794 | utf_8 | 85d4f222a511093b399bda2595e0fec7 | % Computes heat kernel signature H_t(x,x), where H_t(x,y) is the heat kernel
%
% Usage: desc = hks(evecs,evals,T)
%
% Input: evecs - (n x k) Laplace-Beltrami eigenvectors arranged as columns
% evals - (k x 1) corresponding Laplace-Beltrami eigenvalues
% T - (1 x t) time values
%
% ... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | sihks.m | .m | ShapeNet_data_preparation_toolbox-master/isc/sihks/sihks.m | 1,273 | utf_8 | 478ce1aabc6e5b8f983856bb02b99d60 | % Computes scale-covariant and scale-invariant heat kernel signature (SI-HKS)
%
% Usage: [sc,si] = sihks(evecs,evals,T,Omega)
%
% Input: evecs - (n x k) Laplace-Beltrami eigenvectors arranged as columns
% evals - (k x 1) corresponding Laplace-Beltrami eigenvalues
% alpha - log scalespace... |
github | jonathanmasci/ShapeNet_data_preparation_toolbox-master | mshlp_matrix.m | .m | ShapeNet_data_preparation_toolbox-master/isc/sihks/mshlp_matrix.m | 1,679 | utf_8 | 769d89f1fad49c165703383fd490805c | function [W A] = mshlp_matrix(shape, opt)
%
% Compute the Laplace-Beltrami matrix from mesh
%
% INPUTS
% filename: off file of triangle mesh.
% opt.htype: the way to compute the parameter h. h = hs * neighborhoodsize
% if htype = 'ddr' (data driven); h = hs if hytpe = 'psp' (pre-specify)
% De... |
github | xiuyechen/FishExplorer-master | GUI_FishExplorer.m | .m | FishExplorer-master/GUI_FishExplorer.m | 127,223 | utf_8 | cc891dad34190a1a8b49310f0b05035a | %{
------Interactive app for exploratory analysis of calcium imaging data----
(with stimulus, behavior, and anatomy)
To start, run the included script "LoadGUI.m".
Input calcium data: 1 trace per cell/ROI, ~50-100k cells per fish
load collection of cells from multiple fish, or load full data of single fish individual... |
github | xiuyechen/FishExplorer-master | GUI_FishExplorer - Copy.m | .m | FishExplorer-master/old code/GUI_FishExplorer - Copy.m | 129,314 | utf_8 | f055737483b60cd06ab93b2d360876f2 | %%% Interactive app for exploratory analysis of calcium imaging data
% (with stimulus, behavior, and anatomy)
%{
Input calcium data: 1 trace per cell/ROI, ~50,000 cells per fish
load collection of cells from multiple fish, or load full data of single fish individually
main outputs: GUI plots, clusters saved into .mat,... |
github | xiuyechen/FishExplorer-master | DrawClusters.m | .m | FishExplorer-master/old code/first version/DrawClusters.m | 6,111 | utf_8 | 17e161bb2384a94eb260e197625d672f | function DrawClusters(h1,M,gIX,dataFR,numK,stim,fictive,clrmap,rankscore,iswrite)
pos = get(gca,'Position');
barratio = 0.03;
%% Prepare cluster data
% down-sample
displaymax = 1000;
numcell = size(M,1);
if numcell > displaymax,
skip = round(numcell/displaymax);
M = M(1:skip:end,:);
gIX = gIX(1:skip:end,:)... |
github | xiuyechen/FishExplorer-master | Plotting.m | .m | FishExplorer-master/old code/first version/Plotting.m | 1,911 | utf_8 | 81ee2a7fd1a435d080630e5a54ad1734 | function Plotting(hfig)
M = getappdata(hfig,'M');
gIX = getappdata(hfig,'gIX');
stim = getappdata(hfig,'stim');
C = FindCentroid(gIX,M);
%% ok so let's say some centroids can be approximated by a (linear-ish) combination of regressors and some of their delayed versions.
% get the stim-regressors. They are:
% % if fi... |
github | xiuyechen/FishExplorer-master | PlotBy16StimsFromGUI.m | .m | FishExplorer-master/old code/first version/PlotBy16StimsFromGUI.m | 6,307 | utf_8 | 41840ee6386e628f6ff9b2389e31eb68 | function PlotBy16StimsFromGUI(hfig) % interactive
% hfig = gcf;
M = getappdata(hfig,'M');
stim = getappdata(hfig,'stim');
i_fish = getappdata(hfig,'i_fish');
% necessary?? did in RefreshFigure too
gIX = getappdata(hfig,'gIX');
[~,I] = sort(gIX);
M = M(I,:);
[M_,nstim,sequence,interval,rep] = SortMbystim(M,stim,i_fish... |
github | xiuyechen/FishExplorer-master | DrawClustersOnMap_LSh.m | .m | FishExplorer-master/old code/first version/DrawClustersOnMap_LSh.m | 4,979 | utf_8 | 133d64babb67b3262d7946297017feb2 | function [tot_image, dim_totimage] = DrawClustersOnMap_LSh(CInfo,cIX,gIX,numK,anat_yx,anat_yz,anat_zx,clrmap,full)
%% formatting
[s1,s2] = size(cIX);
if s2>s1,
cIX = cIX';
end
[s1,s2] = size(gIX);
if s2>s1,
gIX = gIX';
end
% down-sample
if ~exist('full','var'),
displaymax = 8000;
if length(cIX) > disp... |
github | xiuyechen/FishExplorer-master | Plotting_withinM.m | .m | FishExplorer-master/old code/first version/Plotting_withinM.m | 2,067 | utf_8 | c55b99aaa8ed8c7f287c16016c822934 | function Plotting_withinM(hfig)
M = getappdata(hfig,'M');
gIX = getappdata(hfig,'gIX');
% stim = getappdata(hfig,'stim');
C = FindCentroid(gIX,M);
%% ok so let's say some centroids can be approximated by a (linear-ish) combination of regressors and some of their delayed versions.
% get the stim-regressors. They are:
... |
github | xiuyechen/FishExplorer-master | BasicPlotMaps.m | .m | FishExplorer-master/old code/first version/BasicPlotMaps.m | 7,670 | utf_8 | 94144baebd54a4ed151977c406e23c73 | function BasicPlotMaps(cIX,gIX,M,CInfo,photostate,anat_yx,anat_yz,anat_zx) %(cIX,gIX,cIX_0,M_0,CIF,numK,M)
% M = M_0(cIX_0(cIX),:);
numK = length(unique(gIX));
%%
dataFR = 1;
figure('Position',[100 50 1350 900]);%,'DeleteFcn',@closefigure_Callback);
h1 = axes('Position',[0.05, 0.06, 0.5, 0.85]); % left ~subplot
BasicDr... |
github | xiuyechen/FishExplorer-master | GUI_FishExplorer.m | .m | FishExplorer-master/old code/first version/GUI_FishExplorer.m | 103,204 | utf_8 | cddccc737ea5e95c2e236ab7c971822e | %%% Interactive app for exploratory analysis of calcium imaging data
% (with stimulus, behavior, and anatomy)
% Input calcium data: 1 trace per cell/ROI, ~50,000 cells per fish
% load collection of cells from multiple fish, or load full data of single fish individually
% main outputs: GUI plots, clusters saved into .... |
github | xiuyechen/FishExplorer-master | Modeling001.m | .m | FishExplorer-master/old code/first version/Modeling001.m | 10,791 | utf_8 | 22a47090d7599093e5dcab8b5b29e98a | function Modeling001(hfig)
cIX_0 = getappdata(hfig,'cIX');
gIX_0 = getappdata(hfig,'gIX');
numU = getappdata(hfig,'numU');
M = getappdata(hfig,'M');
C = FindCentroid(gIX_0,M);
[~,~,I_stimlock] = RankByStimLock_Direct(hfig,cIX_0,gIX_0,M,numU);
%% target response clusters:
% IX_rsp = [45,50,53,57,74,75]; % indices of re... |
github | xiuyechen/FishExplorer-master | estimate_MP2.m | .m | FishExplorer-master/old code/Yu Hu's code/pca_pruning_linkage/estimate_MP2.m | 1,962 | utf_8 | 93f7d57f06b3f046be0289ce52ee8a47 | function [lb_e, sigma_e, tf_conv] = estimate_MP2(s, pout, gap,...
niter, nx_target, flag_distance, tf_verbose)
% fitting with histogram, using L2 or dKL
if ~exist('pout', 'var')
pout = 0.5;
end
if ~exist('gap', 'var')
gap = 0.2;
end
if ~exist('niter', 'var')
niter = 10;
end
if ~exist('tf_verbose', 'var'... |
github | xiuyechen/FishExplorer-master | DrawCellsOnAnatProj_MultipleFish.m | .m | FishExplorer-master/script functions/DrawCellsOnAnatProj_MultipleFish.m | 10,941 | utf_8 | 421a02f204f1af18e28b2f477a3f1589 | function [tot_image, dim_totimage] = DrawCellsOnAnatProj_MultipleFish(hfig,AllCentroids,range_fish,range_clus,isPopout)
anat_yx = getappdata(hfig,'anat_yx_norm');
anat_yz = getappdata(hfig,'anat_yz_norm');
anat_zx = getappdata(hfig,'anat_zx_norm');
k_zres = 2.5;
radius_xy = 3;
width_z = 5;
thickness_z = 3;
%%
CellXYZ... |
github | xiuyechen/FishExplorer-master | Make4color2Dcolormap.m | .m | FishExplorer-master/script functions/Make4color2Dcolormap.m | 1,119 | utf_8 | 0cebb1c654520a430bac58c08928810d | function grid = Make4color2Dcolormap(res,plotdemo)
% draw a square color swatch, custom colored:
% lower left: red
% lower right: green
% upper right: cyan
% upper left: purple
%%
if ~exist('res','var')
res = 100;
end
grid = zeros(res,res,3);
% red/green/cyan/purple map
grid(:,:,1) = 0.5*makeGradientLayer(0,1,re... |
github | xiuyechen/FishExplorer-master | smooth.m | .m | FishExplorer-master/ref functions/smooth.m | 20,182 | utf_8 | ff0319d81a1bea0ac8315f876a4deabb | function [c,ww] = smooth(varargin)
%SMOOTH Smooth data.
% Z = SMOOTH(Y) smooths data Y using a 5-point moving average.
%
% Z = SMOOTH(Y,SPAN) smooths data Y using SPAN as the number of points used
% to compute each element of Z.
%
% Z = SMOOTH(Y,SPAN,METHOD) smooths data Y with specified METHOD. The
% availa... |
github | xiuyechen/FishExplorer-master | munkres.m | .m | FishExplorer-master/ref functions/munkres.m | 6,974 | utf_8 | 2079834725096a25fa3739868c7bbb0e | function [assignment,cost] = munkres(costMat)
% MUNKRES Munkres (Hungarian) Algorithm for Linear Assignment Problem.
%
% [ASSIGN,COST] = munkres(COSTMAT) returns the optimal column indices,
% ASSIGN assigned to each row and the minimum COST based on the assignment
% problem represented by the COSTMAT, where the (i,j... |
github | xiuyechen/FishExplorer-master | BasicDrawCellsOnAnatProj.m | .m | FishExplorer-master/GUI preload processing/BasicDrawCellsOnAnatProj.m | 3,208 | utf_8 | 2577817e279df27c455f8975dc051d7d | function [tot_image, dim_totimage] = BasicDrawCellsOnAnatProj(CellXYZ,cIX,gIX,numK,anat_yx,anat_yz)
%% formatting
[s1,s2] = size(cIX);
if s2>s1,
cIX = cIX';
end
[s1,s2] = size(gIX);
if s2>s1,
gIX = gIX';
end
% get numK
if exist('numK','var'),
numK = double(max(numK,max(gIX)));
else
numK = double(max(g... |
github | xiuyechen/FishExplorer-master | BasicPlotMaps.m | .m | FishExplorer-master/GUI preload processing/BasicPlotMaps.m | 7,872 | utf_8 | 43a92fea2e38ea91789d10d62b810835 | function BasicPlotMaps(cIX,gIX,M,CellXYZ,photostate,anat_yx,anat_yz)%,anat_zx) %(cIX,gIX,cIX_0,M_0,CIF,numK,M)
% M = M_0(cIX_0(cIX),:);
numK = length(unique(gIX));
%%
dataFR = 1;
figure('Position',[100 50 1350 900]);%,'DeleteFcn',@closefigure_Callback);
h1 = axes('Position',[0.05, 0.06, 0.5, 0.85]); % left ~subplot
Bas... |
github | xiuyechen/FishExplorer-master | combineFiguresTB.m | .m | FishExplorer-master/helper functions/combineFiguresTB.m | 1,191 | utf_8 | 4e047ad4ead208ee7186c6b2a6082c37 | function f = combineFiguresTB(hTop, hBottom)
% 2 usages:
% 1) 2 input (hLeft, hRight)
% 2) input array of figure handles as first parameter ('hRight' not used)
if length(hLeft)==1
f = combine2FiguresTB(hTop,hBottom);
else % multiple inputs, combine recursively
M = hTop;
f = M(1);
for i = 2:length(M)
... |
github | xiuyechen/FishExplorer-master | combineFiguresLR.m | .m | FishExplorer-master/helper functions/combineFiguresLR.m | 1,191 | utf_8 | 399d33614e54d5894e41614146c1ce2e | function f = combineFiguresLR(hLeft, hRight)
% 2 usages:
% 1) 2 input (hLeft, hRight)
% 2) input array of figure handles as first parameter ('hRight' not used)
if length(hLeft)==1
f = combine2FiguresLR(hLeft,hRight);
else % multiple inputs, combine recursively
M = hLeft;
f = M(1);
for i = 2:length(M)
... |
github | xiuyechen/FishExplorer-master | DrawTimeSeries.m | .m | FishExplorer-master/GUI functions/DrawTimeSeries.m | 16,248 | utf_8 | 7c0b88c237d8b078daab8f5e2b22befc | function DrawTimeSeries(hfig,cIX_plot,gIX_plot,opts)
if ~exist('cIX_plot','var')
cIX = getappdata(hfig,'cIX');
else
cIX = cIX_plot;
end
if ~exist('gIX_plot','var')
gIX = getappdata(hfig,'gIX');
else
gIX = gIX_plot;
end
%% set up options
% set defaults
% opts_default = struct('ax',gca,...
% 'isPopou... |
github | xiuyechen/FishExplorer-master | MakeCircularMask.m | .m | FishExplorer-master/GUI functions/MakeCircularMask.m | 543 | utf_8 | 64aaeff89f130ab04959a37e21657ccc | function circle_inds = MakeCircularMask(radius_xy,dimv_yx)
circle=makeDisk2(radius_xy); % make mask of filled circle % (7,15)
mask = zeros(dimv_yx(1),dimv_yx(2));
mask(1:radius_xy*2+1,1:radius_xy*2+1) = circle;
ix = find(mask);
cix = sub2ind([dimv_yx(1),dimv_yx(2)],radius_xy+1,radius_xy+1);% 8
circle_inds = ix - cix;
... |
github | xiuyechen/FishExplorer-master | DrawTimeSeries_MultiFishCentroid.m | .m | FishExplorer-master/GUI functions/DrawTimeSeries_MultiFishCentroid.m | 5,606 | utf_8 | 9297e28264452a8319e4ffde306028a1 | function DrawTimeSeries_MultiFishCentroid(hfig,AllCentroids,range_fish,range_clus,isPopout)
% load
numK = getappdata(hfig,'numK');
behavior = getappdata(hfig,'behavior');
stim = getappdata(hfig,'stim');
clrmap = getappdata(hfig,'clrmap');
% rankscore = getappdata(hfig,'rankscore');
rankID = getappdata(hfig,'rankID');
%... |
github | xiuyechen/FishExplorer-master | GetColormap.m | .m | FishExplorer-master/GUI functions/GetColormap.m | 1,509 | utf_8 | e5f79cbf4edce9fc82c2642af222f042 | function cmap = GetColormap(clrmap_name,numK)
numK = double(numK);
data_dir = GetCurrentDataDir();
load(fullfile(data_dir,'CustomColormaps.mat'));
if strcmp(clrmap_name,'hsv_new'),
cmap64 = hsv_new;
cmap = InterpColormap(cmap64,numK);
elseif strcmp(clrmap_name,'jet'),
cmap = flipud(jet(numK));
elseif st... |
github | xiuyechen/FishExplorer-master | CorrPlot.m | .m | FishExplorer-master/GUI functions/CorrPlot.m | 1,136 | utf_8 | a2ff20ced66bfbadc461c8ba0b4691b7 | function cmap = CorrPlot(coeffs,isPlotText,ylabels)
im = coeffs;
im(isnan(im)) = 0;
% red-white-blue colormap
cmap = zeros(64,3);
cmap(:,1) = [linspace(0,1,32), linspace(1,1,32)];
cmap(:,2) = [linspace(0,1,32), linspace(1,0,32)];
cmap(:,3) = [linspace(1,1,32), linspace(1,0,32)];
minlim = -1; %min(min(im));
maxlim = 1;... |
github | xiuyechen/FishExplorer-master | CorrPlotWeighted.m | .m | FishExplorer-master/GUI functions/CorrPlotWeighted.m | 2,054 | utf_8 | c9823d532a8e702a1b711ee038ce7a73 | function cmap = CorrPlotWeighted(coeffs,gIX)%,isPlotText,ylabels)
coeffs(isnan(coeffs)) = 0;
% size of 'squares' corresponds to cluster size (from 'sizes')
% im = coeffs;
[gIX, numK] = SqueezeGroupIX(gIX);
U = unique(gIX);
sizes = zeros(1,numK);
for i = 1:numK
IX = find(gIX==U(i));
sizes(i) = length(IX);
end
... |
github | xiuyechen/FishExplorer-master | AutoClusterTest.m | .m | FishExplorer-master/AK Test Scripts/AutoClusterTest.m | 22,461 | utf_8 | f6c5abf3c5a8e8800ba94c6ba34a51c2 | function AutoClusterTest(hObject,~)
%hfig = getParentFigure(hObject);
hfig = hObject;% pass it hFig for now
cIX = getappdata(hfig,'cIX');
gIX = getappdata(hfig,'gIX');
M = getappdata(hfig,'M');
M_0 = getappdata(hfig,'M_0');
thres_size = 10;
thres_split = getappdata(hfig,'thres_split');
thres_stimlock = 1.0;
thres_merg... |
github | xiuyechen/FishExplorer-master | PlotClusterinResult.m | .m | FishExplorer-master/AK Test Scripts/PlotClusterinResult.m | 1,103 | utf_8 | f1f251147f43d47bfc95976ef7af3f50 | %
% Copyright (c) 2015, Yarpiz (www.yarpiz.com)
% All rights reserved. Please read the "license.txt" for license terms.
%
% Project Code: YPML110
% Project Title: Implementation of DBSCAN Clustering in MATLAB
% Publisher: Yarpiz (www.yarpiz.com)
%
% Developer: S. Mostapha Kalami Heris (Member of Yarpiz Team)
%
% Cont... |
github | xiuyechen/FishExplorer-master | DBSCAN.m | .m | FishExplorer-master/AK Test Scripts/DBSCAN.m | 1,610 | utf_8 | e4a333d37217a257d63bf15886d5d8ba | %
% Copyright (c) 2015, Yarpiz (www.yarpiz.com)
% All rights reserved. Please read the "license.txt" for license terms.
%
% Project Code: YPML110
% Project Title: Implementation of DBSCAN Clustering in MATLAB
% Publisher: Yarpiz (www.yarpiz.com)
%
% Developer: S. Mostapha Kalami Heris (Member of Yarpiz Team)
%
% Cont... |
github | xiuyechen/FishExplorer-master | DBSCAN_AKmod.m | .m | FishExplorer-master/AK Test Scripts/DBSCAN_AKmod.m | 1,630 | utf_8 | bbd98333952b93cf0a7b08cf64824746 | %
% Copyright (c) 2015, Yarpiz (www.yarpiz.com)
% All rights reserved. Please read the "license.txt" for license terms.
%
% Project Code: YPML110
% Project Title: Implementation of DBSCAN Clustering in MATLAB
% Publisher: Yarpiz (www.yarpiz.com)
%
% Developer: S. Mostapha Kalami Heris (Member of Yarpiz Team)
%
% Cont... |
github | aniruddha-rajshekar/Face-Replacement-master | urlreadpost.m | .m | Face-Replacement-master/urlreadpost.m | 4,124 | utf_8 | 415c4cf82008395df7350567049758f0 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [output,status] = urlreadpost(urlChar,params)
%URLREADPOST Returns the contents of a URL POST method as a string.
% S = URLREADPOST('URL',PARAMS) passes information to the server as
% a POST request. PARAMS is a cell array of param/value pairs.
%... |
github | aniruddha-rajshekar/Face-Replacement-master | parse_json.m | .m | Face-Replacement-master/parse_json.m | 5,591 | utf_8 | 511272119247075d3fa284c56d18e945 | function [data json] = parse_json(json)
% [DATA JSON] = PARSE_JSON(json)
% This function parses a JSON string and returns a cell array with the
% parsed data. JSON objects are converted to structures and JSON arrays are
% converted to cell arrays.
%
% Example:
% google_search = 'http://ajax.googleapis.com/ajax/services... |
github | adamfara/slasim-master | sla_steer.m | .m | slasim-master/sla_steer.m | 3,413 | utf_8 | 3863795e8e87cb66e33f4f1f84321416 | %%
% Adam Farabaugh
% Penn Electric Racing
% SLA suspension rigger
function [ opts ] = sla_steer( ipts, step, n_points )
% ipts:
% uaf uao uar
% laf lao lar
% wc wcp
% tri tro
% pro
% bc pivot bc axis bc shock bc arb bc pr
% arb link pt arb pivot arb axis
% shock inboard
... |
github | adamfara/slasim-master | link_loads.m | .m | slasim-master/link_loads.m | 2,559 | utf_8 | e0891352ac6d3453d45d40903c60ba89 | %Suspension member load calculator
%Foster Collins
%Fall 2015
%Requires a loaded look up table
function [loads] = link_loads(F, M, ShockDisplacement, SteeringAngle, CarLocation, sla)
%calculates forces in suspension members based on forces and moments at the
%contact patch
%steering angle for current wheel **not stee... |
github | adamfara/slasim-master | sla.m | .m | slasim-master/sla.m | 777 | utf_8 | 141cb7c296215d9cad363ca1c94868d8 | %%
% Adam Farabaugh
% Penn Electric Racing
% SLA suspension rigger
%
% Input inboard points and outboard points at ride height
% Solve for point locations at some deflection
%
% Actuation is ignored, i.e. pushrod/bellcrank location not known
% These can be integrated later through motion ratio math
%
% Coordinate syst... |
github | adamfara/slasim-master | sla_geometry.m | .m | slasim-master/sla_geometry.m | 6,750 | utf_8 | 25b9cb36abadd022edab0fc96a4594c7 | %%
% Adam Farabaugh
% Penn Electric Racing
% SLA suspension rigger
function [ opts ] = sla_geometry( ipts )
n_steps_ride = size(ipts, 3);
n_steps_steering = size(ipts, 4);
opts.camber = zeros(n_steps_steering, n_steps_ride);
opts.steered_angle = zeros(n_steps_steering, n_steps_r... |
github | adamfara/slasim-master | sla_kinematics.m | .m | slasim-master/sla_kinematics.m | 10,605 | utf_8 | 55b9d465d065e735b012bd5275e2c8cb | %%
% Adam Farabaugh
% Penn Electric Racing
% SLA suspension rigger
%
% Input inboard points and outboard points at ride height
% Solve for point locations at some deflection
%
% Coordinate system is SAE J670 - Z down, X forward, Y outboard
% Assume we do this for the right side, can flip for left
function [ lookup ] =... |
github | George-Zheng/ENGG4801-Passive-Radar-Detection-master | rangedopplerfft.m | .m | ENGG4801-Passive-Radar-Detection-master/MATLAB files/Paper 1/thesis/rangedopplerfft.m | 1,653 | utf_8 | d276afe5d2efd11d41fb1608d5858a14 | %Generates the range doppler map for a given receiver over a specified
%range of inputs
function [rdmap, ranges, freqs] = rangedopplerfft(phi, freq, range, freqs, rxdirect)
%Inputs
% phi is an Nx1 column vector of the samples received at receiver of
% interest.
% freq is the sampling freq in Hz
% range is the ... |
github | George-Zheng/ENGG4801-Passive-Radar-Detection-master | power_method_test.m | .m | ENGG4801-Passive-Radar-Detection-master/MATLAB files/Paper 1/Power Iteration/power_method_test.m | 12,991 | utf_8 | c0cde0ba46c5c1b55d74b567be4145f3 | function power_method_test ( )
%*****************************************************************************80
%
%% POWER_METHOD_TEST tests the POWER_METHOD library.
%
% Licensing:
%
% This code is distributed under the GNU LGPL license.
%
% Modified:
%
% 25 May 2008
%
% Author:
%
% John Burkardt
%
tim... |
github | George-Zheng/ENGG4801-Passive-Radar-Detection-master | power_method_test.m | .m | ENGG4801-Passive-Radar-Detection-master/MATLAB files/Tests and Exploration/Power Iteration/power_method_test.m | 12,991 | utf_8 | c0cde0ba46c5c1b55d74b567be4145f3 | function power_method_test ( )
%*****************************************************************************80
%
%% POWER_METHOD_TEST tests the POWER_METHOD library.
%
% Licensing:
%
% This code is distributed under the GNU LGPL license.
%
% Modified:
%
% 25 May 2008
%
% Author:
%
% John Burkardt
%
tim... |
github | George-Zheng/ENGG4801-Passive-Radar-Detection-master | rangedoppler.m | .m | ENGG4801-Passive-Radar-Detection-master/MATLAB files/Paper 2/rangedoppler.m | 1,528 | utf_8 | c06bc2e1d8601270e79018f6df61c92c | %Generates the range doppler map for a given receiver over a specified
%range of inputs
function [rdmap, ranges, freqs] = rangedoppler(phi, freq, ranges, freqs)
%Inputs
% phi is an Nx1 column vector of the samples received at receiver of
% interest.
% freq is the sampling freq in Hz
% ranges as a 1-D increasin... |
github | George-Zheng/ENGG4801-Passive-Radar-Detection-master | rangedoppler_direct.m | .m | ENGG4801-Passive-Radar-Detection-master/MATLAB files/Paper 2/rangedoppler_direct.m | 1,177 | utf_8 | 764dcb397a409fcaa0a16471f1dba411 | %Generates the range doppler map for a given receiver over a specified
%range of inputs
function [rdmap, ranges, freqs] = rangedoppler_direct(phi, freq, ranges, freqs)
%Inputs
% phi is an Nx1 column vector of the samples received at receiver of
% interest.
% freq is the sampling freq in Hz
% ranges as a 1-D in... |
github | George-Zheng/ENGG4801-Passive-Radar-Detection-master | rangedopplerfft.m | .m | ENGG4801-Passive-Radar-Detection-master/MATLAB files/Range Doppler Transform/rangedopplerfft.m | 1,653 | utf_8 | d276afe5d2efd11d41fb1608d5858a14 | %Generates the range doppler map for a given receiver over a specified
%range of inputs
function [rdmap, ranges, freqs] = rangedopplerfft(phi, freq, range, freqs, rxdirect)
%Inputs
% phi is an Nx1 column vector of the samples received at receiver of
% interest.
% freq is the sampling freq in Hz
% range is the ... |
github | George-Zheng/ENGG4801-Passive-Radar-Detection-master | power_method_test.m | .m | ENGG4801-Passive-Radar-Detection-master/MATLAB files/Paper 1 - Optimisation/Power Iteration/power_method_test.m | 12,991 | utf_8 | c0cde0ba46c5c1b55d74b567be4145f3 | function power_method_test ( )
%*****************************************************************************80
%
%% POWER_METHOD_TEST tests the POWER_METHOD library.
%
% Licensing:
%
% This code is distributed under the GNU LGPL license.
%
% Modified:
%
% 25 May 2008
%
% Author:
%
% John Burkardt
%
tim... |
github | tingliu/midiviz-master | drawBeam.m | .m | midiviz-master/src/drawBeam.m | 3,129 | utf_8 | 58f42ff4874e4d1abe1a50c128fce8c3 | % point: every row is a point
function [im point] = drawBeam (im, point, order, tail)
beamWidth = 10;
intervalWidth = round(beamWidth / 2); % interval between two beams
noteNum = getLength(point, 1);
[m n] = size(im);
is = point(1, 1);
js = point(1, 2);
ie = point(noteNum, 1);
je = point(noteNum, 2);
if is < ie
... |
github | tingliu/midiviz-master | paste.m | .m | midiviz-master/src/paste.m | 531 | utf_8 | d0573e3b95d9ce38aad074943760571f | % if center == -1, im and imt have the same size and overlap
function im = paste (im, imt, center)
[m n] = size(im);
[mt nt] = size(imt);
if center == -1
di = 0;
dj = 0;
else
di = center(1) - floor((mt - 1) / 2) - 1;
dj = center(2) - floor((nt - 1) / 2) - 1;
end
for it = 1: 1: mt
for jt = 1: 1: n... |
github | tingliu/midiviz-master | getNoteTemplate.m | .m | midiviz-master/src/getNoteTemplate.m | 15,704 | utf_8 | 975e021d98eec8f2c7d1f474a5718556 | % forceTail: 0 (no); 1 (forced down); 2 (forced up)
% noteTemplate:
% verticalMove
% feat:
% dur
% ledger
% accidental
% tail
% rest
% image
function noteTemplate = getNoteTemplate (subNoteInfo, ...
forceTail, forceQuarter)
global halfdist;
noteTemplate = initNoteTemplate(subNo... |
github | tingliu/midiviz-master | drawGroup.m | .m | midiviz-master/src/drawGroup.m | 4,822 | utf_8 | eb6c4905f19b73edd7db3fa5a8d1b651 | % sizes = [segHeight noteWidth vacWidth]
% If there is rest, it must be in a group with no others
function groupImage = drawGroup (noteGroup, subNoteInfoSet, sizes)
global err;
noteNum = getLength(noteGroup, 2); % Note num in this group
segHeight = sizes(1);
noteWidth = sizes(2);
vacWidth = sizes(3);
totalNoteNum =... |
github | tingliu/midiviz-master | genNoteTemplate.m | .m | midiviz-master/src/genNoteTemplate.m | 5,124 | utf_8 | 9ac644911ce3d2af85e3fd0c8a4c776e | % forceTail: 0 (no); 1 (forced down); 2 (forced up)
% noteTemplate:
% verticalMove
% feat:
% dur
% ledger
% accidental
% tail
% rest
% image
function noteTemplate = genNoteTemplate (subNoteInfo, ...
forceTail, forceQuarter)
global halfdist;
noteTemplate = initNoteTemplate(subNo... |
github | tingliu/midiviz-master | roundBeat.m | .m | midiviz-master/src/roundBeat.m | 2,679 | utf_8 | cf375a4769e354883852bab971dfb0ed | % isExistRndErr: 0 (no);
% 1 (may be next smaller beat);
function [beatOut isExistRndErr] = roundBeat (beatIn)
global err;
global beatTab;
len = getLength(beatIn, 1);
beatOut = zeros(len, 1);
isExistRndErr = zeros(len, 1);
lenTab = getLength(beatTab, 1);
if len == 1
% Add exception only for beat ... |
github | tingliu/midiviz-master | drawAsItIs.m | .m | midiviz-master/src/drawAsItIs.m | 1,356 | utf_8 | 77fa31d9b8ea76747563ea77393f54c0 | % sizes = [segHeight noteWidth vacWidth]
% forceQuarter: 0 (none); 1 (all use quarter note)
function [groupImage verticalMoveSet tailSet] = ...
drawAsItIs (noteGroup, subNoteInfoSet, sizes, forceTail, forceQuarter)
% global halfdist;
noteNum = getLength(noteGroup, 2);
verticalMoveSet = zeros(noteNum, 1);
tailSet ... |
github | lightd22/nodalDG-master | plot_2dadv.m | .m | nodalDG-master/plot_2dadv.m | 908 | utf_8 | e0d0161fa511cb4f2f7f1b9577b040a9 | % Data Extraction and plotting function for 2d unsplit modal DG
% By Devin Light 5/1/14
% ---
function out = plot_2dadv(methname,which_test,ncfilename,res,meqn)
Qname = strcat('Q',res{1});
xname = strcat('x',res{1});
yname = strcat('y',res{1});
muname = strcat('mu',res{1});
m... |
github | lightd22/nodalDG-master | reactiveExact.m | .m | nodalDG-master/reactiveExact.m | 1,560 | utf_8 | 2ebc3e025c010a07f676b2ba90c17a20 | %% Reactive chemistry exact solution at t=0,T,2T,...
function qOut = reactiveExact(r,q_ic,t)
qOut = 0.*q_ic;
stat = size(q_ic,3);
disp(['Reading ' num2str(stat) ' equations...']);
if(stat==2)
q1_ic = q_ic(:,:,1);
q2_ic = q_ic(:,:,2);
a = r.*(q1_ic+q2_ic);
% qOut(:... |
github | stefaneidelloth/treez-master | units.m | .m | treez-master/treezCore/lib/units_Rob_deCarvalho/units.m | 10,347 | utf_8 | cd8a77e7e2d436699428800fcafdb2e7 | function varargout = units
%
%--------------------------------------------------------------------------
%This function returns a struct. Each field of the struct contains
%a new type of variable called a dimensioned variable. A dimensioned
%variable contains both a value (any valid matlab numeric type) and
%dimensi... |
github | mscaudill/neuroGit-master | multiWaitbar.m | .m | neuroGit-master/data-analysis/utilities/matlabCentralUtils/multiWaitbar.m | 26,088 | utf_8 | b93e10d7d04a7fba7d184cbf99dbe672 | function cancel = multiWaitbar( label, varargin )
%multiWaitbar: add, remove or update an entry on the multi waitbar
%
% multiWaitbar(LABEL,VALUE) adds a waitbar for the specified label, or
% if it already exists updates the value. LABEL must be a string and
% VALUE a number between zero and one or the string 'Cl... |
github | mscaudill/neuroGit-master | shadedErrorBar.m | .m | neuroGit-master/data-analysis/utilities/matlabCentralUtils/shadedErrorBar.m | 4,917 | utf_8 | bd984b83bfb1545a5af5bfdaeeba267d | %function shadedErrorBar(x,y,errBar,lineProps,transparent)
function H=shadedErrorBar(x,y,errBar,lineProps,transparent)
%
% Purpose
% Makes a 2-d line plot with a pretty shaded error bar made
% using patch. Error bar color is chosen automatically.
%
% Inputs
% x - vector of x values [optional, can be left empty]
% y - ... |
github | mscaudill/neuroGit-master | tiffViewer.m | .m | neuroGit-master/data-analysis/TiffViewerGui/tiffViewer.m | 7,459 | utf_8 | 024597ccdfb38169ea367ad8d0c3bee7 | function varargout = tiffViewer(varargin)
% TIFFVIEWER MATLAB code for tiffViewer.fig allows the user to load images
% or stacks from their raw collected imaging data and perform basic
% functions and analysis similar to imageJ.
%
% Last Modified by GUIDE v2.5 26-Feb-2014 16:09:50
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
github | mscaudill/neuroGit-master | ExpMakerFilterTable.m | .m | neuroGit-master/data-analysis/ePhys/eExpMakerHelperFuncs/ExpMakerFilterTable.m | 2,265 | utf_8 | f567910c802b72656599dc3e2f80a282 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | ExpMaker.m | .m | neuroGit-master/data-analysis/ePhys/eExpMaker/ExpMaker.m | 47,984 | utf_8 | 631ba56bfdf323461e3c3ccdc4013240 | function varargout = ExpMaker(varargin)
% EXPMAKER M-file for ExpMaker.fig creates an exper structure containing all
% the data files and associated metadata for recording from a single cell.
% It consist of four stages: data selection, filtering, spike detection,
% and results viewing. The gui changes visually as the ... |
github | mscaudill/neuroGit-master | dispTiff.m | .m | neuroGit-master/data-analysis/CaIMG/ImExpHelperFuncs/dispTiff.m | 1,753 | utf_8 | fab750f81c54f72dda6fd4bac5893683 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | multiCellFluorPlotter.m | .m | neuroGit-master/data-analysis/CaIMG/ImExpHelperFuncs/multiCellFluorPlotter.m | 10,507 | utf_8 | fd4c50a6384b862fcb68e5e527ab26a2 | function multiCellFluorPlotter(figureHandle, signalMaps, roiSets,...
stimVariable,stimulus, fileInfo, MIP,...
drawMethod)
%MULTICELLFLUORPLOTTER Summary of this function goes here
% Detailed explanation goes here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
github | mscaudill/neuroGit-master | insertTrigToCell.m | .m | neuroGit-master/data-analysis/CaIMG/ImExpHelperFuncs/insertTrigToCell.m | 1,517 | utf_8 | ed3c1df0ce70c0caf895af009d87f534 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | dispStimTiming.m | .m | neuroGit-master/data-analysis/CaIMG/ImExpHelperFuncs/dispStimTiming.m | 5,360 | utf_8 | 0116a200373094ea68bf56c5538341a6 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | stimImageMatcher.m | .m | neuroGit-master/data-analysis/CaIMG/ImExpHelperFuncs/stimImageMatcher.m | 6,045 | utf_8 | 5101a1904ecb91396b34377b1da9911b | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | dispImStimInfo.m | .m | neuroGit-master/data-analysis/CaIMG/ImExpHelperFuncs/dispImStimInfo.m | 1,611 | utf_8 | 701a8b75bdd5e8ff205d35c78271cb2e | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | accumFluorPlot.m | .m | neuroGit-master/data-analysis/CaIMG/scripting/csUnclassifiedPlots/accumFluorPlot.m | 9,475 | utf_8 | 2bd4a344d819e88af711b738b5e0dc7f | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | ImExpMaker.m | .m | neuroGit-master/data-analysis/CaIMG/ImExpMakerGui/ImExpMaker.m | 40,531 | utf_8 | 12b3e31bb3a7c654b8b7e84daee64bfc | function varargout = ImExpMaker(varargin)
% IMEXPMAKER M-file for ImExpMaker.fig
% Last Modified by GUIDE v2.5 01-Jun-2016 15:47:01
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it... |
github | mscaudill/neuroGit-master | imExpAnalyzer.m | .m | neuroGit-master/data-analysis/CaIMG/ImExpAnalyzerGui/imExpAnalyzer.m | 95,211 | utf_8 | e31b1edb6fa6815495f9493f4f5d323a | function varargout = imExpAnalyzer(varargin)
% IMEXPANALYZER M-file for imExpAnalyzer.fig
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public... |
github | mscaudill/neuroGit-master | trialStruct.m | .m | neuroGit-master/stimulus-delivery/StimGenHelperFuncs/trialStruct.m | 15,253 | utf_8 | 9a5224270e57d0ffeb86927abca8d4cc | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | GammaCorrect.m | .m | neuroGit-master/stimulus-delivery/StimGenHelperFuncs/GammaCorrect.m | 2,658 | utf_8 | f518fa6612b25248301146037a044bfd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | ParPortTrigger.m | .m | neuroGit-master/stimulus-delivery/StimGenHelperFuncs/ParPortTrigger.m | 6,539 | utf_8 | 3b4e494cf96e8fef484469af2ec91b88 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | StimGenDefaultTable.m | .m | neuroGit-master/stimulus-delivery/StimGenHelperFuncs/StimGenDefaultTable.m | 8,201 | utf_8 | 7f3145ff29b3a0722444ba2e342f443b | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | trialStructSave.m | .m | neuroGit-master/stimulus-delivery/StimGenHelperFuncs/trialStructSave.m | 3,006 | utf_8 | 044b4e014a7630bee32894b8115c7791 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | FullFieldGrating.m | .m | neuroGit-master/stimulus-delivery/StimGenStimuli/FullFieldGrating.m | 19,310 | utf_8 | b7664e8e01dae350ddb7fc11489b562e | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | MouseControlledDot.m | .m | neuroGit-master/stimulus-delivery/StimGenStimuli/MouseControlledDot.m | 12,711 | utf_8 | 26f0ef76b84341f18b6c1eb5f16893ec | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | RadiallyMovingBar.m | .m | neuroGit-master/stimulus-delivery/StimGenStimuli/RadiallyMovingBar.m | 19,026 | utf_8 | 178a26034fe100ff9fbe73722f0e59ed | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | FlipCheck.m | .m | neuroGit-master/stimulus-delivery/StimGenStimuli/FlipCheck.m | 2,270 | utf_8 | bf6b954849489077e4db7bb37f89d74f | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | MouseControlledGrating.m | .m | neuroGit-master/stimulus-delivery/StimGenStimuli/MouseControlledGrating.m | 13,003 | utf_8 | 0efb5916b62714366ed2babd57cdd5b8 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | mscaudill/neuroGit-master | StimGen.m | .m | neuroGit-master/stimulus-delivery/StimGenGui/StimGen.m | 18,304 | utf_8 | 2c0ded92a495955ad23c4d70b79db2a1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%copyright (c) 2012 Matthew Caudill
%
%this program is free software: you can redistribute it and/or modify
%it under the terms of the gnu general public license as published by
%the free software foundation, either version 3 of the license, o... |
github | massvis/eyetracking-master | plotFixationsOnIm.m | .m | eyetracking-master/matlab_files/visualizationCode/plotFixationsOnIm.m | 2,925 | utf_8 | 675aa15155c61e0ff711860e5ca31408 | % Function for working with provided allImages struct and displaying
% fixation locations (by duration, if desired). This function can overlay
% the fixations of one or multiple observers on a chosen visualization.
% The fixations can be overlayed all at once, or allowing the user to
% display progressively more fixat... |
github | pengwangucla/Toolkit-master | region2box.m | .m | Toolkit-master/region2box.m | 862 | utf_8 | 075550728faf75ee69cdedc4248cc611 | function bbox = region2box(mask, varargin)
opt.padding = 0;
opt = CatVarargin(opt, varargin);
if min(size(mask)) == 1
mask2 = false(opt.sz);
mask2(mask) = 1;
mask = mask2; clear mask2;
end
padding = opt.padding;
[height,width, dim] = size(mask);
bbox = zeros(dim, 4,'single');
for imask = 1:dim
tem... |
github | pengwangucla/Toolkit-master | GenPartMask.m | .m | Toolkit-master/GenPartMask.m | 2,010 | utf_8 | ac23264ee83124175c182c8f5cb08f30 |
function [partsMask, instbox, varargout] = GenPartMask(anno, img, pimap, objID_all, mappings)
% instbox: l top, left, down , right
[cls_mask, inst_mask, part_mask] = mat2map(anno, img, pimap);
class = unique(cls_mask(:));
[~,~,id] = intersect(class, objID_all, 'stable'); % object id exist in the image
... |
github | pengwangucla/Toolkit-master | localizeObj_v2.m | .m | Toolkit-master/localizeObj_v2.m | 2,913 | utf_8 | 33678f380f00143b0b77d350e073094b | function [imgSet, varargout] = localizeObj_v2(img, opt)
% Localize based on object instance in the image
imgSet = cell(1,1);
opt.area_thresh = 500;
[height,width] = size(img(:,:,1));
% InpaintSmallSegs
switch opt.type
case 'gt'
assert(isfield(opt, 'instMap')); opt.instMap(opt.instMap == 255) = 0;
... |
github | pengwangucla/Toolkit-master | VOClabelcolormap.m | .m | Toolkit-master/VOClabelcolormap.m | 697 | utf_8 | dfc4899104637e06a08f636de221549b | % VOCLABELCOLORMAP Creates a label color map such that adjacent indices have different
% colors. Useful for reading and writing index images which contain large indices,
% by encoding them as RGB images.
%
% CMAP = VOCLABELCOLORMAP(N) creates a label color map with N entries.
function cmap = VOClabelcolormap(N)
... |
github | pengwangucla/Toolkit-master | enlargeBox.m | .m | Toolkit-master/enlargeBox.m | 810 | utf_8 | d4c3ae2cf043729a127020f4e38fa4aa | function bbox = enlargeBox(bbox, szImg, times)
c = [(bbox(:, 1)+bbox(:, 3) )/2, (bbox(:,2) + bbox(:,4))/2];
% padding to img aspect ratio
sz = [bbox(:, 3)-bbox(:, 1), bbox(:,4)-bbox(:,2)];
sz = padding(sz, szImg(1)/szImg(2)); % height/width
sz = sz *times;
ind = sum(sz - repmat([szImg(2), szImg(1)], size(sz,1)... |
github | pengwangucla/Toolkit-master | LoadPascalPart.m | .m | Toolkit-master/LoadPascalPart.m | 955 | utf_8 | f1fda009de30862a3e8b89fd325e9bd1 | function VOCPartopts = LoadPascalPart()
VOCPartopts.classes_all ={...
'aeroplane'
'bicycle'
'bird'
'boat'
'bottle'
'bus'
'car'
'cat'
'chair'
'cow'
'diningtable'
'dog'
'horse'
'motorbike'
'person'
'pottedplant'
'sheep'
'sofa'
'train'
'tvmon... |
github | clade/RedPitaya-master | interactive_led_bar_graph.m | .m | RedPitaya-master/Examples/Matlab/interactive_led_bar_graph.m | 2,940 | utf_8 | d819f6d4271cc5f9a27dddf0dff67361 |
function sliderDemo
f = figure(1);
global p
%// initialize the slider
h = uicontrol(...
'parent' , f,...
'units' , 'normalized',... %// pixels settings
'style' , 'slider',...
'position', [0.05 0.05 0.9 0.05],...
'... |
github | clade/RedPitaya-master | interactive_voltage_setting_on_slow_analog_output.m | .m | RedPitaya-master/Examples/Matlab/interactive_voltage_setting_on_slow_analog_output.m | 2,091 | utf_8 | 648ebf76d2b7e69479d077a458325649 |
function sliderDemo
f = figure(1);
global p
%// initialize the slider
h = uicontrol(...
'parent' , f,...
'units' , 'normalized',... %// pixels settings
'style' , 'slider',...
'position', [0.05 0.05 0.9 0.05],...
'min' , 1,...... |
github | jakobsj/how_little_data-master | pdftops.m | .m | how_little_data-master/phasediagrams_code/code/ext/export_fig/pdftops.m | 3,186 | utf_8 | 6d98bc96a6c451245ad6400431e8bee1 | function varargout = pdftops(cmd)
%PDFTOPS Calls a local pdftops executable with the input command
%
% Example:
% [status result] = pdftops(cmd)
%
% Attempts to locate a pdftops executable, finally asking the user to
% specify the directory pdftops was installed into. The resulting path is
% stored for futur... |
github | jakobsj/how_little_data-master | crop_borders.m | .m | how_little_data-master/phasediagrams_code/code/ext/export_fig/crop_borders.m | 1,750 | utf_8 | 0893357fafdc2893c4fb22a136f6898a | %CROP_BORDERS Crop the borders of an image or stack of images
%
% [B, v] = crop_borders(A, bcol, [padding])
%
%IN:
% A - HxWxCxN stack of images.
% bcol - Cx1 background colour vector.
% padding - scalar indicating how many pixels padding to have. Default: 0.
%
%OUT:
% B - JxKxCxN cropped stack of i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.