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 | philippboehmsturm/antx-master | read_itab_mhd.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_itab_mhd.m | 12,499 | utf_8 | 3f00166bb7197b9d65c619cfe0ac954d | function mhd = read_itab_mhd(filename)
fid = fopen(filename, 'rb');
% Name of structure
mhd.stname = fread(fid, [1 10], 'uint8=>char'); % Header identifier (VP_BIOMAG)
mhd.stver = fread(fid, [1 8], 'uint8=>char'); % Header version
mhd.stendian = fread(fid, [1 4], 'uint8=>char'); % ... |
github | philippboehmsturm/antx-master | read_plexon_plx.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_plexon_plx.m | 19,999 | utf_8 | a7f91dc40ee54cdc3e4a2c14330bed5e | function [varargout] = read_plexon_plx(filename, varargin)
% READ_PLEXON_PLX reads header or data from a Plexon *.plx file, which
% is a file containing action-potential (spike) timestamps and waveforms
% (spike channels), event timestamps (event channels), and continuous
% variable data (continuous A/D channels).
%
%... |
github | philippboehmsturm/antx-master | read_eeglabevent.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_eeglabevent.m | 3,854 | utf_8 | 965c1662da2a0ca88263a3b4da4f7de7 | % read_eeglabevent() - import EEGLAB dataset events
%
% Usage:
% >> event = read_eeglabevent(filename, ...);
%
% Inputs:
% filename - [string] file name
%
% Optional inputs:
% 'header' - FILEIO structure header
%
% Outputs:
% event - FILEIO toolbox event structure
%
% Author: Arnaud Delorme, SCCN, INC, ... |
github | philippboehmsturm/antx-master | read_bti_ascii.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_bti_ascii.m | 2,300 | utf_8 | 143e0b87252e8d5050bd771d895e0daf | function [file] = read_bti_ascii(filename);
% READ_BTI_ASCII reads general data from a BTI configuration file
%
% The file should be formatted like
% Group:
% item1 : value1a value1b value1c
% item2 : value2a value2b value2c
% item3 : value3a value3b value3c
% item4 : value4a value4b value4c... |
github | philippboehmsturm/antx-master | openbdf.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/openbdf.m | 6,812 | utf_8 | cb49358a2a955b165a5c50127c25e3d8 | % openbdf() - Opens an BDF File (European Data Format for Biosignals) in MATLAB (R)
%
% Usage:
% >> EDF=openedf(FILENAME)
%
% Note: About EDF -> www.biosemi.com/faq/file_format.htm
%
% Author: Alois Schloegl, 5.Nov.1998
%
% See also: readedf()
% Copyright (C) 1997-1998 by Alois Schloegl
% a.schloegl@ieee.org
% ... |
github | philippboehmsturm/antx-master | trialfun_general.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/trialfun/trialfun_general.m | 12,185 | utf_8 | dc7d6636a396f740e2ebe37b69175ce7 | function [trl, event] = trialfun_general(cfg)
% TRIALFUN_GENERAL determines trials/segments in the data that are
% interesting for analysis, using the general event structure returned
% by read_event. This function is independent of the dataformat
%
% The trialdef structure can contain the following specifications
% ... |
github | philippboehmsturm/antx-master | trialfun_realtime.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/trialfun/trialfun_realtime.m | 3,914 | utf_8 | cd4643876036e59ef0a6f318dc0f5856 | function trl = trialfun_realtime(cfg)
% TRIALFUN_REALTIME can be used to segment a continuous stream of
% data in real-time. Trials are defined as [begsample endsample offset
% condition]
%
% The configuration structure can contain the following specifications
% cfg.minsample = the last sample number that was alre... |
github | philippboehmsturm/antx-master | select_channel_list.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/trialfun/private/select_channel_list.m | 5,910 | utf_8 | 809c334eb560bace022f65305426b3a5 | function [select] = select_channel_list(label, select, titlestr);
% SELECT_CHANNEL_LIST presents a dialog for selecting multiple elements
% from a cell array with strings, such as the labels of EEG channels.
% The dialog presents two columns with an add and remove mechanism.
%
% select = select_channel_list(label, in... |
github | philippboehmsturm/antx-master | ft_convert_units.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/ft_convert_units.m | 6,309 | utf_8 | 45851d8b795b40908878b5859ef0ef5c | function [obj] = ft_convert_units(obj, target)
% FT_CONVERT_UNITS changes the geometrical dimension to the specified SI unit.
% The units of the input object is determined from the structure field
% object.unit, or is estimated based on the spatial extend of the structure,
% e.g. a volume conduction model of the head... |
github | philippboehmsturm/antx-master | ft_apply_montage.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/ft_apply_montage.m | 9,812 | utf_8 | 61577f3dc8bb2e20a84da80e88d5bc1f | function [sens] = ft_apply_montage(sens, montage, varargin)
% FT_APPLY_MONTAGE changes the montage of an electrode or gradiometer array. A
% montage can be used for EEG rereferencing, MEG synthetic gradients, MEG
% planar gradients or unmixing using ICA. This function applies the montage
% to the sensor array. The sen... |
github | philippboehmsturm/antx-master | ft_headmodel_strip.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/ft_headmodel_strip.m | 2,512 | utf_8 | 78012ba16bcf9bde9845d01082ab86ee | function vol = ft_headmodel_strip(geom1, geom2, Pc, varargin)
% FT_HEADMODEL_STRIP creates an EEG volume conduction model that
% is described with an infinite conductive strip. You can think
% of this as two parallel planes containing a mass of conductive
% material (e.g. water) and externally to them a non-conductive... |
github | philippboehmsturm/antx-master | ft_prepare_vol_sens.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/ft_prepare_vol_sens.m | 19,902 | utf_8 | b77bd556a276e512906c25da310c1517 | function [vol, sens] = ft_prepare_vol_sens(vol, sens, varargin)
% FT_PREPARE_VOL_SENS does some bookkeeping to ensure that the volume
% conductor model and the sensor array are ready for subsequent forward
% leadfield computations. It takes care of some pre-computations that can
% be done efficiently prior to the lead... |
github | philippboehmsturm/antx-master | ft_headmodel_halfspace.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/ft_headmodel_halfspace.m | 2,272 | utf_8 | 5fdcb390bd9403dbc7fc6c7b668ba15e | function vol = ft_headmodel_halfspace(geom, Pc, varargin)
% FT_HEADMODEL_HALFSPACE creates an EEG volume conduction model that
% is described with an infinite conductive halfspace. You can think
% of this as a plane with on one side a infinite mass of conductive
% material (e.g. water) and on the other side non-conduc... |
github | philippboehmsturm/antx-master | ft_headmodel_openmeeg.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/ft_headmodel_openmeeg.m | 7,135 | utf_8 | 633b647b11ba16d47bfe321c8ff32493 | function vol = ft_headmodel_bem_openmeeg(geom, varargin)
% FT_HEADMODEL_OPENMEEG creates a volume conduction model of the
% head using the boundary element method (BEM). This function takes
% as input the triangulated surfaces that describe the boundaries and
% returns as output a volume conduction model which can be ... |
github | philippboehmsturm/antx-master | normals.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/normals.m | 2,391 | utf_8 | 62a8e5ee7314da0eadbc13fa82ab95c1 | function [nrm] = normals(pnt, dhk, opt);
% NORMALS compute the surface normals of a triangular mesh
% for each triangle or for each vertex
%
% [nrm] = normals(pnt, dhk, opt)
% where opt is either 'vertex' or 'triangle'
% Copyright (C) 2002-2007, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.... |
github | philippboehmsturm/antx-master | eeg_strip_monopole.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/eeg_strip_monopole.m | 4,395 | utf_8 | 4fb35d2403ec2e536819e85eb6e68f20 | function [lf] = eeg_strip_monopole(rd, elc, vol)
% EEG_STRIP_MONOPOLE calculate the strip medium leadfield
% on positions pnt for a monopole at position rd and conductivity cond
% The halfspace solution requires a plane dividing a conductive zone of
% conductivity cond, from a non coductive zone (cond = 0)
%
% ... |
github | philippboehmsturm/antx-master | meg_ini.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/meg_ini.m | 5,611 | utf_8 | d8c7a9c1bd90cd1d1c39b272bdd93c23 | function forwpar=meg_ini(vc,center,order,sens,refs,gradlocs,weights);
% initializes MEG-forward calculation
% usage: forwpar=meg_ini(vc,center,order,sens,refs,gradlocs,weights);
%
% input:
% vc: Nx6 matrix; N is the number of surface points
% the first three numbers in each row are the location
% and t... |
github | philippboehmsturm/antx-master | eeg_halfspace_monopole.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/eeg_halfspace_monopole.m | 3,498 | utf_8 | 205ef9db3761f4010b438ba0b13e1d39 | function [lf] = eeg_halfspace_monopole(rd, elc, vol)
% EEG_HALFSPACE_MONOPOLE calculate the halfspace medium leadfield
% on positions pnt for a monopole at position rd and conductivity cond
% The halfspace solution requires a plane dividing a conductive zone of
% conductivity cond, from a non coductive zone (cond = 0)... |
github | philippboehmsturm/antx-master | leadfield_simbio.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/leadfield_simbio.m | 3,228 | utf_8 | 7f93a28d3282bf7918e8ab6e9cf3fe75 | function [lf] = leadfield_simbio(elc, vol, dip)
% LEADFIELD_SIMBIO leadfields for a set of dipoles
%
% [lf] = leadfield_simbio(elc, vol, headmeshfile);
%
% with input arguments
% elc positions of the electrodes (matrix of dimensions MX3)
% vol.brainmesh contains the positions of the vertices on which
% ... |
github | philippboehmsturm/antx-master | eeg_halfspace_medium_leadfield.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/eeg_halfspace_medium_leadfield.m | 3,539 | utf_8 | e8302f95ed59664fe0e90e561ed87e8c | function [lf] = eeg_halfspace_medium_leadfield(rd, elc, vol)
% HALFSPACE_MEDIUM_LEADFIELD calculate the halfspace medium leadfield
% on positions pnt for a dipole at position rd and conductivity cond
% The halfspace solution requires a plane dividing a conductive zone of
% conductivity cond, from a non coductive zone ... |
github | philippboehmsturm/antx-master | leadsphere_all.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/leadsphere_all.m | 2,351 | utf_8 | ec11c3c091e69a549689e1fa8755ad50 | function out=leadsphere_chans(xloc,sensorloc,sensorori)
% usage: out=leadsphere_chans(xloc,sensorloc,sensorori)
% Copyright (C) 2003, Guido Nolte
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% FieldTrip is free software: you can redistribute ... |
github | philippboehmsturm/antx-master | ft_hastoolbox.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/ft_hastoolbox.m | 15,262 | utf_8 | c0b501e52231cc82315936a092af6214 | function [status] = ft_hastoolbox(toolbox, autoadd, silent)
% FT_HASTOOLBOX tests whether an external toolbox is installed. Optionally
% it will try to determine the path to the toolbox and install it
% automatically.
%
% Use as
% [status] = ft_hastoolbox(toolbox, autoadd, silent)
%
% autoadd = 0 means that it will ... |
github | philippboehmsturm/antx-master | leadfield_fns.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/leadfield_fns.m | 3,098 | utf_8 | b87f422810a9225ac5355f1190953a51 | function [lf] = leadfield_fns(dip, elc, vol)
% LEADFIELD_FNS leadfields for a set of dipoles
%
% [lf] = leadfield_fns(dip, elc, vol);
%
% with input arguments
% dip positions of the dipoles (matrix of dimensions NX3)
% elc positions of the electrodes (matrix of dimensions MX3)
%
% and vol being a structur... |
github | philippboehmsturm/antx-master | eeg_leadfield1.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/eeg_leadfield1.m | 3,861 | utf_8 | 1fb67278560820b9d4d494e6eebc6e78 | function [lf, lforig] = eeg_leadfield1(R, elc, vol);
% EEG_LEADFIELD1 electric leadfield for a dipole in a single sphere
%
% [lf] = eeg_leadfield1(R, elc, vol)
%
% with input arguments
% R position dipole (vector of length 3)
% elc position electrodes
% and vol being a structure with the elements
% vol... |
github | philippboehmsturm/antx-master | meg_forward.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/forward/private/meg_forward.m | 4,039 | utf_8 | 5ff9ecca3fb32155e35f2b871bc533fc | function field=meg_forward(dip_par,forwpar)
% calculates the magnetic field of n dipoles
% in a realistic volume conductor
% usage: field=meg_forward(dip_par,forwpar)
%
% input:
% dip_par nx6 matrix where each row contains location (first 3 numbers)
% and moment (second 3 numbers) of a dipole
% forwpar st... |
github | philippboehmsturm/antx-master | postpad.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/preproc/private/postpad.m | 2,013 | utf_8 | 2c9539d77ff0f85c9f89108f4dc811e0 | % Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2004, 2005,
% 2006, 2007, 2008, 2009 John W. Eaton
%
% This file is part of Octave.
%
% Octave 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 Founda... |
github | philippboehmsturm/antx-master | sftrans.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/preproc/private/sftrans.m | 7,947 | utf_8 | f64cb2e7d19bcdc6232b39d8a6d70e7c | % Copyright (C) 1999 Paul Kienzle
%
% 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 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | filtfilt.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/preproc/private/filtfilt.m | 3,297 | iso_8859_1 | d01a26a827bc3379f05bbc57f46ac0a9 | % Copyright (C) 1999 Paul Kienzle
% Copyright (C) 2007 Francesco Potortì
% Copyright (C) 2008 Luca Citi
%
% 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 2 of the License, or
% (a... |
github | philippboehmsturm/antx-master | bilinear.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/preproc/private/bilinear.m | 4,339 | utf_8 | 17250db27826cad87fa3384823e1242f | % Copyright (C) 1999 Paul Kienzle
%
% 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 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | butter.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/preproc/private/butter.m | 3,559 | utf_8 | ad82b4c04911a5ea11fd6bd2cc5fd590 | % Copyright (C) 1999 Paul Kienzle
%
% 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 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | statfun_roc.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/statfun/statfun_roc.m | 4,537 | utf_8 | 63873370a1727fc5e0bed4e16fd685f8 | function [s, cfg] = statfun_roc(cfg, dat, design)
% STATFUN_roc computes the area under the curve (AUC) of the
% Receiver Operator Characteristic (ROC). This is a measure of the
% separability of the data divided over two conditions. The AUC can
% be used to test statistical significance of being able to predict
% on ... |
github | philippboehmsturm/antx-master | nanstd.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/statfun/private/nanstd.m | 2,445 | utf_8 | 5bfd7c73ce6d67e3163bdc51d464b590 | % nanstd() - std, not considering NaN values
%
% Usage: same as std()
% Author: Arnaud Delorme, CNL / Salk Institute, Sept 2003
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2003 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you can redis... |
github | philippboehmsturm/antx-master | warning_once.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/statfun/private/warning_once.m | 3,060 | utf_8 | f046009e4f6ffe5745af9c5e527614e8 | function [ws warned] = warning_once(varargin)
%
% Use as
% warning_once(string)
% or
% warning_once(string, timeout)
% or
% warning_once(id, string, timeout)
% where timeout should be inf if you don't want to see the warning ever
% again. The default timeout value is 60 seconds.
%
% Can be used instead of the MATLAB... |
github | philippboehmsturm/antx-master | nanmean.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/statfun/private/nanmean.m | 2,121 | utf_8 | 7e0ebd9ca56f2cd79f89031bbccebb9a | % nanmean() - Average, not considering NaN values
%
% Usage: same as mean()
% Author: Arnaud Delorme, CNL / Salk Institute, 16 Oct 2002
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2001 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you c... |
github | philippboehmsturm/antx-master | nanvar.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/statfun/private/nanvar.m | 2,439 | utf_8 | 201826aeefbd74374df411fca75bb78f | % nanvar() - var, not considering NaN values
%
% Usage: same as var()
% Author: Arnaud Delorme, CNL / Salk Institute, Sept 2003
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2003 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you can redis... |
github | philippboehmsturm/antx-master | tinv.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/statfun/private/tinv.m | 7,634 | utf_8 | 8fe66ec125f91e1a7ac5f8d3cb2ac51a | function x = tinv(p,v);
% TINV Inverse of Student's T cumulative distribution function (cdf).
% X=TINV(P,V) returns the inverse of Student's T cdf with V degrees
% of freedom, at the values in P.
%
% The size of X is the common size of P and V. A scalar input
% functions as a constant matrix of the same s... |
github | philippboehmsturm/antx-master | ft_connectivity_corr.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/connectivity/ft_connectivity_corr.m | 6,929 | utf_8 | 5df12f8c9d22f66319d8a79480be037a | function [c, v, outcnt] = ft_connectivity_corr(input, varargin)
% FT_CONNECTIVITY_CORR computes correlation or coherence from a data-matrix
% containing a covariance or cross-spectral density
%
% Use as
% [c, v, n] = ft_connectivity_corr(input, varargin)
%
% The input data input should be organized as:
% Repetiti... |
github | philippboehmsturm/antx-master | ft_connectivity_psi.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/connectivity/ft_connectivity_psi.m | 5,652 | utf_8 | d93ff0bd978058602e1526567a9db1a4 | function [c, v, n] = ft_connectivity_psi(input, varargin)
% FT_CONNECTIVITY_PSI computes the phase slope index from a data-matrix
% containing a cross-spectral density, according to FIXME include reference
%
% Use as
% [c, v, n] = ft_connectivity_psi(input, varargin)
%
% The input data input should be organized as:
... |
github | philippboehmsturm/antx-master | beamformer_pcc.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/inverse/beamformer_pcc.m | 10,227 | utf_8 | bac50bab9f076969adba7e767bd9e0d5 | function [dipout] = beamformer_pcc(dip, grad, vol, dat, Cf, varargin)
% BEAMFORMER_PCC implements an experimental beamformer based on partial canonical
% correlations or coherences.
%
% Use and/or distribution of this function outside the F.C. Donders
% Centre is strictly prohibited!
%
% Copyright (C) 2005-2008, Robe... |
github | philippboehmsturm/antx-master | beamformer_dics.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/inverse/beamformer_dics.m | 24,036 | utf_8 | e7b43ec321435a26a82211dbf8eba2b7 | function [dipout] = beamformer_dics(dip, grad, vol, dat, Cf, varargin)
% BEAMFORMER_DICS scans on pre-defined dipole locations with a single dipole
% and returns the beamformer spatial filter output for a dipole on every
% location. Dipole locations that are outside the head will return a
% NaN value.
%
% Use as
% ... |
github | philippboehmsturm/antx-master | beamformer_lcmv.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/inverse/beamformer_lcmv.m | 15,746 | utf_8 | 8ca0fc938e68be4e5dbd350151138e77 | function [dipout] = beamformer_lcmv(dip, grad, vol, dat, Cy, varargin)
% BEAMFORMER_LCMV scans on pre-defined dipole locations with a single dipole
% and returns the beamformer spatial filter output for a dipole on every
% location. Dipole locations that are outside the head will return a
% NaN value.
%
% Use as
% ... |
github | philippboehmsturm/antx-master | dipole_fit.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/inverse/dipole_fit.m | 10,387 | utf_8 | fc67cb906fbbba6425899fd253d10d9e | function [dipout] = dipole_fit(dip, sens, vol, dat, varargin)
% DIPOLE_FIT performs an equivalent current dipole fit with a single
% or a small number of dipoles to explain an EEG or MEG scalp topography.
%
% Use as
% [dipout] = dipole_fit(dip, sens, vol, dat, ...)
%
% Additional input arguments should be specified ... |
github | philippboehmsturm/antx-master | ft_hastoolbox.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/inverse/private/ft_hastoolbox.m | 15,262 | utf_8 | c0b501e52231cc82315936a092af6214 | function [status] = ft_hastoolbox(toolbox, autoadd, silent)
% FT_HASTOOLBOX tests whether an external toolbox is installed. Optionally
% it will try to determine the path to the toolbox and install it
% automatically.
%
% Use as
% [status] = ft_hastoolbox(toolbox, autoadd, silent)
%
% autoadd = 0 means that it will ... |
github | philippboehmsturm/antx-master | subsasgn.m | .m | antx-master/freiburgLight/matlab/spm8/@nifti/subsasgn.m | 14,541 | utf_8 | ffdb84b7956d93c2f9a0a980ccbe8a22 | function obj = subsasgn(obj,subs,varargin)
% Subscript assignment
% See subsref for meaning of fields.
% _______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
%
% $Id: subsasgn.m 4136 2010-12-09 22:22:28Z guillaume $
switch subs(1).type,
c... |
github | philippboehmsturm/antx-master | subsref.m | .m | antx-master/freiburgLight/matlab/spm8/@nifti/subsref.m | 8,741 | utf_8 | 2d67123e4dc7e0b20a7ee19962324fee | function varargout = subsref(opt,subs)
% Subscript referencing
%
% Fields are:
% dat - a file-array representing the image data
% mat0 - a 9-parameter affine transform (from qform0)
% Note that the mapping is from voxels (where the first
% is considered to be at [1,1,1], to m... |
github | philippboehmsturm/antx-master | create.m | .m | antx-master/freiburgLight/matlab/spm8/@nifti/create.m | 1,963 | utf_8 | 3c70cc73a693e9e93f4a3f3b60c91d1c | function create(obj,wrt)
% Create a NIFTI-1 file
% FORMAT create(obj)
% This writes out the header information for the nifti object
%
% create(obj,wrt)
% This also writes out an empty image volume if wrt==1
% _______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Cen... |
github | philippboehmsturm/antx-master | getdict.m | .m | antx-master/freiburgLight/matlab/spm8/@nifti/private/getdict.m | 5,226 | utf_8 | 94716c88e3d44be3c8207f14a928510a | function d = getdict
% Dictionary of NIFTI stuff
% _______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
%
% $Id: getdict.m 1143 2008-02-07 19:33:33Z spm $
persistent dict;
if ~isempty(dict),
d = dict;
return;
end;
% Datatype
t = ... |
github | philippboehmsturm/antx-master | write_extras.m | .m | antx-master/freiburgLight/matlab/spm8/@nifti/private/write_extras.m | 876 | utf_8 | f3686c5d5d6e88449972819a302e8c5c | function extras = write_extras(fname,extras)
% Write extra bits of information
%_______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
%
% $Id: write_extras.m 1143 2008-02-07 19:33:33Z spm $
[pth,nam,ext] = fileparts(fname);
switch ext
case... |
github | philippboehmsturm/antx-master | dti_cfg_roiop.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_roiop.m | 8,524 | utf_8 | e467a758ca89a2e0c0db8a3f85c54b63 | % configure file for operations on streamline trackings results
%
% for BATCH EDITOR system (Volkmar Glauche)
%
% File created by Susanne Schnell
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function roiop = dti_cfg_roiop
% --------------------------------------------------------------... |
github | philippboehmsturm/antx-master | dti_cfg_fodop.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_fodop.m | 31,112 | utf_8 | a897d50b3c021cd3122ace13acc92304 | % configure file for operations on streamline trackings results
%
% for BATCH EDITOR system (Volkmar Glauche)
%
% File created by Marco Reisert
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function fodop = dti_cfg_fodop
% ----------------------------------------------------------------... |
github | philippboehmsturm/antx-master | dti_ftrop_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_ftrop_ui.m | 21,825 | utf_8 | 8306f6a3d43356357e4a0e43745657cf | % interface program for batch program
% Operations with streamline tracts (Mori Tracts).
% Author: Susanne Schnell
% PC 13.02.2009
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function out = dti_ftrop_ui(cmd, P)
switch cmd,
case 'selectbyROI'
autofname = '_selFTR.mat';
... |
github | philippboehmsturm/antx-master | dti_tensor_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_tensor_ui.m | 2,450 | utf_8 | df0595287593fef7a0809a1afc99a8e3 | % interface program for batch modus
%
% Author: Susanne Schnell
% PC 10.04.2008
function out = dti_tensor_ui(P)
if nargin == 1 && isstruct(P) && isfield(P, 'filename')
[path,nam,ext] = fileparts(P.filename{1});
filename = fullfile(path,nam);
savemode = bitset(bitset(0,1,P.singleslice),2,P.hardi);
if s... |
github | philippboehmsturm/antx-master | dti_cfg_read.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_read.m | 10,578 | utf_8 | f114717b2ad4c9cfd8122e53f2b3a44e | % configure file for reading DWI data (Dicom, Bruker or other formats)
% DTI Configuration file
% BATCH system (Volkmar Glauche)
%
% File created by Susanne Schnell
function read_data = dti_cfg_read
% ---------------------------------------------------------------------
% dicom Input dicom file names
% --------------... |
github | philippboehmsturm/antx-master | dti_logroi_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_logroi_ui.m | 5,221 | utf_8 | b1813b1996d402ef0c6a50e5cc6892d2 | % interface program for batch program
% roi log
% Author: Susanne Schnell
% Windows 22.02.2011
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function out = dti_logroi_ui(P)
logFName= fullfile(P.logpath{1}, P.newfilename);
dtd = dtdstruct_read(P.dtdname{1});
comStr= dtdstruct_query(dtd, '... |
github | philippboehmsturm/antx-master | dti_tracking_probabilistic_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_tracking_probabilistic_ui.m | 6,597 | utf_8 | e1f1bf9616e8f4b806d147847bb2af3c | % interface program for batch program
%
% Author: Susanne Schnell and Volkmar Glauche
% PC 25.07.2008
function out = dti_tracking_probabilistic_ui(P)
%load DTD, start and stop masks
dtdStruct = dtdstruct_read(P.filename{1});
switch char(fieldnames(P.seedchoice))
% P.seedchoice always has exactly one field, theref... |
github | philippboehmsturm/antx-master | dti_cfg_realigndef.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_realigndef.m | 1,799 | utf_8 | 2cb9d8a00ab0f9e3655aa1a80af95057 | % configure file for operations on streamline trackings results
%
% for BATCH EDITOR system (Volkmar Glauche)
%
% File created by Susanne Schnell
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function realigndefi = dti_cfg_realigndef
yname = cfg_files;
yname.tag = 'yname';
... |
github | philippboehmsturm/antx-master | dti_mapop_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_mapop_ui.m | 2,705 | utf_8 | 5e6c82ecaa61351a9bd9ba57da0bdf0c | % interface program for batch program
%
% Author: Susanne Schnell
% PC 25.07.2008
function out = dti_mapop_ui(cmd, P)
switch cmd,
case 'normalize'
[path1 name1] = fileparts(P.filename1{1});
autofname = sprintf('%s_normMAP.mat',name1);
%normalization
probStruct = probstruct_read(P.f... |
github | philippboehmsturm/antx-master | dti_tracking_global_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_tracking_global_ui.m | 3,644 | utf_8 | 2bd755f7a4be7fd467a7c2f5f42e3c3f | % interface program for batch program
%
% Author: Marco Reisert
% PC 2010
function out = dti_tracking_global_ui(P)
h = findobj(0,'tag','fiberGT_main');
if ~isempty(h)
delete(h);
end;
if isfield(P,'temp') %% GT accum
fiberGT_tool('loadFTR',P.filenameFTR{1});
ftr = fiberGT_tool('createEFTR',P.numi... |
github | philippboehmsturm/antx-master | dti_cfg_tensor.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_tensor.m | 3,326 | utf_8 | 0a0214fa5a8384168ed300355339ec67 | % configure file for calculation of tensors
% DTI Configuration file
% BATCH system (Volkmar Glauche)
%
% File created by Susanne Schnell
function tensor = dti_cfg_tensor
% ---------------------------------------------------------------------
% filename Input raw data filename
% -------------------------------------... |
github | philippboehmsturm/antx-master | dti_readdata_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_readdata_ui.m | 4,631 | utf_8 | 2e017b9050bcc09910cd85a34b4f0ca2 | % interface program for batch program
% dti_read_data_ui: user interface for reading the raw data (main: dti_cfg_read.m)
%
% Author: Susanne Schnell
% PC 10.04.2008
function out = dti_readdata_ui(cmd,P)
switch cmd
case 'binary'
[path,nam,ext] = fileparts(P.binary{1});
if strcmp(ext,'.bin')
... |
github | philippboehmsturm/antx-master | dti_cfg_ftrop.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_ftrop.m | 19,167 | utf_8 | ca9466fe134d2495d20d21bc5bab6d28 | % configure file for operations on streamline trackings results
%
% for BATCH EDITOR system (Volkmar Glauche)
%
% File created by Susanne Schnell
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function ftrop = dti_cfg_ftrop
% --------------------------------------------------------------... |
github | philippboehmsturm/antx-master | dti_roiop_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_roiop_ui.m | 3,132 | utf_8 | bca6157b9659f55f4f4b3afc5971c41d | % interface program for batch program
% Operations with streamline tracts (Mori Tracts).
% Author: Susanne Schnell
% Linux 02.03.2010
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function out = dti_roiop_ui(cmd, P)
switch cmd
case 'Invert'
autofname = '_invers.mat';
... |
github | philippboehmsturm/antx-master | dti_realigndef_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_realigndef_ui.m | 1,717 | utf_8 | 5ae5f198e1cac875622a750f19dfa213 |
function out = dti_realigndef_ui(P)
mat = load(P.matname{1},'M');
fi = realign_def(P.yname{1},P.iyname{1},inv(mat.M));
out.finame_y = fi.y;
out.finame_iy = fi.iy;
function out = realign_def(yfi,iyfi,mat)
[yDef,ymat] = get_def(yfi);
[iyDef,iymat] = get_def(iyfi);
% realign y field
ymat = mat*ymat;
% realign iy... |
github | philippboehmsturm/antx-master | dti_fodop_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_fodop_ui.m | 24,151 | utf_8 | 7931aca2f4165bce4fa97cf75de79bfa | % interface program for batch program
% Operations with FODs
% Author: Marco Reisert
% PC 2012
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function out = dti_ftrop_ui(cmd, P)
switch cmd,
case 'PItrails'
picon = load(P.filenamePIcon{1});
[pa f... |
github | philippboehmsturm/antx-master | dti_cfg_tracking.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_tracking.m | 36,311 | utf_8 | 0a532bd39e5f204d98fa948f848e14c0 |
% configure file for calculation of tensors
% DTI Configuration file
% BATCH system (Volkmar Glauche)
%
% File created by Susanne Schnell
function tracking = dti_cfg_tracking
% ---------------------------------------------------------------------
% filename Input dtdstruct
% ----------------------------------------... |
github | philippboehmsturm/antx-master | dti_tracking_mori_ui.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_tracking_mori_ui.m | 4,210 | utf_8 | 3a91e18befb281be99045f017aac7759 | % interface program for batch program
%
% Author: Susanne Schnell
% PC 25.07.2008
function out = dti_tracking_mori_ui(P)
%load DTD
[path,nam,ext] = fileparts(P.filename{1});
dtdStruct = dtdstruct_read(P.filename{1});
% create or load start mask
if isfield(P.start,'startdef')
%load mask as mrstruct
[startMask... |
github | philippboehmsturm/antx-master | dti_cfg.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg.m | 4,953 | utf_8 | 36f74f0a3a9c415582f98699a3c064f4 | % configure file for DTI tools
% BATCH system (Volkmar Glauche)
%
% File created by Susanne Schnell
%%
function dtijobs = dti_cfg
%_______________________________________________________________________
% dtijobs DTI tools
%_______________________________________________________________________
dtijobs = cfg_c... |
github | philippboehmsturm/antx-master | dti_cfg_logroi.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_logroi.m | 3,994 | utf_8 | 14549addf6386d4dc2dfc66057d488a6 | % configure file for operations on streamline trackings results
%
% for BATCH EDITOR system (Volkmar Glauche)
%
% File created by Susanne Schnell
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function logroi = dti_cfg_logroi
% ------------------------------------------------------------... |
github | philippboehmsturm/antx-master | dti_cfg_mapop.m | .m | antx-master/freiburgLight/matlab/diffusion/common/dti_cfg_mapop.m | 5,856 | utf_8 | 4b15d7421a595eb83239744dd9f94fb1 | % configure file for calculation of tensors
% DTI Configuration file
% BATCH system (Volkmar Glauche)
%
% File created by Susanne Schnell
function mapop = dti_cfg_mapop
% ---------------------------------------------------------------------
% filename1 name of probabilistic map 1
% ----------------------------------... |
github | michaelmendoza/deep-ssfp-master | disp3d.m | .m | deep-ssfp-master/legacy/data/disp3d.m | 16,393 | utf_8 | 22572ec3bf83307c92d1a0efa1a0493f | function [ output_args ] = disp3d( myimageIn, myimage_title, figure_control, image_type )
% -----------------------------------------------------------
% -------------------------- ABOUT --------------------------
% disp3d was made in July 2011 by Danny Park and Hyrum Griffin.
% It is a stand-alone function that will ... |
github | michaelmendoza/deep-ssfp-master | convert_knee.m | .m | deep-ssfp-master/legacy/data/convert_knee.m | 1,455 | utf_8 | 8ed61fc7cd6594d7e51221332f7bfa0f | % Converts data files to training data in a .mat
%basepath = "./10282017_SSPF Smoothing DL/";
%filenames = ["meas_MID885_trufi_phi0_FID4833.dat", "meas_MID894_trufi_phi90_FID4842.dat", ...
% "meas_MID903_trufi_phi180_FID4851.dat", "meas_MID912_trufi_phi270_FID4860.dat"];
basepath = "./Merry_SSFP_Scans/ssfp... |
github | michaelmendoza/deep-ssfp-master | convert.m | .m | deep-ssfp-master/legacy/data/convert.m | 1,359 | utf_8 | 5e850290e48de5f7efdf62b6fb9e5072 | % Converts data files to training data in a .mat
basepath = "./11062017_SSFP_Smoothing_DL_Phantom/";
filenames = ["meas_MID164_trufi_phi0_FID6709.dat", "meas_MID165_trufi_phi90_FID6710.dat", ...
"meas_MID166_trufi_phi180_FID6711.dat", "meas_MID167_trufi_phi270_FID6712.dat"];
for f = 1:length(filenames)
... |
github | michaelmendoza/deep-ssfp-master | EllipticalModel.m | .m | deep-ssfp-master/legacy/data/EllipticalModel.m | 2,709 | utf_8 | a4d235313127dec6afb2c22822e3a397 | % This function will attempt to follow the ellpitical signal model in the
% paper by Xiang, Qing-San and Hoff, Michael N. "Banding Artifact Removal
% for bSSFP Imaging with an Elliptical Signal Model", 2014.
% The function returns a complex image.
%
% I1 and I3 form one pair of 180 degree offset images, and I2 and I4 ... |
github | vnnsrk/UCSD-master | q63.m | .m | UCSD-master/CSE 250A/hw6/Code/q63.m | 464 | utf_8 | 59831ecfacd5a21c7877dfc286d43907 | clc;
clear all;
close all;
x=-5:0.1:5;
f1 = fx(x);
Q1 = Qxy(x,-2);
Q2 = Qxy(x,3);
% Auxiliary functions
figure;
set(gcf,'color','w');
plot(x,f1,x,Q1,x,Q2);
grid on;
title('Plot of auxiliary functions');
xlabel('x');
ylabel('Function value');
legend('f (x)','Q (x, -2)','Q (x, 3)');
%% Helper functions
% Given functi... |
github | vnnsrk/UCSD-master | computeSentenceProbabilities.m | .m | UCSD-master/CSE 250A/hw4/Code/computeSentenceProbabilities.m | 1,613 | utf_8 | 3645c0a44eddebf5ef21bbdd5ed5c342 | %% Function to compute probability of sentence
% Compute probability of words in a sentence using unigram and bigram
% models
function [uLog, bLog, pU, pB] = computeSentenceProbabilities(sentence, tokens, bigram)
% Make array of words in sentence
wordsU = strsplit(sentence);
beginSent = {'<s>'};
wordsB... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | calculate_the_likelihood_of_sketch_same_feature_neighbour_added.m | .m | understanding_CRF_using_GMM-master/calculate_the_likelihood_of_sketch_same_feature_neighbour_added.m | 8,715 | utf_8 | 092e0110e856bc10a13864bce895df98 | %% calculates the likelihood of a particular cnfciguration
%% for instance given a feature you calculated the you calculated it's likelihood of being a head and at the same time
%% it's likelohood of having leg as it's neighnour based on the training data that you have seen!
function [likelihood_matrix_part_wi... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | Cls2Part.m | .m | understanding_CRF_using_GMM-master/Cls2Part.m | 2,039 | utf_8 | 828d1f873f20ef2642ca139587d2e2a8 | % helps you in defining which parts to annotate and by what!
function mapping = Cls2Part(ClasName)
switch ClasName,
case 'aeroplane'
%mapping.Parts = {'body', 'wing', 'tail', 'engine', 'wheel'};
mapping.Parts = {'body', 'wheels', 'tail', 'engine', 'wings'};
case 'bottle' ... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | fitting_the_ellipse.m | .m | understanding_CRF_using_GMM-master/fitting_the_ellipse.m | 716 | utf_8 | 95f4eba2dba10e00a738c56c5ca0b6e8 |
%% would give me the closest fitting ellipse that could fit into a particular part
function [mask] = fitting_the_ellipse(s)
phi=linspace(0,2*pi,50);
cosphi=cos(phi);
sinphi=sin(phi);
for k=1:length(s)
xbar=s(k).Centroid(1);
ybar=s(k).Centroid(2);
a=s(k).... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | calculation_avg_neighbourhood_matrix.m | .m | understanding_CRF_using_GMM-master/calculation_avg_neighbourhood_matrix.m | 3,073 | utf_8 | b06e750d3236af1f955aad1235d43755 | % the script gives us a average neighbourhood graph
% for instance given a head how likely it is for it to have torso as it's neighbour, or the legs based on the training data
function calculation_avg_neighbourhood_matrix(category)
if((exist(sprintf('./mean_neighbourhood_matrices/%s',category),'dir'))=... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | to_annotate_ten_sketches.m | .m | understanding_CRF_using_GMM-master/to_annotate_ten_sketches.m | 1,108 | utf_8 | 5f380b702d3077e821ec37e032c286c7 | %% got some data for the SVM
function to_annotate_ten_sketches(category)
img_list=dir(sprintf('../results_test_segmentation/raw_output_part_merged/%s_10000',category));
for i=3:12
load(sprintf('./training_for_certainity_and_uncertainity_of_segments/%s/%s.mat',category,char(img_list(i).name(1:end-... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | post_process.m | .m | understanding_CRF_using_GMM-master/post_process.m | 975 | utf_8 | d1e14f87db9664d776542119c8ddc33a | %% the function to call to final post process
function post_process(category)
%create an image list
img_list = dir(sprintf('../results_test_segmentation/raw_output_part_merged/%s_10000',category));
%in a for loop take ech and every image and load the following
%corresponding file
disp(categ... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | show_segmented_image.m | .m | understanding_CRF_using_GMM-master/show_segmented_image.m | 1,014 | utf_8 | c195d77d389adcb0b867655dc949753c | %5 a head can have two blobs a code to visualise the segmented image
function show_segmented_image(lab,segmented)
image_orig=visualise_the_new_obtained_segmentation(lab);
count_total_regions=length(unique(segmented));
segment_number_present=unique(segmented);
segment_number_present=segme... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | visualise_the_new_obtained_segmentation.m | .m | understanding_CRF_using_GMM-master/visualise_the_new_obtained_segmentation.m | 891 | utf_8 | 8f0b3148687fc411fb1a4d6e14bac30b | %% helps in visualising the segmentation that we have! Nomenclature a bit confusing
function [rlab]=visualise_the_new_obtained_segmentation(copy_lab)
copy_lab=copy_lab+1;
colors=[0,0,0; % backgorund
127,219,255; % sky blue
133,20,75; % maroon type
255,133,27; % br... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | to_fit_svm_on_data.m | .m | understanding_CRF_using_GMM-master/to_fit_svm_on_data.m | 858 | utf_8 | 65f62c69fec3a4c9e8c529c48d078c38 | %% training the SVM
function to_fit_svm_on_data(category)
if((exist(sprintf('./svm_models'),'dir'))==0)
mkdir(sprintf('./svm_models'));
end
if((exist(sprintf('./svm_models/%s',category),'dir'))==0)
mkdir(sprintf('./svm_models/%s',category));
end
img_list=dir(sprintf('./tra... |
github | harsh-agarwal/understanding_CRF_using_GMM-master | calculate_uncertain_segments.m | .m | understanding_CRF_using_GMM-master/calculate_uncertain_segments.m | 445 | utf_8 | cee38d89d4a621ce47f5a7545d1171db | % we had trained an SVM model that would help us in categorising if given a part_probability whether it is
% cetain or incertain wbout the prediction!
function [uncertain_segments_index]=calculate_uncertain_segments(category,part_probability)
load(sprintf('svm_models/%s.mat',category));
certainity_uncer... |
github | jakobsj/AIRToolsII-master | calc_relaxpar.m | .m | AIRToolsII-master/auxil/calc_relaxpar.m | 8,628 | utf_8 | 68e147dc758570e549cad05da2780807 | function [relaxpar, casel, rho] = ...
calc_relaxpar(relaxparinput, rho, kmax, atma, n)
%CALC_RELAXPAR Compute the relaxation parameter for all methods
%
% relaxpar = calc_relaxpar(relaxparinput)
% [relaxpar, casel, rho] = ...
% calc_relaxpar(relaxparinput, rhoinput, kmax, atma, n)
%
% The short fo... |
github | jakobsj/AIRToolsII-master | paralleltomo.m | .m | AIRToolsII-master/testprobs/paralleltomo.m | 9,767 | utf_8 | e222ff99011ea558812f22f82fff4341 | function [A,b,x,theta,p,d] = paralleltomo(N,theta,p,d,isDisp,isMatrix)
%PARALLELTOMO Creates a 2D parallel-beam tomography test problem
%
% [A,b,x,theta,p,d] = paralleltomo(N)
% [A,b,x,theta,p,d] = paralleltomo(N,theta)
% [A,b,x,theta,p,d] = paralleltomo(N,theta,p)
% [A,b,x,theta,p,d] = paralleltomo(N,theta,p,... |
github | jakobsj/AIRToolsII-master | fanlineartomo.m | .m | AIRToolsII-master/testprobs/fanlineartomo.m | 11,166 | utf_8 | 31351e0798a56c5b1cfd228e5c1c5751 | function [A,b,x,theta,p,R,dw,sd] = ...
fanlineartomo(N,theta,p,R,dw,sd,isDisp,isMatrix)
%FANLINEARTOMO Creates 2D fan-beam linear-detector tomography test problem
%
% [A,b,x,theta,p,R,d] = fanlineartomo(N)
% [A,b,x,theta,p,R,d] = fanlineartomo(N,theta)
% [A,b,x,theta,p,R,d] = fanlineartomo(N,theta,p)
% [A,... |
github | jakobsj/AIRToolsII-master | seismicwavetomo.m | .m | AIRToolsII-master/testprobs/seismicwavetomo.m | 9,213 | utf_8 | 0e9aaed7ca98d4984d6d14cb7c9fb3e2 | function [A,b,x,s,p,omega] = seismicwavetomo(N,s,p,omega,isDisp,isMatrix)
%SEISMICWAVETOMO Seismic tomography problem without the ray assumption
%
% [A,b,x,s,p] = seismicwavetomo(N)
% [A,b,x,s,p] = seismicwavetomo(N,s)
% [A,b,x,s,p] = seismicwavetomo(N,s,p)
% [A,b,x,s,p] = seismicwavetomo(N,s,p,omega)
%... |
github | jakobsj/AIRToolsII-master | fancurvedtomo.m | .m | AIRToolsII-master/testprobs/fancurvedtomo.m | 10,866 | utf_8 | 296ae1d0657c71c6fb395008035785ba | function [A,b,x,theta,p,R,d] = fancurvedtomo(N,theta,p,R,d,isDisp,isMatrix)
%FANCURVEDTOMO Creates 2D fan-beam curved-detector tomography test problem
%
% [A,b,x,theta,p,R,d] = fancurvedtomo(N)
% [A,b,x,theta,p,R,d] = fancurvedtomo(N,theta)
% [A,b,x,theta,p,R,d] = fancurvedtomo(N,theta,p)
% [A,b,x,theta,p,R,d]... |
github | jakobsj/AIRToolsII-master | phantomgallery.m | .m | AIRToolsII-master/testprobs/phantomgallery.m | 33,409 | utf_8 | 58d9457294d4e72613ea8dafe169d278 | function im = phantomgallery(name,N,P1,P2,P3)
%PHANTOMGALLERY A collection of 2D phantoms for use in test problems
%
% im = phantomgallery(name,N)
% im = phantomgallery(name,N,P1)
% im = phantomgallery(name,N,P1,P2)
% im = phantomgallery(name,N,P1,P2,P3)
%
% The phantom im is N-by-N with pixel values b... |
github | jakobsj/AIRToolsII-master | seismictomo.m | .m | AIRToolsII-master/testprobs/seismictomo.m | 9,003 | utf_8 | 25f3cb17c60fb0759abbc4980eee1842 | function [A,b,x,s,p] = seismictomo(N,s,p,isDisp,isMatrix)
%SEISMICTOMO Creates a 2D seismic travel-time tomography test problem
%
% [A,b,x,s,p] = seismictomo(N)
% [A,b,x,s,p] = seismictomo(N,s)
% [A,b,x,s,p] = seismictomo(N,s,p)
% [A,b,x,s,p] = seismictomo(N,s,p,isDisp)
% [A,b,x,s,p] = seismictomo(N,s,p,isDi... |
github | jakobsj/AIRToolsII-master | sphericaltomo.m | .m | AIRToolsII-master/testprobs/sphericaltomo.m | 9,004 | utf_8 | cfa790c762f9aa4e5885890185e2bd35 | function [A,b,x,angles,numCircles] = ...
sphericaltomo(N,angles,numCircles,isDisp,isMatrix)
%SPHERICALTOMO Creates a 2D spherical Radon tomography test problem
%
% [A,b,x,angles,numCircles] = sphericaltomo(N)
% [A,b,x,angles,numCircles] = sphericaltomo(N,angles)
% [A,b,x,angles,numCircles] = sphericalt... |
github | gegey2008/ML-DP-master | loadImage.m | .m | ML-DP-master/tutorials/image/segmentation_felzenszwalb/loadImage.m | 508 | utf_8 | b92c98ca1dc61943322b703c3188994e | %%
% Load Image
function image = loadImage(filePath,Im_size)
if nargin == 0
fprintf('Error: No argv !');
elseif nargin == 1
Im_size = 224;
elseif nargin > 2
fprintf('Error: argv number more than 2 !');
end
im = imread(filePath);
im = imresize(im, [Im_size, Im... |
github | gegey2008/ML-DP-master | random_rgb.m | .m | ML-DP-master/tutorials/image/segmentation_felzenszwalb/random_rgb.m | 170 | utf_8 | 2f23a206f1c3d95b027baf0c00022c1c | %%
% random color
function c = random_rgb()
c.r = uint8(round(255*rand(1,1)));
c.g = uint8(round(255*rand(1,1)));
c.b = uint8(round(255*rand(1,1)));
end |
github | gegey2008/ML-DP-master | findSet.m | .m | ML-DP-master/tutorials/image/segmentation_felzenszwalb/findSet.m | 262 | utf_8 | eb53ad8c78580f51d860af2d49d5db33 | %%
% implement disjoint set by union-by-rank
% https://www.geeksforgeeks.org/union-find-algorithm-set-2-union-by-rank/
%%
function [y, elts] = findSet(x, elts)
y = x;
while(y ~= elts(y).p)
y = elts(y).p;
end
elts(x).p = y;
end |
github | gegey2008/ML-DP-master | joinSet.m | .m | ML-DP-master/tutorials/image/segmentation_felzenszwalb/joinSet.m | 512 | utf_8 | fbc374f1c891913a9ee4cc707a512825 | %%
% implement disjoint set by union-by-rank
% https://www.geeksforgeeks.org/union-find-algorithm-set-2-union-by-rank/
%%
function [elts, num] = joinSet(x, y, elts, num)
if (elts(x).rank > elts(y).rank)
elts(y).p = x;
elts(x).size = elts(x).size + elts(y).size;
else
elts(x).p ... |
github | gegey2008/ML-DP-master | diffIntensity.m | .m | ML-DP-master/tutorials/image/segmentation_felzenszwalb/diffIntensity.m | 200 | utf_8 | 264fba293e775bfd57dbe71094daa7f2 | %%
% compute diff
function weight = diffIntensity(r, g, b, x1, y1, x2, y2)
weight = sqrt((r(x1,y1)-r(x2,y2)).^2 + (g(x1,y1)-g(x2,y2)).^2 ...
+ (b(x1,y1)-b(x2,y2)).^2);
end |
github | gegey2008/ML-DP-master | makeSet.m | .m | ML-DP-master/tutorials/image/segmentation_felzenszwalb/makeSet.m | 296 | utf_8 | 4522a1b20ba2b516e6aa9f44e3e659b8 | %%
% implement disjoint set by union-by-rank
%%
function [elts, num] = makeSet(elements)
num = elements;
for i = 1 : elements;
elts(i).rank = 0;
elts(i).size = 1;
elts(i).p = i; %parent node, arrange all node as parent node by weight
end
end |
github | pcluteijn/MazeLearning-master | fncPrimsMaze.m | .m | MazeLearning-master/fncPrimsMaze.m | 13,729 | utf_8 | d4ce5d5d96c87381eea7d2b18d4300f1 | function [M,H,S] = fncPrimsMaze(nrows,ncols,seed,doPlot,doAnimate,doVertex)
% Maze generation algorithm (Prim's)
% -------------------------------------------------------------------------
%
% Function :
% [M,H] = fncPrimsMaze(nrows,ncols,seed,doPlot,doAnimate,doVertex)
%
% Inputs :
% nrows - ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.