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 | reklab/reklab_public-master | jacobian.m | .m | reklab_public-master/nlid_tools/@vseries/jacobian.m | 2,233 | utf_8 | 48e26acacac4cff6b7935f6c33014342 | function J = jacobian(vs,z,varargin);
% computes hessian for least squares estimate of a volterra series
% Copyright 2004, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For details, see ../copying.txt and ../gpl.txt
% make sure... |
github | reklab/reklab_public-master | gen_kern.m | .m | reklab_public-master/nlid_tools/@vseries/private/gen_kern.m | 1,720 | utf_8 | 72d6b7455b70279bbf893432b0c19847 | function kern = gen_kern(basis,coeff,order);
%
% usage kern = gen_kern(basis,coeff,order);
%
%
% Copyright 1999-2003, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For details, see ../../copying.txt and ../../gpl.txt
... |
github | reklab/reklab_public-master | lag_id.m | .m | reklab_public-master/nlid_tools/@vseries/private/lag_id.m | 2,594 | utf_8 | d78af6e96f76443fb3abee7f2ea68fad | function vs = lag_id(vs,u,y,Ts)
% Laguerre based identification
% Copyright 1999-2003, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For details, see ../../copying.txt and ../../gpl.txt
Qmax = get(vs,'vsOrderMax');
hlen = get(... |
github | reklab/reklab_public-master | lnlkernel.m | .m | reklab_public-master/nlid_tools/@vseries/old/lnlkernel.m | 1,527 | utf_8 | 0efd39e5a3de15cd5cbff48b5b07db15 | function [kernel] = lnlkernel ( g,h,Q,kern_len)
% computes the Q'th order Volterra kernel of an LNL system
%
% Syntax: kernel = lnlkernel ( g,h,Q,kern_len)
%
% creates the order kernel for an LNL cascade with linear elements
% g followed a squarer followed by h
%
% kern_len is the maximum size of the kernel
%
% ... |
github | reklab/reklab_public-master | hessian.m | .m | reklab_public-master/nlid_tools/@vseries/old/hessian.m | 1,571 | utf_8 | 995641d6baa2033fc563902e7b4c4090 | function H = hessian(vs,z,varargin);
% computes hessian for least squares estimate of a volterra series
% Copyright 2004, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For details, see ../copying.txt and ../gpl.txt
% make sure... |
github | reklab/reklab_public-master | vs2ws.m | .m | reklab_public-master/nlid_tools/@vseries/old/vs2ws.m | 1,919 | utf_8 | 4ddc949f174933a7ca232dbf737bb217 | function ws = vs2ws(vs,wsin);
% converts a wiener series into a volterra series
% uses theorem 5.4 from Rugh (1981).
% Copyright 2003, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For details, see ../copying.txt and ../gpl.txt
... |
github | reklab/reklab_public-master | jacobian.m | .m | reklab_public-master/nlid_tools/@vseries/old/jacobian.m | 2,191 | utf_8 | fb8f7d21e0ea30c9a6184903cec5256a | function J = jacobian(vs,z,varargin);
% computes hessian for least squares estimate of a volterra series
% Copyright 2004, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For details, see ../copying.txt and ../gpl.txt
% make sur... |
github | reklab/reklab_public-master | vseries.m | .m | reklab_public-master/nlid_tools/@vseries/old/vseries.m | 723 | utf_8 | bd8841e7b3f2241f16e1c5460f9bc93e | function VS = vseries (z, varargin)
% Volterra Series Model
% Parent: nlm
% Copyright 1999-2003, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For details, see ../copying.txt and ../gpl.txt
VS=mkvseries;
if nargin==0;
return... |
github | reklab/reklab_public-master | pvpc.m | .m | reklab_public-master/nlid_tools/@pvpc/pvpc.m | 47,789 | utf_8 | 03b4b7293dce8d57a25a61389e3042ef | classdef pvpc < pvm
% pvpc - parameter-varying parallel-cascade model of joint stiffness for NLID toolbox.
% pvpc model has two pathways:
% Intrinsic pathway represnted by a PV IRF model (pvirf class)
% Reflex pathway represented by a PV Hammerstein model (pvnlbl class)
% These will be ... |
github | reklab/reklab_public-master | nlsim_short_segment.m | .m | reklab_public-master/nlid_tools/@ssm/private/nlsim_short_segment.m | 3,417 | utf_8 | ef196c6a58c9ab93aea35f53f2c72a92 | function outp = nlsim_short_segment (ps,z)
%This function estimates initial condition of a linear system and predicts
%model output using the estimated initial conditions
%
%%
assign(ps);
ts = get(z,'domainIncr');
if ~(ts == domainIncr)
error('Input-output and system sampling rate mismatch')
end
in_onsetPointer = g... |
github | reklab/reklab_public-master | short_segment.m | .m | reklab_public-master/nlid_tools/@ssm/private/short_segment.m | 6,756 | utf_8 | 72a65fc001c568f0fe966aa937db6654 | function system_ss = short_segment (z,ps)
%This function estimates a linear system based on short segments of input
%and output
%system_ss= linear_short_segment (z,ps)
%z must be a segdat object
%system_ss is an ssm object
% Author: Kian Jalaleddini
% Date: February 14, 2014 Ver0.1s
% Date : February 24, 2014 Ver0.2
%%... |
github | reklab/reklab_public-master | pvirf.m | .m | reklab_public-master/nlid_tools/@pvirf/pvirf.m | 8,971 | utf_8 | d9ee3b0fca942dd5c5e817171160250a | classdef pvirf < pvm
% pvirf - parameter-varying model class for NLID toolbox, which is
% a subclass of the superclass pvm.
% Note pvirf is a linear parameter varying (LPV) model structure
properties
domainIncr = 1;
domainName = 'Lag (s)';
nSides = 1;
irfEx... |
github | reklab/reklab_public-master | pvnlbl.m | .m | reklab_public-master/nlid_tools/@pvnlbl/pvnlbl.m | 34,654 | utf_8 | e316e9882742988c06c688ed689c2c6e | classdef pvnlbl < pvm
% pvnlbl - parameter-varying nonlinear-linear model (Hammerstein model) for NLID toolbox.
% pvnlbl model comprises a cascade of a pvnl model followed by a pvirf model
% stored in the elements property {pvnl,pvirf}.
% Identification methods supported:
% 1) Non-... |
github | reklab/reklab_public-master | laguerre.m | .m | reklab_public-master/nlid_tools/@pvnlbl/private/laguerre.m | 1,062 | utf_8 | 512f51e5d2695d3dbb3222140ce8c8f5 | %% This function generates Laguerre orthonormal basis functions
%++ Author: Ehsan Sobhani (10 April 2014)
%++ This is based on Maremaleris book OR formula (11) of his paper titled:
%++ "Identification of Nonlinear Biological Systems Using Laguerre Expansions of Kernels", Annals of Biomed. Eng., vol. 21, pp. 573-589,... |
github | reklab/reklab_public-master | ln2vs.m | .m | reklab_public-master/nlid_tools/@lnbl/ln2vs.m | 2,283 | utf_8 | 454bcbe213af58b27c0217c8c7c06774 | function vs=ln2vs (ln, vsin)
% generate Volterra kernels for Wiener cascade model
% Copyright 2003, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For details, see ../copying.txt and ../gpl.txt
OrderMax = get(vsin,'vsOrderMax');... |
github | reklab/reklab_public-master | lm_ident.m | .m | reklab_public-master/nlid_tools/@lnbl/lm_ident.m | 2,429 | utf_8 | ede4408a50316c1e295e3a32cab904a6 | function bl = lm_ident(bl,iodata)
% nonlinear optimization method for Wiener cascade fitting.
% uses a Levenberg-Marquardt second-order gradient descent search.
%
% Copyright 2003, Robert E Kearney and David T Westwick
% This file is part of the nlid toolbox, and is released under the GNU
% General Public License For... |
github | reklab/reklab_public-master | nlident.m | .m | reklab_public-master/nlid_tools/@lnbl/obsolete/nlident.m | 2,788 | utf_8 | 4451e69a757e0b577969e3f748320248 | function bl = nlident (bl, z, varargin)
% Identify a lnbl
if nargin > 2
set (bl,varargin{:});
end
if isa(z,'nldat') | isa(z,'double')
if isa(z,'nldat')
Ts=z.domainIncr;
else
subsys = get(bl,'elements');
f1 = subsys{1};
Ts = f1.domainIncr;
z = nldat(z,'domainIncr',Ts);
end
assign(bl... |
github | reklab/reklab_public-master | struct_table.m | .m | reklab_public-master/utility_tools/struct_table.m | 5,816 | utf_8 | 8608185694ceaacc1f6195efb0b45cbb | function struct_table (fname,S,TableTitle, varargin)
%struct_table - output a structure to a html table
% $Revision: 1.26 $
% Usage:
% struct_disp (fname, S, TableTitle)
% fname - output filename
% S - structure to display. S may be a structure or cel array of
% strucutures in which case each element in the cell... |
github | reklab/reklab_public-master | struct2txt.m | .m | reklab_public-master/utility_tools/struct2txt.m | 3,221 | utf_8 | 9a7636af69009f5bc0260255ce1d02bb | function struct2txt(S, fileName, varargin)
%struct_table - output a structure to a csv file
% $Revision: 1.1 $
% Usage:
% struct_disp (fname, S, TableTitle)
% fname - output filename
% S - structure to display. S may be a structure or cel array of
% strucutures in which case each element in the cell array is di... |
github | reklab/reklab_public-master | figMod.m | .m | reklab_public-master/utility_tools/figMod.m | 9,228 | utf_8 | 894939b3fde20176eb703460e90da561 | function fig_mod (h, varargin)
%function fig_mod (h, 'option' ,'value' );
% modify plots
%
% figmod(1,'?') for help
% 28 Apr 94 REK added title color parameter
% 22 feb 99 REK Rework to use arg_parse.
% 'layout' option changed to 'page_layout' to void conflict with
% matlab layout function.
% ... |
github | reklab/reklab_public-master | inputsdlg.m | .m | reklab_public-master/utility_tools/inputsdlg.m | 60,130 | utf_8 | 01e6ed4a2597b6e2b98f36be19aa4d1c | function [Answer,Canceled] = inputsdlg(Prompt, Title, Formats, DefAns, Options)
%INPUTSDLG Enhanced input dialog box supporting multiple data types
% ANSWER = INPUTSDLG(PROMPT) creates a modal dialog box that returns user
% input for multiple prompts in the cell array ANSWER. PROMPT is a 1-D
% cell array containing the... |
github | reklab/reklab_public-master | flbio.m | .m | reklab_public-master/utility_tools/flbio.m | 6,971 | utf_8 | 57b57a3527fc93c0d8281a88980441c2 | function D = flbio( fid, option, D )
% FLBIO - perform io operations on flb files
%
% option:
% 'read_details - read details of next case
% 'read_data' - read data for next case
% 'read_case'
% 'read_index'
% 'read_all'
% 'write_case'
% 'new_real'
%
% Usage
%
% Example
%
% Se... |
github | reklab/reklab_public-master | fig_mod_old.m | .m | reklab_public-master/utility_tools/fig_mod_old.m | 9,229 | utf_8 | 74159cb52f8742699be42064a16a2382 | function fig_mod (h, varargin)
%function fig_mod (h, 'option' ,'value' );
% modify plots
%
% figmod(1,'?') for help
% 28 Apr 94 REK added title color parameter
% 22 feb 99 REK Rework to use arg_parse.
% 'layout' option changed to 'page_layout' to void conflict with
% matlab layout function.
% ... |
github | reklab/reklab_public-master | structop.m | .m | reklab_public-master/utility_tools/structop.m | 41,508 | utf_8 | 7fd43d009c7666d01398c86fa590e8ca | function SS = structop (OPER, S, varargin )
% SS = StructOP (OPER, S, varargin )
% $Revision: 1.75 $
% Utiltiy operations for working on strucutres.
% Structures must be organized as can be organized in either:
% -eOrg - element-by-element organization: A(n).fields
% -pOrg - organize by planes: A.fields(n)
% All ... |
github | reklab/reklab_public-master | struct_table_old.m | .m | reklab_public-master/utility_tools/struct_table_old.m | 1,485 | utf_8 | 610ecb11c22d2f9194d3dce04ad3e5c7 | function struct_table (fname,S,TableTitle, cf)
%struct_table - output a structure to a html table
% $Revision: 1.1.1.1 $
% Usage:
% struct_disp (fname, S, TableTitle)
% fname - output filename
% S - structure to display
% cw - vector of colmn widths or scalar specifying all widths
% Copyright 2003, Robert E Kearn... |
github | reklab/reklab_public-master | unixt2datestr.m | .m | reklab_public-master/utility_tools/unixt2datestr.m | 160 | utf_8 | 8a2fb07f319c801d5077cf830d5d6b66 |
function date_time = unixt2datestr (unix_time)
% Convert a unix time stamp to a date time str
date_time = datestr(unix_time./86400 + datenum(1970,1,1));
return |
github | reklab/reklab_public-master | tv_2.m | .m | reklab_public-master/utility_tools/tv_2.m | 2,917 | utf_8 | 315a424c956f26b7ae105d9407b1fc4d |
function [H] = tv_2nd_order_LP(I,B,K,hlength,dt,dt1)
% Generates a time varying impusle response of second-order low-pass filters (IRF's).
%
% Usage: [H] = tv_2nd_order_LP(I,B,K,hlength,dt,dt1)
%
% I,B,K: vectors containing values of the inertial, viscous, and elastic parameters
% (each vector eleme... |
github | reklab/reklab_public-master | tv_hammer_system.m | .m | reklab_public-master/utility_tools/tv_hammer_system.m | 3,904 | utf_8 | 9366e3119756d3d0d6ea210d483946f0 |
function [hammer, xpoly, xlinear] = tv_hammer_system(duration,dt,verbose)
% hammer = hammer_system(duration,dt,verbose)
%
% Creates tv_hammerstein object used to test identification technique
%
% duration: desired duration of the time-varying behaviour (in seconds)
% dt: sampling interval
%
% hamme... |
github | reklab/reklab_public-master | flb2mat.m | .m | reklab_public-master/utility_tools/flb2mat.m | 2,165 | utf_8 | 3833c00d61b444a26c3fb5510137cf42 | function D= flb2mat (fname, option, caseNum)
% FLBTOMAT_M.M ...
%
% read data from a FILELB file
%% Usage: D = flbtomat(file, option, case)
% outputs is a strucutre containing details and daa
%
% % Usage
% inputs are:
% file - name of filelb file
% option = 'index' - generate index of flbfile... |
github | reklab/reklab_public-master | menu_reklab.m | .m | reklab_public-master/utility_tools/menu_reklab.m | 12,658 | utf_8 | 3a359710045423865e90a247f22da155 | function k = menu(xHeader,varargin)
%MENU Generate a menu of choices for user input.
% CHOICE = MENU(HEADER, ITEM1, ITEM2, ... ) displays the HEADER
% string followed in sequence by the menu-item strings: ITEM1, ITEM2,
% ... ITEMn. Returns the number of the selected menu-item as CHOICE,
% a scalar value. Ther... |
github | reklab/reklab_public-master | MakeContents.m | .m | reklab_public-master/utility_tools/MakeContents.m | 4,325 | utf_8 | 539bd7505aad2bbdf54de6813999f70a | function MakeContents(aString, flags)
% MAKECONTENTS makes Contents file in current working directory.
% MAKECONTENTS(STRING,FLAGS) creates a standard "Contents.m" file in the
% current directory by assembling the first comment (H1) line in
% each function found in the current working directory. If a
% "Conte... |
github | reklab/reklab_public-master | tv_2nd_order_LP.m | .m | reklab_public-master/utility_tools/tv_2nd_order_LP.m | 2,919 | utf_8 | 8fc240deaccdb2c5790dc8e449c7fbf8 |
function [H] = tv_2nd_order_LP(I,B,K,hlength,dt,dt1)
% Generates matrix of second-order low-pass filters (IRF's).
%
% Usage: [H] = tv_2nd_order_LP(I,B,K,hlength,dt,dt1)
%
% I,B,K: vectors containing values of the inertial, viscous, and elastic parameters
% (each vector element corresponds to a speci... |
github | reklab/reklab_public-master | arg_parseAgent.m | .m | reklab_public-master/utility_tools/arg_parseAgent.m | 1,519 | utf_8 | 9b25b182a535a588891cff572faf6ffe | function [error_flag,options] = arg_parse ( options, varargin)
% arg_parse ( options, varargin) -Parse and decode variable number of inputs
% options must be cell array of form:
% { {options1 default1} {option2 default2} ... }
% $Revision: 1.1 $
% Copyright 2000, Robert E Kearney
% This file is part of the nlid tool... |
github | reklab/reklab_public-master | any2csv.m | .m | reklab_public-master/utility_tools/any2csv.m | 9,161 | utf_8 | de739510a7b61d6e165414f247c51953 | function str = any2csv(s,cellsep,humanreadable,file)
%any2text writes contents of s to a nicely formated csv-file
% and/or returns the csv-string. For formating details, see strcells below.
%
% Inputs
% ------
% s: Any Object, including cells and structs.
% User-defined objects are tried to be processed as char(obj... |
github | reklab/reklab_public-master | mm.m | .m | reklab_public-master/utility_tools/mm.m | 6,914 | utf_8 | 229b2b3cf8212b8127c664f39060d7ec | function mm(action)
%MM Memory Monitor displays runtime memory information
% MM(t) updates data in t seconds steps
%
% version v1.4
% author Elmar Tarajan [MCommander@gmx.de]
%
if eval(version('-release'))<14 | ~ispc
error('Sorry...MATLAB R14 on Windows PC is required. :(')
end% if
%
if nargin==0 | isa(actio... |
github | reklab/reklab_public-master | arg_parse.m | .m | reklab_public-master/utility_tools/arg_parse.m | 1,936 | utf_8 | 45e181f26e26f73373bae34dedc0086d | function error_flag = arg_parse ( options, varargin)
% arg_parse ( options, varargin) -Parse and decode variable number of inputs
% options defines a set of variables whose values are initialized in the
% calling workspace
% must be cell array of form:
% { {optName optDeauflt1 optHelp1help1} {option2 default2 helText2... |
github | reklab/reklab_public-master | m2html.m | .m | reklab_public-master/utility_tools/m2html/m2html.m | 38,184 | utf_8 | c27a3a1dbb99751ffc9abfe8e2411175 | function m2html(varargin)
%M2HTML - Documentation System for Matlab M-files in HTML
% M2HTML by itself generates an HTML documentation of Matlab M-files in the
% current directory. HTML files are also written in the current directory.
% M2HTML('PropertyName1',PropertyValue1,'PropertyName2',PropertyValue2,...)
% set... |
github | robotology-dependencies/qpOASES-master | make.m | .m | qpOASES-master/interfaces/simulink/make.m | 8,453 | utf_8 | b56fed5a0b41150b8af75373612324c7 | function [] = make( varargin )
%MAKE Compiles the Simulink interface of qpOASES.
%
%Type make to compile all interfaces that
% have been modified,
%type make clean to delete all compiled interfaces,
%type make clean all to first delete and then compile
% ... |
github | robotology-dependencies/qpOASES-master | qpOASES_options.m | .m | qpOASES-master/interfaces/octave/qpOASES_options.m | 10,357 | utf_8 | 719207ae527db13f4b22333e9550c579 | %qpOASES -- An Implementation of the Online Active Set Strategy.
%Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
%Christian Kirches et al. All rights reserved.
%
%qpOASES is distributed under the terms of the
%GNU Lesser General Public License 2.1 in the hope that it will be
%useful, but WITHOUT ANY... |
github | robotology-dependencies/qpOASES-master | make.m | .m | qpOASES-master/interfaces/octave/make.m | 8,296 | utf_8 | 2ab639ac67f632a68b41a91e0b666f74 | function [] = make( varargin )
%MAKE Compiles the octave interface of qpOASES.
%
%Type make to compile all interfaces that
% have been modified,
%type make clean to delete all compiled interfaces,
%type make clean all to first delete and then compile
% ... |
github | robotology-dependencies/qpOASES-master | qpOASES_auxInput.m | .m | qpOASES-master/interfaces/octave/qpOASES_auxInput.m | 4,436 | utf_8 | fcc9652ca47c9fe89d24f7dc500fcb49 | %qpOASES -- An Implementation of the Online Active Set Strategy.
%Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
%Christian Kirches et al. All rights reserved.
%
%qpOASES is distributed under the terms of the
%GNU Lesser General Public License 2.1 in the hope that it will be
%useful, but WITHOUT ANY... |
github | robotology-dependencies/qpOASES-master | qpOASES_options.m | .m | qpOASES-master/interfaces/matlab/qpOASES_options.m | 10,357 | utf_8 | 719207ae527db13f4b22333e9550c579 | %qpOASES -- An Implementation of the Online Active Set Strategy.
%Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
%Christian Kirches et al. All rights reserved.
%
%qpOASES is distributed under the terms of the
%GNU Lesser General Public License 2.1 in the hope that it will be
%useful, but WITHOUT ANY... |
github | robotology-dependencies/qpOASES-master | make.m | .m | qpOASES-master/interfaces/matlab/make.m | 8,997 | utf_8 | 55ce9b55d80b98c042742e61a7372014 | function [] = make( varargin )
%MAKE Compiles the Matlab interface of qpOASES.
%
%Type make to compile all interfaces that
% have been modified,
%type make clean to delete all compiled interfaces,
%type make clean all to first delete and then compile
% ... |
github | robotology-dependencies/qpOASES-master | qpOASES_auxInput.m | .m | qpOASES-master/interfaces/matlab/qpOASES_auxInput.m | 4,436 | utf_8 | fcc9652ca47c9fe89d24f7dc500fcb49 | %qpOASES -- An Implementation of the Online Active Set Strategy.
%Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
%Christian Kirches et al. All rights reserved.
%
%qpOASES is distributed under the terms of the
%GNU Lesser General Public License 2.1 in the hope that it will be
%useful, but WITHOUT ANY... |
github | robotology-dependencies/qpOASES-master | runAllTests.m | .m | qpOASES-master/testing/matlab/runAllTests.m | 5,548 | utf_8 | bdff35e75080becaee269cf4f487d115 | function [ successFlag ] = runAllTests( doPrint )
if ( nargin < 1 )
doPrint = 0;
end
successFlag = 1;
curWarnLevel = warning;
warning('off');
% add sub-folders to Matlab path
setupTestingPaths();
clc;
%% run interface tests
fprintf(... |
github | robotology-dependencies/qpOASES-master | runInterfaceTest.m | .m | qpOASES-master/testing/matlab/tests/runInterfaceTest.m | 16,774 | utf_8 | 695fea461f4e440770b787dcafe361d2 | function [ successFlag ] = runInterfaceTest( nV,nC, doPrint,seed )
if ( nargin < 4 )
seed = 42;
if ( nargin < 3 )
doPrint = 1;
if ( nargin < 2 )
nC = 10;
if ( nargin < 1 )
nV = 5;
end
... |
github | robotology-dependencies/qpOASES-master | runRandomZeroHessian.m | .m | qpOASES-master/testing/matlab/tests/runRandomZeroHessian.m | 14,399 | utf_8 | 62c1efb1adf03ca9009d830d211f3ef8 | function [ successFlag ] = runRandomZeroHessian( nV,nC, doPrint,seed )
if ( nargin < 4 )
seed = 42;
if ( nargin < 3 )
doPrint = 1;
if ( nargin < 2 )
nC = 10;
if ( nargin < 1 )
nV = 5;
end
... |
github | robotology-dependencies/qpOASES-master | runInterfaceSeqTest.m | .m | qpOASES-master/testing/matlab/tests/runInterfaceSeqTest.m | 15,458 | utf_8 | 7fd12067642b559d3dd08130be565119 | function [ successFlag ] = runInterfaceSeqTest( nV,nC, doPrint,seed )
if ( nargin < 4 )
seed = 42;
if ( nargin < 3 )
doPrint = 1;
if ( nargin < 2 )
nC = 10;
if ( nargin < 1 )
nV = 5;
end
... |
github | robotology-dependencies/qpOASES-master | runRandomIdHessian.m | .m | qpOASES-master/testing/matlab/tests/runRandomIdHessian.m | 14,687 | utf_8 | 1bf0849e7175e73709bbae55057eeff5 | function [ successFlag ] = runRandomIdHessian( nV,nC, doPrint,seed )
if ( nargin < 4 )
seed = 42;
if ( nargin < 3 )
doPrint = 1;
if ( nargin < 2 )
nC = 10;
if ( nargin < 1 )
nV = 5;
end
... |
github | robotology-dependencies/qpOASES-master | isoctave.m | .m | qpOASES-master/testing/matlab/auxFiles/isoctave.m | 508 | utf_8 | c857dec2b164c5835c0d5235cd7ad8f0 |
% ISOCTAVE True if the operating environment is octave.
% Usage: t=isoctave();
%
% Returns 1 if the operating environment is octave, otherwise
% 0 (Matlab)
%
% ---------------------------------------------------------------
function t=isoctave()
%ISOCTAVE True if the operating environment is octave.
% U... |
github | ecotillasanchez/cosmic-master | nrsolve.m | .m | cosmic-master/numerics/nrsolve.m | 5,322 | utf_8 | a0c6ee544404be258d11e2fd9f6acda0 | function [x,exitflag,k] = nrsolve(eval_g,x0,opts)
% use the Newton-Raphson method to solve a set of non-linear equations
% usage: [x,exitflag,k] = nrsolve(g,x0,opts)
%
% This function solves the unconstrained optimization problem
% minimize 0.5 g(x)' * g(x)
% x
%
% Inputs:
% eval_g is the g function, with two o... |
github | ecotillasanchez/cosmic-master | numerics_options.m | .m | cosmic-master/numerics/numerics_options.m | 535 | utf_8 | 0311d0d1397d44820888c083b936185a |
function opts = numerics_options(opts)
% nrsolve options
opts.nr.max_iterations = 20;
opts.nr.tolerance = 1e-9;
opts.nr.alpha_min = 0; % the minimum step size for the newton step
opts.nr.mu = 0; % the parameter for the armijo condition
opts.nr.verbose = 0;
opts.nr.linesearch = 'backtrack';
%... |
github | ecotillasanchez/cosmic-master | updateps.m | .m | cosmic-master/matlab/updateps.m | 3,351 | utf_8 | c12e0be504e852c9a6d237747b428954 | function ps = updateps(ps)
% check for and fix irregular data in a power system data structure
% see "psconstants" for a description of this structure
C = psconstants;
%% make sure that the matrices are big enough
% bus
[n,bu_cols] = size(ps.bus);
if bu_cols < C.bu.cols
ps.bus = addcolumns(ps.bus,C.bu.cols);
end
... |
github | ecotillasanchez/cosmic-master | electrical_distance.m | .m | cosmic-master/matlab/electrical_distance.m | 7,094 | utf_8 | ae61b5c970a28117756f94f9b9b08479 | function E = electrical_distance(Ybus,method,use_cluster,use_pf_jacobian,V)
% calculate a power flow electrical distance matrix
% usage: E = electrical_distance(Ybus,method,use_cluster,use_pf_jacobian,V)
%
% methods available:
% 1. Jacobian: | d(Ti-Tj)/d(Pi-Pj) |, where Ti is the bus angle in radians
% 2. Ybus: ... |
github | sunf71/Matlab-master | formIntegralHistogram.m | .m | Matlab-master/Saliency/formIntegralHistogram.m | 1,519 | utf_8 | c7acf5a4f2043c099aee71ca7aaa92b0 | %% Make integral histogram image
function [intHist,binInd]=formIntegralHistogram(dataMat,numBin,minVal,maxVal)
% currently only 1 histograms
% Compute bin indices
%binInd=ceil(numBin*(double(dataMat)+1e-5)/maxVal);
%binInd(binInd>numBin)=numBin;
if isempty(dataMat)
error('Datamatrix is empty');
end
% If only one... |
github | sunf71/Matlab-master | saliencyMeasure.m | .m | Matlab-master/Saliency/saliencyMeasure.m | 16,445 | utf_8 | 873f38fe2e1fa07a01cc54c9877e3db1 | function [salMat,salMatInd]=saliencyMeasure(dataCell)
% function [salMat,salMatInd]=saliencyMeasure(dataCell) computes saliency measure values for given image.
%
% Inputs:
% dataCell = Cell array containing the input information channels. With current configuration four choices are supported
% dataCell={L},... |
github | sunf71/Matlab-master | bhattacharyya.m | .m | Matlab-master/Saliency/bhattacharyya.m | 1,023 | utf_8 | 8a0439dbf3938ba07fb7b69f6883e09c | % BHATTACHARYYA(histogram1, histogram2)
% compute the BHATTACHARYYA distance between 2 histograms
% where each histogram is a 1xN vector
%
% Based on the estimation presented in
% "Real-Time Tracking of Non-Rigid Objects using Mean Shift"
% D. Comaniciu, V. Ramesh & P. Meer (IEEE CVPR 2000, 142-151)
%
% N.B. both hi... |
github | sunf71/Matlab-master | lbp.m | .m | Matlab-master/Saliency/lbp.m | 6,367 | utf_8 | 6436647fa5d3ac3be0e36cff27f09d23 | %LBP returns the local binary pattern image or LBP histogram of an image.
% J = LBP(I,R,N,MAPPING,MODE) returns either a local binary pattern
% coded image or the local binary pattern histogram of an intensity
% image I. The LBP codes are computed using N sampling points on a
% circle of radius R and using mapping... |
github | sunf71/Matlab-master | pdist2.m | .m | Matlab-master/Saliency/pdist2.m | 5,461 | utf_8 | 173103b09eefbe457c081a3d41cddd3d | % This function belongs to Piotr Dollar's Toolbox
% http://vision.ucsd.edu/~pdollar/toolbox/doc/index.html
% Please refer to the above web page for definitions and clarifications
%
% Calculates the distance between sets of vectors.
%
% Let X be an m-by-p matrix representing m points in p-dimensional space
% and Y be an... |
github | sunf71/Matlab-master | getmapping.m | .m | Matlab-master/Saliency/getmapping.m | 2,844 | utf_8 | 33936aa27484b3a6c19bf746ca57fa77 | %GETMAPPING returns a structure containing a mapping table for LBP codes.
% MAPPING = GETMAPPING(SAMPLES,MAPPINGTYPE) returns a
% structure containing a mapping table for
% LBP codes in a neighbourhood of SAMPLES sampling
% points. Possible values for MAPPINGTYPE are
% 'u2' for uniform LBP
% 'ri' f... |
github | sunf71/Matlab-master | saliencyMeasure2.m | .m | Matlab-master/Saliency/saliencyMeasure2.m | 15,048 | utf_8 | cc7bc771593716f2ca5f4a77815e888b | function [salMat,salMatInd]=saliencyMeasure(dataCell)
% function [salMat,salMatInd]=saliencyMeasure(dataCell) computes saliency measure values for given image.
%
% Inputs:
% dataCell = Cell array containing the input information channels. With current configuration four choices are supported
% dataCell={L},... |
github | sunf71/Matlab-master | localized_seg.m | .m | Matlab-master/localized_seg/localized_seg/localized_seg.m | 7,633 | utf_8 | 75fee123d88b93d69e5d80974002e15c | % Localized Region Based Active Contour Segmentation:
%
% seg = localized_seg(I,init_mask,max_its,rad,alpha,method)
%
% Inputs: I 2D image
% init_mask Initialization (1 = foreground, 0 = bg)
% max_its Number of iterations to run segmentation for
% rad (optional) Localizat... |
github | sunf71/Matlab-master | sfm_local_chanvese.m | .m | Matlab-master/sfm_chanvese_demo/sfm_chanvese_demo/sfm_local_chanvese.m | 2,085 | utf_8 | 9d7598e173efe6263bbd5e52d3af7226 | % [seg Lz] = sfm_local_chanvese(img,mask,iterations,lambda,rad,display)
%
% img - any image (2D or 3D). color images will be
% converted to grayscale.
%
% mask - binary image representing initialization.
% (1's foreground, 0's background)
%
% iterations - number of iterations to run
%
% lambda - rela... |
github | sunf71/Matlab-master | NormalisePoints(1).m | .m | Matlab-master/SinglePathStabilizerV1.0/SinglePathStabilizerV1.0/code/MotionEstimation/RANSAC/NormalisePoints(1).m | 987 | utf_8 | 57bea2734909aa3140e3fcd400698e44 | % Normalise the points to the centroid
function [newpts, T] = NormalisePoints(pts)
if size(pts,1) ~= 3
error('pts must be 3xN');
end
% Find the indices of the points that are not at infinity
finiteind = find(abs(pts(3,:)) > eps);
if length(finiteind) ~= size(pts,2)
disp('S... |
github | sunf71/Matlab-master | EstimateHomographyByRANSAC.m | .m | Matlab-master/SinglePathStabilizerV1.0/SinglePathStabilizerV1.0/code/MotionEstimation/RANSAC/EstimateHomographyByRANSAC.m | 2,993 | utf_8 | a7efcc2095b7b0ea9e0101ae414251e2 |
% Estimate 2D homography using RANSAC
function [H, inliers] = EstimateHomographyByRANSAC(x1, x2, t)
if ~all(size(x1)==size(x2))
error('Data sets x1 and x2 must have the same dimension');
end
[rows,npts] = size(x1);
if rows~=2 && rows~=3
error('x1 and x2 must have 2 or 3 rows');
... |
github | sunf71/Matlab-master | DLT(1).m | .m | Matlab-master/SinglePathStabilizerV1.0/SinglePathStabilizerV1.0/code/MotionEstimation/RANSAC/DLT(1).m | 1,291 | utf_8 | 8397d84aa6919e8ef63fc30d5a1dbfeb | % Fit homography
function H = DLT(varargin)
% Check the input parameters
[x1, x2] = checkargs(varargin(:));
% Normalise each set of points
[x1, T1] = NormalisePoints(x1);
[x2, T2] = NormalisePoints(x2);
Npts = length(x1);
A = zeros(3*Npts,9);
O = [0 0 0];
for n = 1:N... |
github | sunf71/Matlab-master | EstimateHomographyByRANSAC(1).m | .m | Matlab-master/SinglePathStabilizerV1.0/SinglePathStabilizerV1.0/code/MotionEstimation/RANSAC/EstimateHomographyByRANSAC(1).m | 2,993 | utf_8 | a7efcc2095b7b0ea9e0101ae414251e2 |
% Estimate 2D homography using RANSAC
function [H, inliers] = EstimateHomographyByRANSAC(x1, x2, t)
if ~all(size(x1)==size(x2))
error('Data sets x1 and x2 must have the same dimension');
end
[rows,npts] = size(x1);
if rows~=2 && rows~=3
error('x1 and x2 must have 2 or 3 rows');
... |
github | sunf71/Matlab-master | DLT.m | .m | Matlab-master/SinglePathStabilizerV1.0/SinglePathStabilizerV1.0/code/MotionEstimation/RANSAC/DLT.m | 1,291 | utf_8 | 8397d84aa6919e8ef63fc30d5a1dbfeb | % Fit homography
function H = DLT(varargin)
% Check the input parameters
[x1, x2] = checkargs(varargin(:));
% Normalise each set of points
[x1, T1] = NormalisePoints(x1);
[x2, T2] = NormalisePoints(x2);
Npts = length(x1);
A = zeros(3*Npts,9);
O = [0 0 0];
for n = 1:N... |
github | sunf71/Matlab-master | RANSAC(1).m | .m | Matlab-master/SinglePathStabilizerV1.0/SinglePathStabilizerV1.0/code/MotionEstimation/RANSAC/RANSAC(1).m | 2,334 | utf_8 | 5e942fc1d8c8492fe92fb3f4c8de245b |
function [M, inliers] = RANSAC(x, fittingfn, distfn, degenfn, s, t)
maxTrials = 1000;
maxDataTrials = 100;
[rows, npts] = size(x);
% Desired probability of choosing at least one sample free from outliers (probably should be a parameter)
p = 0.99;
bestM = NaN;
trialcount =... |
github | sunf71/Matlab-master | NormalisePoints.m | .m | Matlab-master/SinglePathStabilizerV1.0/SinglePathStabilizerV1.0/code/MotionEstimation/RANSAC/NormalisePoints.m | 987 | utf_8 | 57bea2734909aa3140e3fcd400698e44 | % Normalise the points to the centroid
function [newpts, T] = NormalisePoints(pts)
if size(pts,1) ~= 3
error('pts must be 3xN');
end
% Find the indices of the points that are not at infinity
finiteind = find(abs(pts(3,:)) > eps);
if length(finiteind) ~= size(pts,2)
disp('S... |
github | sunf71/Matlab-master | RANSAC.m | .m | Matlab-master/SinglePathStabilizerV1.0/SinglePathStabilizerV1.0/code/MotionEstimation/RANSAC/RANSAC.m | 2,334 | utf_8 | 5e942fc1d8c8492fe92fb3f4c8de245b |
function [M, inliers] = RANSAC(x, fittingfn, distfn, degenfn, s, t)
maxTrials = 1000;
maxDataTrials = 100;
[rows, npts] = size(x);
% Desired probability of choosing at least one sample free from outliers (probably should be a parameter)
p = 0.99;
bestM = NaN;
trialcount =... |
github | sunf71/Matlab-master | drlse_edge.m | .m | Matlab-master/DRLSE_v0/DRLSE_v0/drlse_edge.m | 3,521 | utf_8 | 7df43ccaa0e968c13b70fb5557115c9c | function phi = drlse_edge(phi_0, g, lambda,mu, alfa, epsilon, timestep, iter, potentialFunction)
% This Matlab code implements an edge-based active contour model as an
% application of the Distance Regularized Level Set Evolution (DRLSE) formulation in Li et al's paper:
%
% C. Li, C. Xu, C. Gui, M. D. Fox, "Dist... |
github | sunf71/Matlab-master | LevelSetEvolutionWithoutReinitialization.m | .m | Matlab-master/DRLSE_v0/DRLSE_v0/LevelSetEvolutionWithoutReinitialization.m | 5,316 | utf_8 | 9838c8e0fadc691f2881c0633bd361b6 | function u = LevelSetEvolutionWithoutReinitialization(Img,sigma,epsilon,mu,lambda,alf,c0,N,PlotRate,mask)
% This Matlab file demomstrates the level set method in Li et al's paper
% "Level Set Evolution Without Re-initialization: A New Variational Formulation"
% in Proceedings of CVPR'05, vol. 1, pp. 430-436.
% Au... |
github | sunf71/Matlab-master | SegmentRefine.m | .m | Matlab-master/SegTool/SegTool/SegToolBox/SegToolBox/SegmentRefine.m | 7,554 | utf_8 | 0937bc69483537208978c25af7d94039 | function [] = SegmentRefine(ImName)
% SEGMENTREFINE - Main graph cuts segmentation function
% SEGMENTREFINE(IMNAME) - ImName - Image to segment
% Authors - Mohit Gupta, Krishnan Ramnath
% Affiliation - Robotics Institute, CMU, Pittsburgh
% 2006-05-15
% Global Variables
global sopt ih_img fgpixels bgpixels fgflag segI... |
github | sunf71/Matlab-master | SegmentBoth.m | .m | Matlab-master/SegTool/SegTool/SegToolBox/SegToolBox/SegmentBoth.m | 8,763 | utf_8 | caa88b89f148d8805c6ca6bbaa322598 | function [] = SegmentGC(ImName);
%%%Main Grab Cuts segmentation function
global ih_img fgpixels bgpixels;
load segimage;
BiImage = SegImage;
figure;
imagesc(BiImage);
SegImage = [];
I = imread(ImName);
I1 = I(:,:,1);
I2 = I(:,:,2);
I3 = I(:,:,3);
%%%% Final Segmented Image
SegImage = zeros(size(I));
Findices = find... |
github | sunf71/Matlab-master | SmartSelectSeg.m | .m | Matlab-master/SegTool/SegTool/SegToolBox/SegToolBox/SmartSelectSeg.m | 2,597 | utf_8 | 455c4871959dc11ec2bd755f763ed332 | function SmartSelectSeg
% SMARTSELECTSEG - This function displays chosen image and creates buttons
% for marking seeds and calling Segment function
% Authors - Mohit Gupta, Krishnan Ramnath
% Affiliation - Robotics Institute, CMU, Pittsburgh
% 2006-05-15
% Global Variables
% Req by radio button RadioButtonFn
global h... |
github | sunf71/Matlab-master | bginput.m | .m | Matlab-master/SegTool/SegTool/SegToolBox/SegToolBox/bginput.m | 1,275 | utf_8 | 8e6b3cf2e432147f05d4238831316476 | %--------------------------------------------------------------------------
function bginput(strg)
% BGINPUT - This function gets the background pixels from user input
% BGINPUT(STRG) - strg - Smart Refine or Smart Rectangle
% Authors - Mohit Gupta, Krishnan Ramnath
% Affiliation - Robotics Institute, CMU, Pittsburg... |
github | sunf71/Matlab-master | SegmentGC.m | .m | Matlab-master/SegTool/SegTool/SegToolBox/SegToolBox/SegmentGC.m | 8,326 | utf_8 | 704b454200c35ddea1bb10db4ab3e84f | function [] = SegmentGC(ImName, ih, alg)
% SEGMENTGC - Main GrabCut segmentation function
% SEGMENTGC(IMNAME, IH, ALG) - ImName - Image to segment
% IH - Image Handle
% ALG - AutoCut or AutoRefine (0 or 1)
% Authors - Mohit Gupta, Krishnan Ramnath
% Affiliation - Robotics Institute, CMU, Pittsburgh
% 2006-05-15
% Glo... |
github | sunf71/Matlab-master | lbp.m | .m | Matlab-master/LBP/lbp.m | 6,278 | utf_8 | b682a240a0e5d9462c8efaf8e5e18ce9 | %LBP returns the local binary pattern image or LBP histogram of an image.
% J = LBP(I,R,N,MAPPING,MODE) returns either a local binary pattern
% coded image or the local binary pattern histogram of an intensity
% image I. The LBP codes are computed using N sampling points on a
% circle of radius R and using mapping... |
github | sunf71/Matlab-master | localized_seg.m | .m | Matlab-master/Activeontours/Activeontours/localized_seg.m | 7,761 | utf_8 | a248792540c81523bb28994de267cee4 | % Localized Region Based Active Contour Segmentation:
%
% seg = localized_seg(I,init_mask,max_its,rad,alpha,method)
%
% Inputs: I 2D image
% init_mask Initialization (1 = foreground, 0 = bg)
% max_its Number of iterations to run segmentation for
% rad (optional) Localizat... |
github | sunf71/Matlab-master | ActiveContoursWihoutEdges.m | .m | Matlab-master/Activeontours/Activeontours/ActiveContoursWihoutEdges.m | 6,572 | utf_8 | 6078a3adf676355e2212727f2d1403b2 | function ActiveContoursWihoutEdges(hObject,mask)
%This function implements the paper "Active Contours without Edges" by
%Tony Chan and Luminita Vese. It also present results accourding to user
%wish (from ActiveCountorsGUI). Coding- Nikolay S. & Alex B.
%Input argument- a Handle to an object of ActiveCountorsGUI
han... |
github | sunf71/Matlab-master | LevelSetEvolutionWithoutReinitialization.m | .m | Matlab-master/Activeontours/Activeontours/LevelSetEvolutionWithoutReinitialization.m | 5,312 | utf_8 | 731bc4fe56d2e638811619af1d29ef02 | function LevelSetEvolutionWithoutReinitialization(Img,sigma,epsilon,mu,lambda,alf,c0,N,PlotRate,mask)
% This Matlab file demomstrates the level set method in Li et al's paper
% "Level Set Evolution Without Re-initialization: A New Variational Formulation"
% in Proceedings of CVPR'05, vol. 1, pp. 430-436.
% Author... |
github | sunf71/Matlab-master | colorspace.m | .m | Matlab-master/SaliencyCVPRCode/cvprcode/others/colorspace.m | 13,590 | utf_8 | b1a9eb973fa39950345a1df707b5d2c8 | function varargout = colorspace(Conversion,varargin)
%COLORSPACE Convert a color image between color representations.
% B = COLORSPACE(S,A) converts the color representation of image A
% where S is a string specifying the conversion. S tells the
% source and destination color spaces, S = 'dest<-src', or
% alt... |
github | sunf71/Matlab-master | Multiscale.m | .m | Matlab-master/fromXX/code/code/Multiscale.m | 1,260 | utf_8 | 6edf221868d0cf51ce972b3e4fa85b50 | % Release
function [ v0,m,vx,vy, Err ] = Multiscale(I1,I2,height,theta,DefRestrainTrans)
if height<0
error('Multiscale height error');
end
mh=[0 0;0 0];
v0h=[0 0];
pyd=2;
while height>=0
I1pyd=imresize(I1,size(I1)/pyd^height);
I2pyd=imresize(I2,size(I2)/pyd^height);
... |
github | sunf71/Matlab-master | EstimateAffine.m | .m | Matlab-master/fromXX/code/code/EstimateAffine.m | 4,252 | utf_8 | a0409b1abdd1b16e9c65efa0513a8d50 | % Release
function [ v0, m ,Err ] = EstimateAffine( I1 , I2, theta, DefRestrainTrans)
% tic
%ESTIMATEAFFINE Summary of this function goes here
% Detailed explanation goes here
DefZero=0.00001;
% if size(I1, 3)~=1
% I1 = rgb2gray(I1);
% end
% if size(I2, 3)~=1
% I2 = rgb2gray(I2)... |
github | sunf71/Matlab-master | appendimages.m | .m | Matlab-master/fromXX/code/code/Ransc/appendimages.m | 461 | utf_8 | a7ad42558236d4f7bd90dc6e72631d54 | % im = appendimages(image1, image2)
%
% Return a new image that appends the two images side-by-side.
function im = appendimages(image1, image2)
% Select the image with the fewest rows and fill in enough empty rows
% to make it the same height as the other image.
rows1 = size(image1,1);
rows2 = size(image2,1);
if (... |
github | sunf71/Matlab-master | siftMatch.m | .m | Matlab-master/fromXX/code/code/Ransc/siftMatch.m | 2,461 | utf_8 | ab927eeadbbc15f017e854f80f37c9a2 | % [matchLoc1 matchLoc2] = siftMatch(img1, img2)
%
% This function reads two images, finds their SIFT features, and
% displays lines connecting the matched keypoints. A match is accepted
% only if its distance is less than distRatio times the distance to the
% second closest match.
% It returns the matched points... |
github | sunf71/Matlab-master | sift.m | .m | Matlab-master/fromXX/code/code/Ransc/sift.m | 2,348 | utf_8 | 316e078c61101c8f101c2126be7eea89 | % [descriptors, locs] = sift(img)
%
% This function returns IMAGE's SIFT keypoints.
% Input parameters:
% img: the image.
%
% Returned:
% descriptors: a K-by-128 matrix, where each row gives an invariant
% descriptor for one of the K keypoints. The descriptor is a vector
% of 128 values nor... |
github | sunf71/Matlab-master | findHomography.m | .m | Matlab-master/fromXX/code/code/Ransc/findHomography.m | 655 | utf_8 | 4f49b0b41816af976c3b50f8f2cab114 | function [H corrPtIdx] = findHomography(pts1,pts2)
% [H corrPtIdx] = findHomography(pts1,pts2)
% Find the homography between two planes using a set of corresponding
% points. PTS1 = [x1,x2,...;y1,y2,...]. RANSAC method is used.
% corrPtIdx is the indices of inliers.
coef.minPtNum = 4;
coef.iterNum = 30;
coef.thDist = ... |
github | sunf71/Matlab-master | sift_mosaic.m | .m | Matlab-master/cvpr14_SPHP_code/sift_mosaic.m | 4,548 | utf_8 | ebf70dc08caf26ffc0207c4257087829 | function [H, im1_, mask1, im2_, mask2] = sift_mosaic(im1, im2)
% SIFT_MOSAIC Demonstrates matching two images using SIFT and RANSAC
%
% SIFT_MOSAIC demonstrates matching two images based on SIFT
% features and RANSAC and computing their mosaic.
%
% SIFT_MOSAIC by itself runs the algorithm on two standard test
% ... |
github | sunf71/Matlab-master | vl_compile.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/vl_compile.m | 5,060 | utf_8 | 978f5189bb9b2a16db3368891f79aaa6 | function vl_compile(compiler)
% VL_COMPILE Compile VLFeat MEX files
% VL_COMPILE() uses MEX() to compile VLFeat MEX files. This command
% works only under Windows and is used to re-build problematic
% binaries. The preferred method of compiling VLFeat on both UNIX
% and Windows is through the provided Makefile... |
github | sunf71/Matlab-master | vl_noprefix.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/vl_noprefix.m | 1,875 | utf_8 | 97d8755f0ba139ac1304bc423d3d86d3 | function vl_noprefix
% VL_NOPREFIX Create a prefix-less version of VLFeat commands
% VL_NOPREFIX() creats prefix-less stubs for VLFeat functions
% (e.g. SIFT for VL_SIFT). This function is seldom used as the stubs
% are included in the VLFeat binary distribution anyways. Moreover,
% on UNIX platforms, the stub... |
github | sunf71/Matlab-master | vl_override.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/misc/vl_override.m | 4,654 | utf_8 | e233d2ecaeb68f56034a976060c594c5 | function config = vl_override(config,update,varargin)
% VL_OVERRIDE Override structure subset
% CONFIG = VL_OVERRIDE(CONFIG, UPDATE) copies recursively the fileds
% of the structure UPDATE to the corresponding fields of the
% struture CONFIG.
%
% Usually CONFIG is interpreted as a list of paramters with their
... |
github | sunf71/Matlab-master | vl_quickvis.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/quickshift/vl_quickvis.m | 3,696 | utf_8 | 27f199dad4c5b9c192a5dd3abc59f9da | function [Iedge dists map gaps] = vl_quickvis(I, ratio, kernelsize, maxdist, maxcuts)
% VL_QUICKVIS Create an edge image from a Quickshift segmentation.
% IEDGE = VL_QUICKVIS(I, RATIO, KERNELSIZE, MAXDIST, MAXCUTS) creates an edge
% stability image from a Quickshift segmentation. RATIO controls the tradeoff
% bet... |
github | sunf71/Matlab-master | vl_demo_aib.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/demo/vl_demo_aib.m | 2,928 | utf_8 | 590c6db09451ea608d87bfd094662cac | function vl_demo_aib
% VL_DEMO_AIB Test Agglomerative Information Bottleneck (AIB)
D = 4 ;
K = 20 ;
randn('state',0) ;
rand('state',0) ;
X1 = randn(2,300) ; X1(1,:) = X1(1,:) + 2 ;
X2 = randn(2,300) ; X2(1,:) = X2(1,:) - 2 ;
X3 = randn(2,300) ; X3(2,:) = X3(2,:) + 2 ;
figure(1) ; clf ; hold on ;
vl_plotframe(X... |
github | sunf71/Matlab-master | vl_demo_alldist.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/demo/vl_demo_alldist.m | 5,460 | utf_8 | 6d008a64d93445b9d7199b55d58db7eb | function vl_demo_alldist
%
numRepetitions = 3 ;
numDimensions = 1000 ;
numSamplesRange = [300] ;
settingsRange = {{'alldist2', 'double', 'l2', }, ...
{'alldist', 'double', 'l2', 'nosimd'}, ...
{'alldist', 'double', 'l2' }, ...
{'alldist2', 's... |
github | sunf71/Matlab-master | vl_demo_kdtree_sift.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/demo/vl_demo_kdtree_sift.m | 6,822 | utf_8 | 191589ff45e0f5cdb79b1eed1b1bb906 | function vl_demo_kdtree_sift
% VL_DEMO_KDTREE_SIFT
% Demonstrates the use of a kd-tree forest to match SIFT
% features. If FLANN is present, this function runs a comparison
% against it.
% AUTORIGHS
rand('state',0) ;
randn('state',0);
do_median = 0 ;
do_mean = 1 ;
% try to setup flann
if ~exist('flann_search'... |
github | sunf71/Matlab-master | vl_tpsu.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/imop/vl_tpsu.m | 1,755 | utf_8 | 09f36e1a707c069b375eb2817d0e5f13 | function [U,dU,delta]=vl_tpsu(X,Y)
% VL_TPSU Compute the U matrix of a thin-plate spline transformation
% U=VL_TPSU(X,Y) returns the matrix
%
% [ U(|X(:,1) - Y(:,1)|) ... U(|X(:,1) - Y(:,N)|) ]
% [ ]
% [ U(|X(:,M) - Y(:,1)|) ... U(|X(:,M) - Y(:,N)|) ]
%
% where X... |
github | sunf71/Matlab-master | vl_xyz2lab.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/imop/vl_xyz2lab.m | 1,570 | utf_8 | 09f95a6f9ae19c22486ec1157357f0e3 | function J=vl_xyz2lab(I,il)
% VL_XYZ2LAB Convert XYZ color space to LAB
% J = VL_XYZ2LAB(I) converts the image from XYZ format to LAB format.
%
% VL_XYZ2LAB(I,IL) uses one of the illuminants A, B, C, E, D50, D55,
% D65, D75, D93. The default illuminatn is E.
%
% See also: VL_XYZ2LUV(), VL_HELP().
% Copyright ... |
github | sunf71/Matlab-master | vl_test_twister.m | .m | Matlab-master/cvpr14_SPHP_code/vlfeat-0.9.14/toolbox/xtest/vl_test_twister.m | 1,162 | utf_8 | 1ae9040a416db503ad73600f081d096b | function results = vl_test_twister(varargin)
% VL_TEST_TWISTER
vl_test_init ;
function test_illegal_args()
vl_assert_exception(@() vl_twister(-1), 'vl:invalidArgument') ;
vl_assert_exception(@() vl_twister(1, -1), 'vl:invalidArgument') ;
vl_assert_exception(@() vl_twister([1, -1]), 'vl:invalidArgument') ;
function te... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.