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 | aghagol/caffe-ssd-master | classification_demo.m | .m | caffe-ssd-master/matlab/demo/classification_demo.m | 5,412 | utf_8 | 8f46deabe6cde287c4759f3bc8b7f819 | function [scores, maxlabel] = classification_demo(im, use_gpu)
% [scores, maxlabel] = classification_demo(im, use_gpu)
%
% Image classification demo using BVLC CaffeNet.
%
% IMPORTANT: before you run this demo, you should download BVLC CaffeNet
% from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html)
%
% *****... |
github | GWLee0524/AMTL-master | learn_B_regression.m | .m | AMTL-master/learn_B_regression.m | 2,479 | utf_8 | b9961fadab09f242b82561681345cd57 | function B = learn_B_regression(W,delta,param)
maxiter = 500;
eval_interval = maxiter / 20;
T = size(W,2);
if (isfield(param,'B'))
B = param.B;
else
B = ones(T)/T;
end
G = ones(T);
normG = Inf;
iter = 0;
alpha = 0.000001; %0.000001
maxlsiter = 100;
tau = 0.5;
b = 0.01;
linesearch = 1;
for t=1:T
B(t,t) = 0;
nont{t... |
github | GWLee0524/AMTL-master | learnB.m | .m | AMTL-master/learnB.m | 2,347 | utf_8 | 258ec55cf192db59b416fed1d8309702 | function B = learnB(W, delta, param);
maxiter = 1000;
eval_interval = maxiter / 20;
T = size(W,2);
if (isfield(param,'B'))
B = param.B;
else
B = ones(T)/T;
end
G = ones(T);
normG = Inf;
iter = 0;
alpha = 0.0001;
maxlsiter = 100;
tau = 0.5;
b = 0.01;
linesearch = 1;
for t=1:T
B(t,t) = 0;
nont{t} = 1:T;
nont{t}(t) ... |
github | umdrobotics/Rendezvous-master | calibrate_bundle.m | .m | Rendezvous-master/apriltags2_ros/scripts/calibrate_bundle.m | 11,818 | utf_8 | 791607e0f8b94445d20b83ee32cd2d9a | % Copyright (c) 2017, California Institute of Technology.
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are met:
%
% 1. Redistributions of source code must retain the above copyright notice,
% this li... |
github | aydindemircioglu/LIBLINEAR.gpu-master | make.m | .m | LIBLINEAR.gpu-master/matlab/make.m | 1,417 | utf_8 | 8eb6837e5929416359702df135e7403d | % This make.m is for MATLAB and OCTAVE under Windows, Mac, and Unix
function make()
try
% This part is for OCTAVE
if(exist('OCTAVE_VERSION', 'builtin'))
mex libsvmread.c
mex libsvmwrite.c
setenv('CFLAGS', strcat(getenv('CFLAGS'), ' -fopenmp'))
setenv('CXXFLAGS', strcat(getenv('CXXFLAGS'), ' -fopenmp'))
mex ... |
github | keileg/fvbiot-master | mpsaTest.m | .m | fvbiot-master/tests/mpsaTest.m | 5,805 | utf_8 | 3b8a062c99e96d2f30eb833962b4d608 | function tests = mpsaTest
% Unit tests for MPSA
%
%{
Copyright 2015-2016, University of Bergen.
This file is part of FVBiot.
FVBiot is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License... |
github | keileg/fvbiot-master | mpfaTest.m | .m | fvbiot-master/tests/mpfaTest.m | 4,091 | utf_8 | bc2e22591f3116236be0a635118d6421 | function tests = mpfaTest
% Unit tests for MPFA.
%
%{
Copyright 2015-2016, University of Bergen.
This file is part of FVBiot.
FVBiot is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Licens... |
github | neurolabusc/Clinical-master | clinical_h2c.m | .m | Clinical-master/clinical_h2c.m | 2,016 | utf_8 | 57731e8ebdc0c241c7f7b7065846fcd5 | function clinical_h2c (fnms)
% This script converts a CT scan from Hounsfield Units to Cormack
% fnms: image name(s) [optional]
% Example
% clinical_h2c('C:\ct.nii');
fprintf('CT Hounsfield to Cormack version 4/4/2016\n');
if ~exist('fnms','var')
fnms = spm_select(inf,'image','Select CT[s] to normalize');
... |
github | neurolabusc/Clinical-master | tbx_cfg_clinical.m | .m | Clinical-master/tbx_cfg_clinical.m | 15,296 | utf_8 | 9ea71f1b53116e5b5440e8ea4be4f1c6 | function clinical = tbx_cfg_clinical
% Configuration file for toolbox 'Clinical'
% Chris Rorden
% $Id: tbx_cfg_clinical.m
if ~isdeployed,
addpath(fullfile(spm('Dir'),'toolbox','Clinical'));
end
% ---------------------------------------------------------------------
% bb Bounding box
% ------------------------------... |
github | neurolabusc/Clinical-master | clinical_h2c_old.m | .m | Clinical-master/clinical_h2c_old.m | 2,761 | utf_8 | c5b4cfee74118c8f17ebeb3f05875425 | function clinical_h2c (V);
% This script converts a CT scan from Hounsfield Units to Cormack
% V: image name(s) [optional]
% Example
% clinical_h2c('C:\ct.nii');
fprintf('CT normalization version 4/4/2016\n');
if nargin <1 %no files
V = spm_select(inf,'image','Select CT[s] to normalize');
end;
for i... |
github | neurolabusc/Clinical-master | clinical_c2h_old.m | .m | Clinical-master/clinical_c2h_old.m | 2,019 | utf_8 | e19a920700331df68699e7bc74cf4d3d | function clinical_c2h (V);
% This script converts a CT scan from Cormack to Hounsfield Units
% V: image name(s) [optional]
% Example
% clinical_c2h('C:\ct\script\Pat1nolesion.nii');
fprintf('CT Cormack to Hounsfield version 2/2/2012\n');
if nargin <1 %no files
V = spm_select(inf,'image','Select CT[s] to nor... |
github | neurolabusc/Clinical-master | clinical_mrnormseg.m | .m | Clinical-master/clinical_mrnormseg.m | 19,373 | utf_8 | fda504e687941af84a26b6637bff7e02 | function clinical_mrnormseg (T1,lesion,T2, UseSCTemplates, vox, bb, DeleteIntermediateImages, ssthresh, cleanup, isEnantiomorphic, AutoSetOrigin)
% This script normalizes MR scans using normalization-segmetnation
%Inputs
% T1 = Filename[s] for T1 scans
% lesion = OPTIONAL Filename[s] for lesion maps [drawn ... |
github | neurolabusc/Clinical-master | clinical_ctnorm.m | .m | Clinical-master/clinical_ctnorm.m | 9,015 | utf_8 | 3cb7f1aae5ec3278cf558bf8b21f905b | function clinical_ctnorm(V, lesion, vox, bb, DeleteIntermediateImages, UseTemplateMask, UseStrippedTemplate, AutoSetOrigin)
% This script attempts to normalize a CT scan
% V = filename[s] of CT scan[s] to normalize
% lesion = filename[s] of lesion maps. Optional: binary... |
github | neurolabusc/Clinical-master | clinical_c2h.m | .m | Clinical-master/clinical_c2h.m | 2,519 | utf_8 | 29509e31a5236c2335080a5db93557dc | function clinical_c2h (V)
% This script converts a CT scan from Cormack to Hounsfield Units
% V: image name(s) [optional]
% Example
% clinical_c2h('C:\ct\script\Pat1nolesion.nii');
fprintf('CT Cormack to Hounsfield version 4/4/2016\n');
if nargin <1 %no files
V = spm_select(inf,'image','Select CT[s] to norm... |
github | neurolabusc/Clinical-master | clinical_mrnormseg12.m | .m | Clinical-master/clinical_mrnormseg12.m | 20,699 | utf_8 | cfe8526928e343dc16153dbf4e355c3d | function clinical_mrnormseg12(T1,lesion,T2, UseXTemplate, vox, bb, DeleteIntermediateImages, ssthresh, autoOrigin)
%Known as either clinical_mrnormseg12 or nii_enat_norm depending on if it
%is part of the clinical toolbox
% see Nachev et al. (2008) http://www.ncbi.nlm.nih.gov/pubmed/18023365
% T1: filename of T1 image... |
github | neurolabusc/Clinical-master | clinical_setorigin.m | .m | Clinical-master/clinical_setorigin.m | 5,123 | utf_8 | 8af9a012335cf5865248e789ddd4e729 | function coivox = clinical_setorigin(vols, modality)
%Sets position and orientation of input image(s) to match SPM's templates
% vols: filenames for all images from a session.
% -if multiple images, the first image is used to determine transforms
% -if any images are 4D, only supply the file name
%Examples
... |
github | neurolabusc/Clinical-master | clinical_fix_ge_ct.m | .m | Clinical-master/clinical_fix_ge_ct.m | 991 | utf_8 | 934ded9b73952366587245d3d3aefa0d | function clinical_fix_ge_ct (fnms)
% Fixes GE CT images with intensities of -3024 for regions outside imaging radius
% These artificial rims disrupt normalization and coregistration
% fnms: image name(s) [optional]
% Example
% ge_fix_ct('C:\ct.nii');
if ~exist('fnms','var')
fnms = spm_select(inf,'image','Select CT... |
github | urbste/MLPnP_matlab_toolbox-master | MLPnP.m | .m | MLPnP_matlab_toolbox-master/MLPnP/MLPnP.m | 7,826 | utf_8 | 15b113f908d73d9cc201205d217d0c6d | % Steffen Urban email: urbste@googlemail.com
% Copyright (C) 2016 Steffen Urban
%
% 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
% ... |
github | urbste/MLPnP_matlab_toolbox-master | optim_MLPnP_GN.m | .m | MLPnP_matlab_toolbox-master/MLPnP/optim_MLPnP_GN.m | 2,228 | utf_8 | af445840b833a0de35d6d61ca9922e25 | % Steffen Urban email: urbste@googlemail.com
% Copyright (C) 2016 Steffen Urban
%
% 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
% ... |
github | urbste/MLPnP_matlab_toolbox-master | jacobians_Rodrigues.m | .m | MLPnP_matlab_toolbox-master/MLPnP/jacobians_Rodrigues.m | 13,690 | utf_8 | 4493413b9b6e5b3fa9e0813528b5875d | % Steffen Urban email: urbste@googlemail.com
% Copyright (C) 2016 Steffen Urban
%
% 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
% ... |
github | urbste/MLPnP_matlab_toolbox-master | residualsAndJacobian.m | .m | MLPnP_matlab_toolbox-master/MLPnP/residualsAndJacobian.m | 1,387 | utf_8 | 89d0256a7c3f30ed205d43dd9c2208c6 | % Steffen Urban email: urbste@googlemail.com
% Copyright (C) 2016 Steffen Urban
%
% 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
% ... |
github | urbste/MLPnP_matlab_toolbox-master | Rodrigues2.m | .m | MLPnP_matlab_toolbox-master/MLPnP/Rodrigues2.m | 1,658 | utf_8 | 392768dcf4fc591828ec95d9e0cb3814 | % Steffen Urban email: urbste@googlemail.com
% Copyright (C) 2016 Steffen Urban
%
% 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
% ... |
github | urbste/MLPnP_matlab_toolbox-master | efficient_pnp_gauss.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/epnp/efficient_pnp_gauss.m | 7,985 | utf_8 | 361396729ae9c9291df547c60c062e74 | function [R,T,Xc,best_solution,opt]=efficient_pnp_gauss(x3d_h,x2d_h,A)
% EFFICIENT_PNP_GAUSS Main Function to solve the PnP problem
% as described in:
%
% Francesc Moreno-Noguer, Vincent Lepetit, Pascal Fua.
% Accurate Non-Iterative O(n) Solution to the PnP Problem.
% In Proceedings of ICCV, ... |
github | urbste/MLPnP_matlab_toolbox-master | efficient_pnp.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/epnp/efficient_pnp.m | 6,550 | utf_8 | b1b02989deb052da7480f60d06be7010 | function [R,T,Xc,best_solution]=efficient_pnp(x3d_h,x2d_h,A)
% EFFICIENT_PNP Main Function to solve the PnP problem
% as described in:
%
% Francesc Moreno-Noguer, Vincent Lepetit, Pascal Fua.
% Accurate Non-Iterative O(n) Solution to the PnP Problem.
% In Proceedings of ICCV, 2007.
%
% ... |
github | urbste/MLPnP_matlab_toolbox-master | efficient_pnp_planar.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/epnp/efficient_pnp_planar.m | 16,335 | utf_8 | be35d59e4da0eadf5e108ffbc469f801 | function [R,t,Xc,best_solution]=efficient_pnp_planar(x3d_h,x2d_h,A)
% EFFICIENT_PNP Main Function to solve the PnP problem
% as described in:
%
% Francesc Moreno-Noguer, Vincent Lepetit, Pascal Fua.
% Accurate Non-Iterative O(n) Solution to the PnP Problem.
% In Proceedings of ICCV, 2007.
%
... |
github | urbste/MLPnP_matlab_toolbox-master | DLT.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/func/DLT.m | 869 | utf_8 | e7e82eec467a5e8a90e71822b1b2b150 | function [R,t]= DLT(XXw,xx)
n= size(xx,2);
D= zeros(n*2,12);
for i= 1:n
xi= XXw(1,i); yi= XXw(2,i); zi= XXw(3,i);
ui= xx(1,i); vi= xx(2,i);
D_= [xi yi zi 0 0 0 -ui*xi -ui*yi -ui*zi 1 0 -ui;
0 0 0 xi yi zi -vi*xi -vi*yi -vi*zi 0 1 -vi];
D(i*2-1:i*2,:)= D_;
end
DD= D.'*D;
[V,D]= eig(DD);
v= V(:... |
github | urbste/MLPnP_matlab_toolbox-master | cal_pose_err.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/func/cal_pose_err.m | 1,343 | utf_8 | f555995b9635b9706e34c45d50f70da2 | function [y y1]= cal_pose_err(T1, T2)
R1= T1(1:3,1:3);
R2= T2(1:3,1:3);
X1= R1(:,1); X2= R2(:,1);
Y1= R1(:,2); Y2= R2(:,2);
Z1= R1(:,3); Z2= R2(:,3);
exyz= [X1'*X2 Y1'*Y2 Z1'*Z2];
exyz(exyz>1)= 1;
exyz(exyz<-1)= -1;
y(1)= max(abs(acos(exyz)))*180/pi;
q1 = Matrix2Quaternion(R1);
q2 = Matrix2Quaternion(R2);
y1(1) ... |
github | urbste/MLPnP_matlab_toolbox-master | RPnP.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/func/RPnP.m | 6,404 | utf_8 | 261f910a5e9c5c9c5f727ff7c32a41d8 | function [R t]= RPnP(XX,xx)
R= []; t= [];
n= length(xx);
XXw= XX;
xxv= [xx; ones(1,n)];
for i=1:n
xxv(:,i)= xxv(:,i)/norm(xxv(:,i));
end
% selecting an edge $P_{i1}P_{i2}$ by n random sampling
i1= 1;
i2= 2;
lmin= xxv(1,i1)*xxv(1,i2)+xxv(2,i1)*xxv(2,i2)+xxv(3,i1)*xxv(3,i2);
rij= ceil(rand(n,2)*n);
for ii= 1:n
i... |
github | urbste/MLPnP_matlab_toolbox-master | RPnP2.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/func/RPnP2.m | 6,250 | utf_8 | aea150b9d6f873d63b1824dcddcc73a6 | function [R t]= RPnP2(XX,xx)
R= []; t= [];
n= length(xx);
XXw= XX;
xxv= [xx; ones(1,n)];
for i=1:n
xxv(:,i)= xxv(:,i)/norm(xxv(:,i));
end
% selecting an edge $P_{i1}P_{i2}$ whose projection length
% is the longest in image plane.
lmin= inf;
i1= 0; i2= 0;
for i= 1:n-1
for j= i+1:n
l= xxv(1,i)*xxv(1,j)... |
github | urbste/MLPnP_matlab_toolbox-master | RPnP1.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/func/RPnP1.m | 6,202 | utf_8 | 188e6135a0b28b2e5758ad1ff4495607 | function [R t]= RPnP1(XX,xx)
R= []; t= [];
n= length(xx);
XXw= XX;
xxv= [xx; ones(1,n)];
for i=1:n
xxv(:,i)= xxv(:,i)/norm(xxv(:,i));
end
% selecting an edge $P_{i1}P_{i2}$ randomly
i1= 1;
i2= 2;
lmin= xxv(1,i1)*xxv(1,i2)+xxv(2,i1)*xxv(2,i2)+xxv(3,i1)*xxv(3,i2);
i= ceil(rand*n);
j= ceil(rand*n);
if i ~= j
l= x... |
github | urbste/MLPnP_matlab_toolbox-master | objpose.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/lhm/objpose.m | 6,619 | utf_8 | b9c153a88d0dfe0fc1eb586122344ed3 | function [R, t, it, obj_err, img_err] = objpose(P, Qp, options)
% OBJPOSE - Object pose estimation
% OBJPOSE(P, Qp) compute the pose (exterior orientation)
% between the 3D point set P represented in object space
% and its projection Qp represented in normalized image
% plane. It implements the algorithm desc... |
github | urbste/MLPnP_matlab_toolbox-master | get2ndPose_Exact.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/sp/get2ndPose_Exact.m | 1,662 | utf_8 | 279c3611d83fb0b5ae3064d2b6479259 | function sol=get2ndPose_Exact(v,P,R,t,DB)
%function bet=get2ndPose_Exact(v,P,R,t)
%
%returns the second pose if a first pose was calulated.
%
% Author: Gerald Schweighofer gerald.schweighofer@tugraz.at
% Disclaimer: This code comes with no guarantee at all and its author
% is not liable for any damage that its utili... |
github | urbste/MLPnP_matlab_toolbox-master | rpyMat.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/sp/rpyMat.m | 685 | utf_8 | b3324a80385c9ddc0b997a5631ca134d |
% Author: Rodrigo Carceroni
% Disclaimer: This code comes with no guarantee at all and its author
% is not liable for any damage that its utilization may cause.
function R = rpyMat (angs)
% Return the 3x3 rotation matrix described by a set of Roll, Pitch and Yaw
% angles.
cosA = cos (angs(3));
sinA = sin (angs(3... |
github | urbste/MLPnP_matlab_toolbox-master | rpp.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/sp/rpp.m | 2,232 | utf_8 | fc5efdb13e8c0ba4978d8a537f6f2113 |
function [pose,po2]=rpp(model,iprts,opt)
%Pose=rpp(model,points)
%
% Robust Pose from Planar Tragets
% Estimates a Pose for a given Planar Target / image Points combination
% based on this 1st Solution a second solution is found.
% From both Solutions the "better one" (based on the error) is choosen
% as the correct ... |
github | urbste/MLPnP_matlab_toolbox-master | rpyAng.m | .m | MLPnP_matlab_toolbox-master/rpnp/code3/sp/rpyAng.m | 1,184 | utf_8 | 1ae147340c1474c625e3a56cb5ef871c |
% Author: Rodrigo Carceroni
% Disclaimer: This code comes with no guarantee at all and its author
% is not liable for any damage that its utilization may cause.
function angs = rpyAng (R)
% Returns a set of Roll, Pitch and Yaw angles that describe a certain 3x3
% transformation matrix. The magnitude of the Pitch ... |
github | urbste/MLPnP_matlab_toolbox-master | solver_pfold.m | .m | MLPnP_matlab_toolbox-master/OPnP/solver_pfold.m | 8,452 | utf_8 | 7d7065489a779da0b7f8153a045b4a11 | function [sols,stats] = solver_pfold(C0,settings)
if isfield(settings,'debug') == 0;
settings.debug = 0; % compute statistics conditioning etc. much slower
end
if isfield(settings,'nrun') == 0
settings.nrun = 0; % # of run to find best sub-determinants in p-fold integer solver
end
if isfield(settings,'old_... |
github | urbste/MLPnP_matlab_toolbox-master | Resultant_Solver_DLS.m | .m | MLPnP_matlab_toolbox-master/OPnP/Resultant_Solver_DLS.m | 36,582 | utf_8 | 31825a36e21ef1797fb94d2c9968c250 | function [y z t] = Resultant_Solver_DLS(f1coeff,f2coeff,f3coeff)
u = round(randn(4,1) * 100);
M2 = cayley_LS_M(f1coeff, f2coeff, f3coeff,u);
% construct the multiplication matrix via schur compliment of the Macaulay
% matrix
Mtilde = M2(1:27,1:27) - M2(1:27,28:120)/M2(28:120,28:120)*M2(28:120,1:27);
[V,~] = eig(Mtild... |
github | urbste/MLPnP_matlab_toolbox-master | PnP_Reproj_NLS_Matlab.m | .m | MLPnP_matlab_toolbox-master/OPnP/PnP_Reproj_NLS_Matlab.m | 1,767 | utf_8 | 10261b578cc0cc01f64c72439bf7f95f | function [Rr tr] = PnP_Reproj_NLS_Matlab(U,u,R0,t0)
%to refine the column-triplet by using nonlinear least square
%it's much better than the fminunc used by CVPR12.
%there are three fractional formulations, anyone is equivalently good.
%there are two constrained formulations, yet neither is good.
%the reason is that:... |
github | urbste/MLPnP_matlab_toolbox-master | Generate_Random_Data_Full.m | .m | MLPnP_matlab_toolbox-master/OPnP/Generate_Random_Data_Full.m | 21,006 | utf_8 | 073e56c803c19a87ea47860f35a982fe | function [var e1 e2 e3 e4 c1 c2 c3 Q q] = Generate_Random_Data_Full(rotation_type,point_config)
%Output:
%var = [a b c d]; ground_truth
%e1,e2,e3,e4: the coefficients of polynomials of our formulation
%c1,c2,c3: the coefficients of polynomials of DLS
%Q,q: the objective function used in polishing
%generate ground_trut... |
github | urbste/MLPnP_matlab_toolbox-master | matrix2quaternion.m | .m | MLPnP_matlab_toolbox-master/OPnP/matrix2quaternion.m | 2,010 | utf_8 | ad7a1983aceaa9953be167eddabb22ae | % MATRIX2QUATERNION - Homogeneous matrix to quaternion
%
% Converts 4x4 homogeneous rotation matrix to quaternion
%
% Usage: Q = matrix2quaternion(T)
%
% Argument: T - 4x4 Homogeneous transformation matrix
% Returns: Q - a quaternion in the form [w, xi, yj, zk]
%
% See Also QUATERNION2MATRIX
% Copyright (c) 2008 ... |
github | urbste/MLPnP_matlab_toolbox-master | GB_Solver_3Order_4Variable_Symmetry.m | .m | MLPnP_matlab_toolbox-master/OPnP/GB_Solver_3Order_4Variable_Symmetry.m | 884 | utf_8 | 81ed9a17a4479db7de5169dccf46c62f | % Generated using GBSolver generator Copyright Martin Bujnak,
% Zuzana Kukelova, Tomas Pajdla CTU Prague 2008.
%
% Please refer to the following paper, when using this code :
% Kukelova Z., Bujnak M., Pajdla T., Automatic Generator of Minimal Problem Solvers,
% ECCV 2008, Marseille, France, October 12-18, 2008... |
github | urbste/MLPnP_matlab_toolbox-master | GB_Solver_3Order_4Variable_b_Division.m | .m | MLPnP_matlab_toolbox-master/OPnP/GB_Solver_3Order_4Variable_b_Division.m | 118,829 | utf_8 | b99f7fa1930baa2a68e6e2c2904ac5bd | % Generated using GBSolver generator Copyright Martin Bujnak,
% Zuzana Kukelova, Tomas Pajdla CTU Prague 2008.
%
% Please refer to the following paper, when using this code :
% Kukelova Z., Bujnak M., Pajdla T., Automatic Generator of Minimal Problem Solvers,
% ECCV 2008, Marseille, France, October 12-18, 2008... |
github | urbste/MLPnP_matlab_toolbox-master | quaternion2matrix.m | .m | MLPnP_matlab_toolbox-master/OPnP/quaternion2matrix.m | 1,431 | utf_8 | 49448898df2a32720040da4eb82aced9 | % QUATERNION2MATRIX - Quaternion to a 4x4 homogeneous transformation matrix
%
% Usage: T = quaternion2matrix(Q)
%
% Argument: Q - a quaternion in the form [w xi yj zk]
% Returns: T - 4x4 Homogeneous rotation matrix
%
% See also MATRIX2QUATERNION, NEWQUATERNION, QUATERNIONROTATE
% Copyright (c) 2008 Peter Kovesi
... |
github | urbste/MLPnP_matlab_toolbox-master | CEPPnP.m | .m | MLPnP_matlab_toolbox-master/CEPPnP/CEPPnP.m | 1,516 | utf_8 | 862e2e8d00285510a4f31b17bc47c70c | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the CEPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Leveraging Feature Uncertainty in the PnP Problem.
% In Proceedings of BMVC, 2014.
%
% Copyright (C) <2014... |
github | urbste/MLPnP_matlab_toolbox-master | CEPPnP_planar.m | .m | MLPnP_matlab_toolbox-master/CEPPnP/CEPPnP_planar.m | 2,096 | utf_8 | e3a6a69fbe1af233d45a921e01811d70 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the CEPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Leveraging Feature Uncertainty in the PnP Problem.
% In Proceedings of BMVC, 2014.
%
% Copyright (C) <2014... |
github | urbste/MLPnP_matlab_toolbox-master | PrepareData2.m | .m | MLPnP_matlab_toolbox-master/CEPPnP/PrepareData2.m | 1,772 | utf_8 | 2d6d732658041c8b2179aa3803dda9c7 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the CEPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Leveraging Feature Uncertainty in the PnP Problem.
% In Proceedings of BMVC, 2014.
%
% Copyright (C) <2014... |
github | urbste/MLPnP_matlab_toolbox-master | FNSani.m | .m | MLPnP_matlab_toolbox-master/CEPPnP/FNSani.m | 3,016 | utf_8 | 80213643eb98be64bbcdd0f7c5415f7e | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the CEPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Leveraging Feature Uncertainty in the PnP Problem.
% In Proceedings of BMVC, 2014.
%
% Copyright (C) <2014... |
github | urbste/MLPnP_matlab_toolbox-master | robust_dls_pnp.m | .m | MLPnP_matlab_toolbox-master/dls_pnp_matlab/robust_dls_pnp.m | 1,864 | utf_8 | 4a3e052a96136d67b99b5dcbb76cf155 | function [C_est, t_est, cost, flag] = robust_dls_pnp(p, z)
C_temp1 = zeros(3,3,0); t_temp1 = zeros(3,0);
C_temp2 = zeros(3,3,0); t_temp2 = zeros(3,0);
R = cat(3, rotx(pi/2), roty(pi/2), rotz(pi/2));
t = mean(p,2);
cost = inf;
for i = 1:3
% Make a random rotation
pp = R(:,:,i) * (p - repmat(t, 1, size(p,2)))... |
github | urbste/MLPnP_matlab_toolbox-master | rws.m | .m | MLPnP_matlab_toolbox-master/dls_pnp_matlab/rws.m | 1,946 | utf_8 | 24dabc05143cbf2c126ab352eb83b32f | function [C, t, p, z] = rws(N, sigma)
% this function generates a random camera pose, along with N random points,
% and also the perspective projections of those points.
% Generate a random global-to-camera rotation. This is the orientation of
% the global frame expressed in the camera frame of refence.
angle = 15;
... |
github | urbste/MLPnP_matlab_toolbox-master | dls_pnp_all.m | .m | MLPnP_matlab_toolbox-master/dls_pnp_matlab/dls_pnp_all.m | 52,349 | utf_8 | cfb64972d23830236aafa3ca0ea6ca31 | function [C_est, t_est, cost, flag] = dls_pnp(p, z)
% DLS-PnP:
%
% This function performs the DLS-PnP method introduced at ICCV 2011
% Joel A. Hesch and Stergios I. Roumeliotis. "A direct least-squares (dls)
% solution for PnP". In Proc. of the Int. Conf. on Computer Vision,
% Barcelona, Spain, November 6-13, 2011.
... |
github | urbste/MLPnP_matlab_toolbox-master | dls_pnp.m | .m | MLPnP_matlab_toolbox-master/dls_pnp_matlab/dls_pnp.m | 52,158 | utf_8 | d6e96e3b74cc29c6f5ddd01bbdb2e1eb | function [C_est, t_est, cost, flag] = dls_pnp(p, z)
% DLS-PnP:
%
% This function performs the DLS-PnP method introduced at ICCV 2011
% Joel A. Hesch and Stergios I. Roumeliotis. "A direct least-squares (dls)
% solution for PnP". In Proc. of the Int. Conf. on Computer Vision,
% Barcelona, Spain, November 6-13, 2011.
... |
github | urbste/MLPnP_matlab_toolbox-master | compute_error.m | .m | MLPnP_matlab_toolbox-master/dls_pnp_matlab/compute_error.m | 1,320 | utf_8 | 9661477a57e8c1cd36f99c33566fb9ba | function [da, dt] = compute_error(C, t, Cm, tm)
% compute the error quaternion btw. the true and the estimated solutions
% (using JPL definition of quaternions)
q_del = rot2quat(C' * Cm);
% compute the tilt angle error
da = norm(q_del(1:3) * 2);
% compute the position error
dt = norm(t - tm);
end
function q = rot2qu... |
github | urbste/MLPnP_matlab_toolbox-master | PrepareData.m | .m | MLPnP_matlab_toolbox-master/REPPnP/PrepareData.m | 1,668 | utf_8 | 53e2d1b61c8fcd957bee7f6a86b0d173 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the REPPnP and EPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Very Fast Solution to the PnP Problem with Algebraic Outlier Rejection.
% In Proceedings of CVPR... |
github | urbste/MLPnP_matlab_toolbox-master | my_robust_kernel_noise.m | .m | MLPnP_matlab_toolbox-master/REPPnP/my_robust_kernel_noise.m | 2,512 | utf_8 | cb9cfcebdbcdf7e6a3cb516c61611e6c | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the REPPnP and EPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Very Fast Solution to the PnP Problem with Algebraic Outlier Rejection.
% In Proceedings of CVPR... |
github | urbste/MLPnP_matlab_toolbox-master | KernelPnP.m | .m | MLPnP_matlab_toolbox-master/REPPnP/KernelPnP.m | 2,495 | utf_8 | c1f05f3483cc93ccf3a9cac0ad06a5a2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the REPPnP and EPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Very Fast Solution to the PnP Problem with Algebraic Outlier Rejection.
% In Proceedings of CVPR... |
github | urbste/MLPnP_matlab_toolbox-master | REPPnP_planar.m | .m | MLPnP_matlab_toolbox-master/REPPnP/REPPnP_planar.m | 2,128 | utf_8 | 897ad9af142a38fc79938ee73e1c9f2e | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the REPPnP and EPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Very Fast Solution to the PnP Problem with Algebraic Outlier Rejection.
% In Proceedings of CVPR... |
github | urbste/MLPnP_matlab_toolbox-master | EPPnP_planar.m | .m | MLPnP_matlab_toolbox-master/REPPnP/EPPnP_planar.m | 1,804 | utf_8 | 64e3b8d097cf9d62908123a4290bfa04 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the REPPnP and EPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Very Fast Solution to the PnP Problem with Algebraic Outlier Rejection.
% In Proceedings of CVPR... |
github | urbste/MLPnP_matlab_toolbox-master | EPPnP.m | .m | MLPnP_matlab_toolbox-master/REPPnP/EPPnP.m | 1,558 | utf_8 | 699aba608ee9de3e3b6c3f69f12a9d54 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the REPPnP and EPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Very Fast Solution to the PnP Problem with Algebraic Outlier Rejection.
% In Proceedings of CVPR... |
github | urbste/MLPnP_matlab_toolbox-master | myProcrustes.m | .m | MLPnP_matlab_toolbox-master/REPPnP/myProcrustes.m | 1,668 | utf_8 | 1dc7421009a6a4d8985f27b648124d5a | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the REPPnP and EPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Very Fast Solution to the PnP Problem with Algebraic Outlier Rejection.
% In Proceedings of CVPR... |
github | urbste/MLPnP_matlab_toolbox-master | REPPnP.m | .m | MLPnP_matlab_toolbox-master/REPPnP/REPPnP.m | 1,876 | utf_8 | c1d6bf7f795e4bb3c975e11c43253a3d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This toolbox illustrates how to use the REPPnP and EPPnP
% algorithms described in:
%
% Luis Ferraz, Xavier Binefa, Francesc Moreno-Noguer.
% Very Fast Solution to the PnP Problem with Algebraic Outlier Rejection.
% In Proceedings of CVPR... |
github | urbste/MLPnP_matlab_toolbox-master | gOp.m | .m | MLPnP_matlab_toolbox-master/gOp/gOp.m | 31,248 | utf_8 | 675abc190efa65ccb36a5cb208a999c5 | function [R,t,E,info] = gOp(v,X_,opt)
%
% [R,t] = gOp(v,X)
%
% returns the global optimum pose
% such that
% sum_i norm( Q*(R*X+t+c) ) is minimal
%
% Q = eye(3)-v*v'/norm(v)^2
%
%
% opt.methode ='3D' -> we are 100 % sure that is is a 3d model
% opt.methode ='choose best' -> we are not sure, but take the best resul... |
github | urbste/MLPnP_matlab_toolbox-master | genrMr_gcm.m | .m | MLPnP_matlab_toolbox-master/gOp/genrMr_gcm.m | 3,793 | utf_8 | b933dbb38c43ba2a895c609c2a97d72f | function [M,Mc,Mcc] = genrMr_gcm(X,v,c,R)
%
%
% returns the parametrisation of the problem
% as: r'*M*r + Mc*r + Mcc
%
if nargin == 2,
c=[];
end
if prod(size(c)) == 0,
c = zeros(3,size(v,2));
end
if sum(size(v) ~= size(c) | size(X) ~= size(v)),
disp('Sizes must be equal!');
X
v
c
return;
end
i... |
github | urbste/MLPnP_matlab_toolbox-master | rotate.m | .m | MLPnP_matlab_toolbox-master/gOp/util/rotate.m | 269 | utf_8 | a646a7d125703ff9d5d26e5aa6fb449a |
function R=rotate(a,b,c)
%
%function R=rotate(a,b,z)
%
%returns rotationsmatrix
%
Rb = [ cos(b) 0 -sin(b); 0 1 0 ; sin(b) 0 cos(b) ];
Rc = [ cos(c) -sin(c) 0 ; sin(c) cos(c) 0; 0 0 1 ];
Ra = [ 1 0 0; 0 cos(a) -sin(a);0 sin(a) cos(a)];
R = Ra*Rb*Rc;
|
github | urbste/MLPnP_matlab_toolbox-master | rpyMat.m | .m | MLPnP_matlab_toolbox-master/gOp/util/rpyMat.m | 1,447 | utf_8 | 70bd943cf357e2649aabcf288cb906e7 |
% Author: Rodrigo Carceroni
% Disclaimer: This code comes with no guarantee at all and its author
% is not liable for any damage that its utilization may cause.
function [R,dR] = rpyMat (angs)
% Return the 3x3 rotation matrix described by a set of Roll, Pitch and Yaw
% angles.
cosA = cos (angs(3));
sinA = sin (a... |
github | urbste/MLPnP_matlab_toolbox-master | plot_stat.m | .m | MLPnP_matlab_toolbox-master/gOp/util/plot_stat.m | 2,513 | utf_8 | bb032648b0de31f298c556a5f95098ed | function plot_stat(y,data,opt)
%
%
% plots statistical stuff !
%
% opt.mean : draws the mean
% opt.std : draws mean+std , mean-std
% opt.median : draws the median
% opt.quart : draws 1/4 and 3/4 quartile
% opt.minmax : draws min & max
%
% opt.mean_,opt.median_,opt.number_ :
% : conect the types with a... |
github | urbste/MLPnP_matlab_toolbox-master | getRotation.m | .m | MLPnP_matlab_toolbox-master/gOp/util/getRotation.m | 1,525 | utf_8 | fcc521bd9aacdedcc9bbbc71ee96a72e | function R=getRotation(u,v)
%function R=getRotation(u,v)
%
% Returns the rotation Matrix M
%
% so that u = M*v;
%
%Author: Gerald Schweighofer
u = u/norm(u);
v = v/norm(v);
[ Rv,p_v,th_v ] = getR(v);
[ Ru,p_u,th_u ] = getR(u);
R = inv(Ru)*Rv;
if sum(abs(R*v' - u')) > 1e-6,
disp('Error in getRotation ');
end
... |
github | urbste/MLPnP_matlab_toolbox-master | fitplane.m | .m | MLPnP_matlab_toolbox-master/gOp/util/fitplane.m | 1,259 | utf_8 | 505fe35ceea6b30a97d8ca6fda5797d7 | % FITPLANE - solves coefficients of plane fitted to 3 or more points
%
% Usage: B = fitplane(XYZ)
%
% Where: XYZ - 3xNpts array of xyz coordinates to fit plane to.
% If Npts is greater than 3 a least squares solution
% is generated.
%
% Returns: B - 4x1 array of plane coefficient... |
github | urbste/MLPnP_matlab_toolbox-master | addError.m | .m | MLPnP_matlab_toolbox-master/gOp/util/addError.m | 443 | utf_8 | 0a0c27e672aa1e82706f2b59a85c5095 |
function Inew=addError(Iorig,error)
%
% error -> sigma von Guass-Verteilung
% Pixel Error
%
E=normrnd(0,error,length(Iorig(:,1)),1);
%K=[];
for i=1:length(Iorig(:,1)),
point = Iorig(i,1:2);
winkel = rand*180;
wrad = winkel*pi/180;
dx = sin(wrad)*E(i);
dy = cos(wrad)*E(i);
% K = [K ; [dx dy]];
... |
github | urbste/MLPnP_matlab_toolbox-master | rotlorentz.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/rotlorentz.m | 1,689 | utf_8 | a62c3fb740f53474f5ddec5c0b427e4a | % c = rotlorentz(c,K)
% Rotates vectors from Qcone to Rcone or from Rcone into Qcone.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function c = rotlorentz(c,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) 2005 McMaster University, Hamilton, CANA... |
github | urbste/MLPnP_matlab_toolbox-master | PopK.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/PopK.m | 2,004 | utf_8 | d538cca0b063c319f06b081fb630b693 | % [y, ddotx, Dx, xTy] = PopK(d,x,K,lpq)
% POPK Implements the quadratic operator for symmetric cones K.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [y, ddotx, Dx, xTy] = PopK(d,x,K,lpq)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Rom... |
github | urbste/MLPnP_matlab_toolbox-master | updtransfo.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/updtransfo.m | 4,623 | utf_8 | 84c1ed1fe1ae2fc009c6c9eacdff15b3 | % [d,vfrm] = updtransfo(x,z,w, dIN,K)
% UPDTRANSFO Updated the Nesterov-Todd transformation using a
% numerically stable method.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [d,vfrm] = updtransfo(x,z,w, dIN,K)
%
% This file is part of SeDuM... |
github | urbste/MLPnP_matlab_toolbox-master | symbcholden.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/symbcholden.m | 2,500 | utf_8 | cc5a9a455c0e83c00738b400bc5da871 | % Lden = symbcholden(L,dense,DAt)
% SYMBCHOLDEN Creates Lden.{LAD, perm,dz, sign, first}
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, dpr1fact
function Lden = symbcholden(L,dense,DAt)
%
% This file is part of SeDuMi 1.1 by Im... |
github | urbste/MLPnP_matlab_toolbox-master | psdinvscale.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/psdinvscale.m | 2,358 | utf_8 | f5c2690e44cb5af9d89862992d41f6fe | % y = psdinvscale(ud,x,K ,transp)
% PSDINVSCALE Computes length lenud (=sum(K.s.^2)) vector y.
% Computes y = D(d^{-1}) x with d in K.
% Y = Ud' \ X / Ud
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also scaleK, factorK.
function y = psdinvscale(ud,x,K)
... |
github | urbste/MLPnP_matlab_toolbox-master | eyeK.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/eyeK.m | 1,792 | utf_8 | dcbd5215709d972b04aaf25ed58bd8b0 | % eyeK Identity w.r.t. symmetric cone.
% x = eyeK(K) produces the identity solution w.r.t. the symmetric cone,
% that is described by the structure K. This is the vector for which
% eigK(x) is the all-1 vector.
%
% See also eigK.
function x = eyeK(K)
% This file is part of SeDuMi 1.1 by Imre Polik and Ole... |
github | urbste/MLPnP_matlab_toolbox-master | sparfwslv.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/sparfwslv.m | 2,219 | utf_8 | 06e89169ef2854a6853160556843a207 | % SPARFWSLV Solves block sparse upper-triangular system.
% y = sparfwslv(L,b) yields the same result as
% y = L.L\b(L.perm,:)
% However, SPARFWSLV is faster than the built-in operator "\",
% because it uses dense linear algebra and loop-unrolling on
% supernodes.
%
% For sparse b, one should... |
github | urbste/MLPnP_matlab_toolbox-master | fwdpr1.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/fwdpr1.m | 1,836 | utf_8 | 3d80b72e6bb438da84de6717e27bf024 | % y = fwdpr1(Lden, b)
% FWDPR1 Solves "PROD_k L(pk,betak) * y = b", where
% where L(p,beta) = eye(n) + tril(p*beta',-1).
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi, dpr1fact, bwdpr1
function y = fwdpr1(Lden, b)
%
% This file i... |
github | urbste/MLPnP_matlab_toolbox-master | sortnnz.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/sortnnz.m | 1,958 | utf_8 | 5480524af510b77a03081bd71bf14627 | % perm = sortnnz(At,Ajc1,Ajc2)
% SORTNNZ Sorts columns in At
% in increasing order of nnzs; only the nnzs between Ajc1 and Ajc2
% are considered for each column. If Ajc1 or Ajc2 is empty, we use
% the start or end of the columns in At.
%
% ******************** INTE... |
github | urbste/MLPnP_matlab_toolbox-master | loopPcg.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/loopPcg.m | 6,098 | utf_8 | 9ace09d37bb5be74ffa5c03914a6ff6d | % [y,k, DAy] = loopPcg(L,Lden,At,dense,d, DAt,K, b,p,ssqrNew,cgpars, restol)
%
% LOOPPCG Solve y from AP(d)A' * y = b
% using PCG-method and Cholesky L as conditioner.
% If L is sufficiently accurate, then only 1 CG-step is needed.
% It assumes that the previous step was p, with
% ssqrNew = bOld'*inv(L*THETA*L')*bOld, ... |
github | urbste/MLPnP_matlab_toolbox-master | finsymbden.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/finsymbden.m | 2,087 | utf_8 | 657a8e2087629e311adebd57a5f08b71 | % Lden = finsymbden(LAD,perm,dz,firstq)
% FINSYMBDEN Updates perm and dz by inserting the
% last Lorentz trace columns (last columns of LAD). It creates the fields
% Lden.sign - +1 for "normal" columns, -1 for Lorentz trace columns
% Lden.first - First pivot column that will affec... |
github | urbste/MLPnP_matlab_toolbox-master | minpsdeig.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/minpsdeig.m | 2,336 | utf_8 | 29f75bd3729b72e27c480ad96a8dfecb | % mineig = minpsdeig(x,K)
% MINPSDEIG Computes the smallest spectral coefficients of x w.r.t. K
% Uses an iterative method if the matrix is large, takes the minimum of all
% the eigenvalues if the matrix is small.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
%... |
github | urbste/MLPnP_matlab_toolbox-master | getDAtm.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/getDAtm.m | 1,959 | utf_8 | f378e638faeb4f3d673dca3c0cc6faa4 | % DAt = getDAtm(A,Ablkjc,dense,DAtdenq,d,K)
% GETDATM Computes d[k]'*Aj[k] for each lorentz block k and constraint j.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, getada2.
function DAt = getDAtm(A,Ablkjc,dense,DAtdenq,d,K)
%
% Thi... |
github | urbste/MLPnP_matlab_toolbox-master | findblks.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/findblks.m | 1,995 | utf_8 | 28b6d82caaac8cc4f537aba20c2cdcb0 | % Ablk = findblks(At,Ablkjc,blk0,blk1,blkstart)
% FINDBLKS Find nonzero blocks
% in A, with subscripts per column bounded bij Ablkjc([blk0,blk1]),
% block partitioned by blkstart.
% If blk0 < 1 (blk1 > size(Ablkjc,2)) then start (stop) searching at column
% start (end) of A.
%
% *******... |
github | urbste/MLPnP_matlab_toolbox-master | invcholfac.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/invcholfac.m | 1,817 | utf_8 | d632d6aaf456d5f49b5d98c2d3f643e7 | % y = invcholfac(u,K, perm)
% INVCHOLFAC Computes y(perm,perm) = u' * u, with u upper triangular.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, getada3
function y = invcholfac(u,K, perm)
%
% This file is part of SeDuMi ... |
github | urbste/MLPnP_matlab_toolbox-master | qframeit.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/qframeit.m | 1,731 | utf_8 | 5fa5e8c33ccbf6235d2065a5da6e9cb1 | % x = qframeit(lab,frmq,K)
%
% *********************** INTERNAL FUNCTION OF SEDUMI *******************
%
% See also sedumi
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) 2005 McMaster University, Hamilton, CANADA (since 1.1)
%
% Copyright (C) 2001 Jos F. Sturm (up to 1.05R5)
%... |
github | urbste/MLPnP_matlab_toolbox-master | incorder.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/incorder.m | 2,143 | utf_8 | 2b2774a13bee87f13835654c0d328cf3 | % [perm, dz] = incorder(At [,Ajc1,ifirst])
% INCORDER
% perm sorts the columns of At greedily, by iteratively picking
% the 1st unprocessed column with the least number of nonzero
% subscripts THAT ARE NOT YET COVERED (hence incremental) by
% the previously processed columns.
% dz has t... |
github | urbste/MLPnP_matlab_toolbox-master | qreshape.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/qreshape.m | 1,959 | utf_8 | c2c6b1ac9973c681f73cab640d9822aa | % y = qreshape(x,flag, K)
% QRESHAPE Reshuffles entries associated with Lorentz blocks.
% If flag = 0 then y = [x1 for each block; x2 for each block]
% If flag = 1 then y = [x block 1; x block 2; etc], etc
% Thus, x = qreshape(qreshape(x,0,K),1,K).
%
% ***************... |
github | urbste/MLPnP_matlab_toolbox-master | dpr1fact.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/dpr1fact.m | 2,082 | utf_8 | 629891569a29d67b959f97061acd5cea | % [Lden,L.d] = dpr1fact(x, d, Lsym, smult, maxu)
% DPR1FACT Factor d[iag] p[lus] r[ank] 1:
% [Lden,L.d] = dpr1fact(x, d, Lsym, smult, maxu)
% Computes fi and d such that
% diag(d_IN) + x*diag(smult)*x' =
%(PI_{i=1}^n L(p_OUT^i,beta_i)) * diag(d_OUT) * (PI_{i=1}^n L(p_OUT^i,bet... |
github | urbste/MLPnP_matlab_toolbox-master | iswnbr.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/iswnbr.m | 4,332 | utf_8 | 29ebd64b43e94bc8f880edf8af6dcb90 | % [delta,h,alpha] = iswnbr(vSQR,thetaSQR)
% ISWNBR Checks feasibility w.r.t. wide region/neighborhood of Sturm-Zhang.
% vTAR:= (1-alpha)*max(h,v) projection v onto theta-central region
% delta = (sqrt(n)/theta) * norm(vTAR - v) / norm(v)
%
% ********** INTERNAL FUNCTION OF SEDUMI ******... |
github | urbste/MLPnP_matlab_toolbox-master | fwblkslv.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/fwblkslv.m | 1,959 | utf_8 | afaeb9493d21b9aba30ef5c9ca9b42e7 | % FWBLKSLV Solves block sparse upper-triangular system.
% y = fwblkslv(L,b) yields the same result as
% y = L.L\b(L.perm,:)
% However, FWBLKSLV is faster than the built-in operator "\",
% because it uses dense linear algebra and loop-unrolling on
% supernodes.
%
% Typical use, with X sparse ... |
github | urbste/MLPnP_matlab_toolbox-master | trydif.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/trydif.m | 2,489 | utf_8 | 11997f7d1de309ae4f154ae656362f9d | % [t,wr,w] = trydif(t,wrIN,wIN, x,z, pars,K)
% TRYDIF Tries feasibility of differentiated step length w.r.t.
% wide region and its neighborhood.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi, stepdif
function [t,wr,w] = trydif(t,wrIN,wIN, x,z, pars,K)
%
% This file is p... |
github | urbste/MLPnP_matlab_toolbox-master | asmDxq.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/asmDxq.m | 2,735 | utf_8 | 4021e5a1dc8a445ad7e30c2170dbf01a | % y = asmDxq(d, x, K [, ddotx])
% ASMDXQ Assemble y = D(d)x for x in Lorentz part of K.
% [y,t] = AasmDxq(d, x, K [, ddotx]) then y[k]+t(k)*d[k] = D(dk)xk.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [y,t] = asmDxq(d, x, K, ddotx)
%
% T... |
github | urbste/MLPnP_matlab_toolbox-master | symfctmex.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/symfctmex.m | 1,990 | utf_8 | 13ca2c91fee7af502a14c702297c724b | % [L,perm,xsuper,split,tmpsiz] = symfctmex(X, perm, cachsz)
% Computes sparse symbolic factor L, updated permutation PERM,
% super-node partition XSUPER, and a splitting of supernodes
% (SPLIT) to optimize use of the computer cache (assuming
% CACHSZ*1024 byte available). TMPSIZ is the amount of floating
% ... |
github | urbste/MLPnP_matlab_toolbox-master | symbchol.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/symbchol.m | 3,197 | utf_8 | 40b95638fa00d31c904c92f5108cef30 | % L = symbchol(X)
% SYMBCHOL Symbolic block sparse Cholesky factorization.
% L = symbchol(X) returns a structure L that can be used
% by the efficient block sparse Cholesky solver SPARCHOL.
% The fields in L have the following meaning:
%
% L.perm - Mult... |
github | urbste/MLPnP_matlab_toolbox-master | getsymbada.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/getsymbada.m | 2,291 | utf_8 | 4f114f34a066f4164a180e45d55e1346 | % SYMBADA = getsymbada(At,Ajc,DAt,psdblkstart)
% GETSYMBADA
% Ajc points to start of PSD-nonzeros per column
% DAt.q has the nz-structure of ddotA.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, partitA, getada1, getada2.
function SYMBA... |
github | urbste/MLPnP_matlab_toolbox-master | statsK.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/statsK.m | 1,781 | utf_8 | 12ff626206549b4741bb0281466db66f | % K = statsK(K)
% STATSK Collects statistics (max and sum of dimensions) of cone K
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function K = statsK(K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romank... |
github | urbste/MLPnP_matlab_toolbox-master | qinvjmul.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/qinvjmul.m | 2,412 | utf_8 | dec5fb2062e903290a8620345bfea739 | % y = qinvjmul(labx,frmx,b,K)
% QINVJMUL Inverse of Jordan multiply for Lorentz blocks
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = qinvjmul(labx,frmx,b,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copy... |
github | urbste/MLPnP_matlab_toolbox-master | whichcpx.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/whichcpx.m | 1,768 | utf_8 | 5f028bd9c4ab83a5b133fd819123428b | % cpx = whichcpx(K)
% WHICHCPX yields structure cpx.{f,q,r,x}
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function cpx = whichcpx(K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright... |
github | urbste/MLPnP_matlab_toolbox-master | triumtriu.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/triumtriu.m | 1,970 | utf_8 | 00fc269408152bf90c80ab0ec660247e | % y = triumtriu(r,u,K)
% TRIUMTRIU Computes y = r * u
% Both r and u should be upper triangular.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = triumtriu(r,u,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Ro... |
github | urbste/MLPnP_matlab_toolbox-master | getada2.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/getada2.m | 1,909 | utf_8 | a8fc0f8faec3032542bec1ff776fc6a3 | % ADA = getada2(ADA, DAt,Aord, K)
% GETADA2 Compute ADA += DAt.q'*DAt.q
% IMPORTANT: Updated ADA only on triu(ADA(Aord.qperm,Aord.qperm)).
% Remaining entries are not affected.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, get... |
github | urbste/MLPnP_matlab_toolbox-master | urotorder.m | .m | MLPnP_matlab_toolbox-master/gOp/SeDuMi_1_3 2/urotorder.m | 1,801 | utf_8 | 4be6f57ee235f79abb8a2db74d4b9948 | % [u,perm,gjc,g] = urotorder(u,K, maxu,permIN)
% UROTORDER Stable reORDERing of triu U-factor by Givens ROTations.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [u,perm,gjc,g] = urotorder(u,K, maxu,permIN)
%
% This file is part of SeDuMi 1.1 by Imre Polik ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.