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
basson86/3D_IR_Thermal_Mapping-master
calibrate_kinect_r2s.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect_r2s.m
2,671
utf_8
7bf426a54bb56d37b9292b931a629d15
%[params]=calibrate_kinect_r2s(raw_params, options, params0) % Converts a params array into a params struct. Used by calibrate_kinect() % % Kinect calibration toolbox by DHC function [params]=calibrate_kinect_r2s(raw_params, options, params0) %Initializes default values and extra parameters params = params0; ccount ...
github
basson86/3D_IR_Thermal_Mapping-master
do_calib.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_calib.m
6,603
utf_8
afa6cfb30be10f7a6798020ec78fd866
%do_calib() % UI function % Kinect calibration toolbox by DHC function do_calib(use_depth_kc,use_depth_distortion) %Inputs global rgb_grid_p rgb_grid_x global dataset_path dfiles depth_plane_mask global calib0 global max_depth_sample_count %Outputs global is_validation global final_calib final_calib_error %Check prev...
github
basson86/3D_IR_Thermal_Mapping-master
read_disparity.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/read_disparity.m
1,540
utf_8
f93ff0d891d31f50719815b326681d5f
%imd = read_disparity(filename) % Reads a disparity image from disk. Corrects endianness issues. Replaces % 'nan_value' values with NaNs. Default for nan_value is 2047. % % Kinect calibration toolbox by DHC function imd = read_disparity(filename, nan_value) if(nargin < 2) nan_value = 2047;%4095; end use_custom_read...
github
basson86/3D_IR_Thermal_Mapping-master
ginput3.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/ginput3.m
6,340
utf_8
869181e1b50c6e6d9ec08c1724eb5297
function [out1,out2,out3] = ginput3(arg1) %GINPUT Graphical input from mouse. % [X,Y] = GINPUT(N) gets N points from the current axes and returns % the X- and Y-coordinates in length N vectors X and Y. The cursor % can be positioned using a mouse (or by using the Arrow Keys on some % systems). Data points a...
github
basson86/3D_IR_Thermal_Mapping-master
count_squares.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/count_squares.m
1,444
utf_8
9a0df3eed73ea4a768ab98cd59525704
%Function from Bouguet's camera calibration toolbox. function ns = count_squares(I,x1,y1,x2,y2,win); [ny,nx] = size(I); if ((x1-win <= 0) || (x1+win >= nx) || (y1-win <= 0) || (y1+win >= ny) || ... (x2-win <= 0) || (x2+win >= nx) || (y2-win <= 0) || (y2+win >= ny)) ns = -1; return; end; if ((x1 - x2)...
github
basson86/3D_IR_Thermal_Mapping-master
batman.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/batman.m
969
utf_8
2e2c2ff85ead6cc4da10ccdfd86b388d
function batman() ezplot(@batman_values,10*[-1 1 -1 1]); end function res=batman_values(x,y) m= 1e100; a = abs(x)-3; valid = (abs(a)./a) >= 0; b = (x./7).^2; a = y+3.*33^0.5./7; valid = valid & (abs(a)./a) >= 0; c = (y/3).^2; r = b+c-1; r = r.*valid + ~valid*m; a = 1-(abs(abs(x)-2)-1).^2; valid = a>=0; s = abs(x...
github
basson86/3D_IR_Thermal_Mapping-master
do_fixed_depth_calib.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_fixed_depth_calib.m
548
utf_8
4a318cad25c0bf2a7dcd15615639bb5c
%do_fixed_depth_calib() % UI function % Kinect calibration toolbox by DHC function do_fixed_depth_calib() %Outputs global calib0 fprintf('-------------------\n'); fprintf('Using known values for initial depth camera calibration\n'); fprintf('-------------------\n'); calib0.dK = [ 590 0 320; 0 590 230; ...
github
basson86/3D_IR_Thermal_Mapping-master
plot_depth_overlay.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/plot_depth_overlay.m
588
utf_8
08d9249ac7405d1c4e0fd993cc4fd0d8
% plot_depth_overlay(calib,k,im,imd,splat_size) % im - can be an image or the index i into rfiles{k}{i} if it is an index % imd is not needed. function plot_depth_overlay(calib,k,im,imd,splat_size) global dataset_path rfiles dfiles global rsize if(nargin <5) splat_size = 1; end if(ischar(im)) im = imread(im); i...
github
basson86/3D_IR_Thermal_Mapping-master
calibrate_kinect_options.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect_options.m
743
utf_8
e9f27b3a7c2638f0970de0310fb4e8e2
% options=calibrate_kinect_options() % Creates the options struct for calibrate_kinect(). % Set the different use_fixed_* fields to control the degrees of freedom in % the minimization. % % Kinect calibration toolbox by DHC function options=calibrate_kinect_options() options.use_fixed_dK = false; options.use_fixed_dk...
github
basson86/3D_IR_Thermal_Mapping-master
extract_grid.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/extract_grid.m
9,441
utf_8
43ae91c087be92595e42c45e8c4ba99e
%Function from Bouguet's camera calibration toolbox. % Modified by Daniel Herrera C. - Adapted to the Kinect Calibration Toolbox function [x,X,n_sq_x,n_sq_y,ind_orig,ind_x,ind_y] = extract_grid(I,wintx,winty,fc,cc,kc,dX,dY,xr,yr,click_mode); if nargin < 11, click_mode = 0; end; if nargin < 10, xr = []; y...
github
basson86/3D_IR_Thermal_Mapping-master
reorder_corners.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/reorder_corners.m
4,936
utf_8
41c43f74158be177a886b10b88dc62c1
function [pp,xx,corner_count_x]=reorder_corners(p,dx) count = size(p,2); if(count == 0) pp = []; xx = []; return end if(size(p,1)~=2) error('p must be 2xN'); end p(3,:) = 1; %Origin corner ptemp = p; [~,i] = min(ptemp(1,:)); pref = ptemp(:,i); ptemp(:,i) = []; [p1,i] = ...
github
basson86/3D_IR_Thermal_Mapping-master
plane2extrinsics.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/plane2extrinsics.m
909
utf_8
26948419164953cbdd358b7c67741dc6
%[R,t]=plane2extrinsics(N,d) % Extracts the extrinsics (rotation and translation) from the % calibration plane parameters (normal and distance from origin). % Only the third column of the rotation and one entry of the translation % are constrained by the plane parameters. The other values are arbitrary. % % Kinect cal...
github
basson86/3D_IR_Thermal_Mapping-master
depth_extern_calib.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/depth_extern_calib.m
1,400
utf_8
d7225662ef7229113cfc4bb5b80c93b2
function [Rext,text,cost]=depth_extern_calib(calib, depth_plane_points, depth_plane_disparity) %Initial guess Xw = disparity2world(depth_plane_points(1,:),... depth_plane_points(2,:),... depth_plane_disparity,... calib); [N0,d0] = fit_plane(X...
github
basson86/3D_IR_Thermal_Mapping-master
depth2disparity.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/depth2disparity.m
713
utf_8
920f45eab0179451e59fb400bea923db
%disp_d=depth2disparity(u,v,w,dc,dc_alpha,dc_beta) % Converts a depth value into a kinect disparity value. % % u pixel column coordinate (zero based) % v pixel row coordinate (zero based) % w third coordinate (z) in depth image coordinates (in meters) % calib.dc depth coefficients % % disp disparity (distorted, as wou...
github
basson86/3D_IR_Thermal_Mapping-master
rotationpars.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/rotationpars.m
376
utf_8
5e467689e132e8767645691d551f0773
% by Juho Kannala %Matrix form of rotation to vector form (Rodriguez formula) function t=rotationpars(R) [V,D]=eig(R-eye(3)); evs=diag(D); [minv,mini]=min(evs); vect=V(:,mini); cosphi=0.5*(trace(R)-1); sinphi=0.5*vect'*[ R(3,2)-R(2,3); R(1,3)-R(3,1); R(2,1)-R(1,2)]; %if cosphi==0 % phi=pi/2; %else % phi=atan(sinph...
github
basson86/3D_IR_Thermal_Mapping-master
do_initial_rgb_calib.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_initial_rgb_calib.m
4,673
utf_8
11b04a47accb5cf03827963d1cb2ef6e
%do_initial_rgb_calib() % UI function % Kinect calibration toolbox by DHC function do_initial_rgb_calib(use_fixed_init) %Inputs global dataset_path rfiles global rgb_grid_p rgb_grid_x %Outputs global calib0 %Check previous steps if(isempty(rgb_grid_p)) do_select_rgb_corners(); end fprintf('-------------------\n');...
github
basson86/3D_IR_Thermal_Mapping-master
calibrate_kinect_cost_color.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect_cost_color.m
773
utf_8
800f8b504f771b13ee988ad03f1ea13e
% cost=calibrate_kinect_cost_color(params,options,rgb_grid_p,rgb_grid_x) % Cost for color images, used by calibrate_kinect_cost. % % Kinect calibration toolbox by DHC function cost=calibrate_kinect_cost_color(params,options,rgb_grid_p,rgb_grid_x) ccount = length(rgb_grid_p); cost=cell(1,ccount); for k=1:ccount tota...
github
basson86/3D_IR_Thermal_Mapping-master
do_rgb_depthmap.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_rgb_depthmap.m
893
utf_8
65c71c993e9c092e5e903fa64d1a9cad
%do_rgb_depthmap() % UI function. % Kinect calibration toolbox by DHC function do_rgb_depthmap() global rsize final_calib if(isempty(final_calib)) fprintf('Must perform calibration first.\n') return end filename = input('Depth image to project to rgb coordinates: ','s'); if(isempty(dir(filename))) fprintf('Fil...
github
basson86/3D_IR_Thermal_Mapping-master
normalize_k.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/normalize_k.m
1,916
utf_8
ae83a8d2e0a89e4b2db49495233a2757
function [xn] = normalize_k(p,K,kc) xd = [(p(1,:) - K(1,3))/K(1,1);(p(2,:) - K(2,3))/K(2,2)]; minimization_options=optimset(... 'LargeScale','on',... 'Algorithm','levenberg-marquardt',... 'Jacobian','on',... 'Display','none',... 'TolFun',1e-3,... 'TolX',1e-3,... 'MaxFunEvals',20000,.....
github
basson86/3D_IR_Thermal_Mapping-master
normalize.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/normalize.m
1,092
utf_8
e2b35b58332bd2c649e797b15a679aa9
%This function adapted from Bouguet's camera calibration toolbox. function [xn] = normalize(x_kk,K,kc) % %normalize % %[xn] = normalize(x_kk,fc,cc,kc,alpha_c) % %Computes the normalized coordinates xn given the pixel coordinates x_kk %and the intrinsic camera parameters fc, cc and kc. % %INPUT: x_kk: Feature locations ...
github
basson86/3D_IR_Thermal_Mapping-master
find_images.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/find_images.m
1,640
utf_8
a18305728229195827e470449d5d6ab3
%find_images - Searches the given path to find the calibration images. %Input % path [string] the path where images are located % rfile_format {1xK}[string] format of the filenames for the K color % cameras. Used with sprintf(rfile_format{k},image_number). % dfile_format [string] format of the filename...
github
basson86/3D_IR_Thermal_Mapping-master
calibrate_kinect_cost_depth.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect_cost_depth.m
1,153
utf_8
7b74ec01b175c0d85a30c9ec08f12625
% cost=calibrate_kinect_cost_depth(params,options,depth_plane_points,depth_plane_disparity) % Cost for depth images, used by calibrate_kinect_cost. % % Kinect calibration toolbox by DHC function cost=calibrate_kinect_cost_depth(params,options,depth_plane_points,depth_plane_disparity) total_count = sum( cellfun(@length...
github
basson86/3D_IR_Thermal_Mapping-master
do_save_calib.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_save_calib.m
1,700
utf_8
e22ab17e4da9ed619bf07e96b5ef7056
%do_save_calib() % UI function. Saves calibration data to disk. % Kinect calibration toolbox by DHC function do_save_calib(path) global dataset_path rfiles rsize dfiles global rgb_grid_p rgb_grid_x global depth_corner_p depth_corner_x global depth_plane_poly depth_plane_mask global calib0 global is_validation global f...
github
basson86/3D_IR_Thermal_Mapping-master
disparity2depth.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/disparity2depth.m
558
utf_8
23e080fe08b230fb3fee5b99bf0d6062
%w=disparity2depth(disp,dc) % Converts a kinect disparity value into a depth value. % % disp kinect disparity value % calib.dc depth coefficients % w third coordinate (z) in depth image coordinates % % Kinect calibration toolbox by DHC function w=disparity2depth(u,v,disp,calib) disp_k = undistort_disparity(u,v,disp,...
github
basson86/3D_IR_Thermal_Mapping-master
calibrate_external_camera.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_external_camera.m
2,859
utf_8
cb03ba5658c66d3b257a37d70064c5e2
function [Rrel,trel,Ra,ta]=calibrate_external_camera(Xw,Ka,kca,Pa,Kb,kcb,Pb) image_count = length(Xw); assert(length(Pa)==image_count); assert(length(Pb)==image_count); %Initial calibration Ha = cell(1,image_count); Hb = cell(1,image_count); Ra0 = cell(1,image_count); ta0 = cell(1,image_count); Rb0...
github
basson86/3D_IR_Thermal_Mapping-master
click_ima_calib_rufli_k.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/click_ima_calib_rufli_k.m
27,691
utf_8
2294806e0bbd4abe4b50224ada20bb63
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Copyright (C) 2007 MARTIN RUFLI % % Initially written by Martin Rufli and modified by Davide Scaramuzza % Adapted to the Kinect Toolbox by Daniel Herrera C. % % This program is free software; you can redistribute it and/or mod...
github
basson86/3D_IR_Thermal_Mapping-master
tight_subplot.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/tight_subplot.m
3,293
utf_8
02bd7cb46f32f0226d25fbd566b0a4f8
% tight_subplot creates "subplot" axes with adjustable gaps and margins % % ha = tight_subplot(Nh, Nw, gap, marg_h, marg_w) % % in: Nh number of axes in hight (vertical direction) % Nw number of axes in width (horizontaldirection) % gap gaps between the axes in normalized units (0...1) % ...
github
basson86/3D_IR_Thermal_Mapping-master
calibrate_kinect.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect.m
4,205
utf_8
3e295d377d545f9eed0724b68efaec61
%[params,params_error]=calibrate_kinect(options,rgb_grid_p,rgb_grid_x,depth_plane_points,depth_plane_disparity,params0) % Performas a non-linear minimization of the calibration parameters using % levenberg-marquardt algorithm. % % options struct created with calibrate_kinect_options() % rgb_grid_p {K}{N}[2xP] cell arra...
github
basson86/3D_IR_Thermal_Mapping-master
do_initial_depth_calib.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_initial_depth_calib.m
2,977
utf_8
8b6cff93ad8e72ac781707ed3f9b3170
%do_initial_depth_calib() % UI function % Kinect calibration toolbox by DHC function do_initial_depth_calib(use_well_known) %Inputs global dataset_path dfiles global rgb_grid_p rgb_grid_x global depth_corner_p depth_corner_x global depth_plane_mask global max_depth_sample_count %Outputs global calib0 if(nargin < 1) ...
github
basson86/3D_IR_Thermal_Mapping-master
projectedGrid.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/projectedGrid.m
513
utf_8
20c779d1239160a873182ee242debfd7
%Function from Bouguet's camera calibration toolbox. function [XX,H] = projectedGrid ( P1, P2, P3, P4 , nx, ny); % new formalism using homographies a00 = [P1;1]; a10 = [P2;1]; a11 = [P3;1]; a01 = [P4;1]; % Compute the planart collineation: [H] = compute_collineation (a00, a10, a11, a01); % Build the grid using th...
github
basson86/3D_IR_Thermal_Mapping-master
do_select_depth_corners.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_select_depth_corners.m
1,639
utf_8
4b6d50fa6009818740f6353782cb7f9b
%do_select_depth_corners() % UI function. % Kinect calibration toolbox by DHC function do_select_depth_corners() %Input global dataset_path dfiles %Output global depth_corner_p depth_corner_x %Check previous steps if(isempty(dfiles)) do_select_images(); end icount = length(dfiles); fprintf('-------------------\n')...
github
basson86/3D_IR_Thermal_Mapping-master
compute_rgb_depthmap.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/compute_rgb_depthmap.m
1,779
utf_8
388d42a31b613c94f4dee39bbbbef7e7
%[depthmap,points]=compute_rgb_depthmap(imd,calib,im_size,splat_size) % Back projects the disparity image to metric coordinates and projects it % onto the rgb image to compute a depth map with rgb camera pixel % coordinates. % % imd [HxW] kinect disparity image % calib [struct] calibration data from the toolbox % im_si...
github
basson86/3D_IR_Thermal_Mapping-master
kinect_calib_gui.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/kinect_calib_gui.m
7,587
utf_8
ddfc85c15a2ba172f080c2d8af4696e9
function varargout = kinect_calib_gui(varargin) % KINECT_CALIB_GUI M-file for kinect_calib_gui.fig % KINECT_CALIB_GUI, by itself, creates a new KINECT_CALIB_GUI or raises the existing % singleton*. % % H = KINECT_CALIB_GUI returns the handle to a new KINECT_CALIB_GUI or the handle to % the existing ...
github
basson86/3D_IR_Thermal_Mapping-master
rotationmat.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/rotationmat.m
451
utf_8
2c4c56198f06d5ae8c0d0586321bbe0c
% by Juho Kannala %Vector form of rotation to matrix form (Rodriguez formula) function R=rotationmat(t) t=t(:); phi=norm(t); if 0 if phi==0 sincphi=1; sc=0; else sc=(1-cos(phi))/(phi^2); sincphi=sin(phi)/phi; end R=cos(phi)*eye(3)+sincphi*[0 -t(3) t(2); t(3) 0 -t(1); -t(2) t(1) 0]+sc*t*t'; end if phi==0 R=...
github
basson86/3D_IR_Thermal_Mapping-master
calib_distortion.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calib_distortion.m
4,642
utf_8
7e81e9be1b352cc6afdb77eb71d5b7f5
function [alpha,im_beta]=calib_distortion(calib, Rext, text, dataset_path, dfiles, depth_plane_mask) width = 640; height = 480; %Remove distortion correction from calib alpha0 = calib.dc_alpha; beta0 = calib.dc_beta; calib.dc_alpha = []; calib.dc_beta = []; fprintf('Gathering samples...'); ...
github
basson86/3D_IR_Thermal_Mapping-master
calib_from_homographies.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calib_from_homographies.m
1,818
utf_8
32b169f6fd3cab652f5856d22e971536
%[K,R,t]=calib_from_homographies(H) %Computes calibration parameters using homographies %Implemented directly from Zhang's '99 paper % "Flexible Camera Calibration By Viewing a Plane From Unknown % Orientations" % % H is a cell array of 3x3 homographies % K is the [3x3] intrinsics matrix % R is a cell array of 3x3 rota...
github
basson86/3D_IR_Thermal_Mapping-master
calibrate_kinect_s2r.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect_s2r.m
3,027
utf_8
c951643ebcf4e6637a516fec0f1e819f
%raw_params = calibrate_kinect_s2r(params, options) % Converts a params struct into a params array. Used by calibrate_kinect() % %Inputs: % Fields of params: % rK {K}[fx 0 u0; 0 fy v0; 0 0 1] intrinsics for rgb camera % rkc {K}[1x5] distortion coefficients for rgb camera % rR {K}[3x3] rotation matrix from camera k ...
github
basson86/3D_IR_Thermal_Mapping-master
compute_homography.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/compute_homography.m
3,586
utf_8
71e1af159a6f4984c43032a29af625ea
%Function from Bouguet's camera calibration toolbox. function [H,Hnorm,inv_Hnorm] = compute_homography(m,M); %compute_homography % %[H,Hnorm,inv_Hnorm] = compute_homography(m,M) % %Computes the planar homography between the point coordinates on the plane (M) and the image %point coordinates (m). % %INPUT: m: homogeneo...
github
basson86/3D_IR_Thermal_Mapping-master
calibrate_kinect_cov2error.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect_cov2error.m
3,104
utf_8
5bc4d2fad3eacf6cdfeb030f5ccfd082
%[params_error]=calibrate_kinect_cov2error(raw_params_error, options, params) % Converts a params covariance array into an param error struct. % % Kinect calibration toolbox by DHC function [params_error]=calibrate_kinect_cov2error(raw_params_error, options, params) ccount = length(params.rR); image_count = length(par...
github
basson86/3D_IR_Thermal_Mapping-master
qslim.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/qslim.m
13,152
utf_8
2ab54ac7408e720642cbe21d8b6927bd
function [NFV,smf_fname] = qslim(FV,varargin); %QSLIM - Mesh simplification, wrapper function for Garland's QSLIM executable program % function [NFV,smf_fname] = qslim(FV,varargin); % varargin should be entered in pairs '<option>','<arg>'. % Valid pairs used in this wrapper are: % % '-t', <n> % % Specify the desired...
github
basson86/3D_IR_Thermal_Mapping-master
perform_triangle_flipping.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/perform_triangle_flipping.m
1,848
utf_8
b6a78203795416882735031895a76703
function face = perform_triangle_flipping(face, flips, options) % perform_triangle_flipping - apply a sequence of flips to a triangulation % % face = perform_triangle_flipping(face, flips, options); % % Flip that are not topologically valid (either on a boundary edge or a % flip that creates a double face) are s...
github
basson86/3D_IR_Thermal_Mapping-master
perform_point_picking.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/perform_point_picking.m
4,121
utf_8
9c43a474845c0bc92e5d215f6eda9a88
function perform_point_picking( PointCloud, face ) % function perform_point_picking( PointCloud, face ); % % This function shows a 3D point cloud or a mesh and lets the user click select one % of the points by clicking on it. The selected point will be highlighted % and its index in the point cloud will be...
github
basson86/3D_IR_Thermal_Mapping-master
select3d.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/select3d.m
10,864
utf_8
64f6b58cf8db75c3508f68035be9892e
function [pout, vout, viout, facevout, faceiout] = select3d(obj) %SELECT3D(H) Determines the selected point in 3-D data space. % P = SELECT3D determines the point, P, in data space corresponding % to the current selection position. P is a point on the first % patch or surface face intersected along the selection ...
github
basson86/3D_IR_Thermal_Mapping-master
compute_parameterization.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/compute_parameterization.m
7,662
utf_8
1215e4168de2b431e1d81f0ea8df0af0
function vertex1 = compute_parameterization(vertex,face, options) % compute_parameterization - compute a planar parameterization % % vertex1 = compute_parameterization(vertex,face, options); % % options.method can be: % 'parameterization': solve classical parameterization, the boundary % is specifi...
github
basson86/3D_IR_Thermal_Mapping-master
perform_dijkstra_propagation_old.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/perform_dijkstra_propagation_old.m
4,965
utf_8
ca5b091b67041559476ea2e63c92f254
function D = perform_dijkstra_propagation_old( G , S ) % dijkstra - Find shortest paths in graphs % % D = dijkstra_fast( G , S ); % % use the full or sparse matrix G in which % an entry (i,j) represents the arc length between nodes i and j in a % graph. In a full matrix, the value INF represents the absence of a...
github
basson86/3D_IR_Thermal_Mapping-master
compute_boundary.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/compute_boundary.m
1,847
utf_8
28c06ac30beb789fa90a2e484ba3f3a7
function boundary=compute_boundary(face, options) % compute_boundary - compute the vertices on the boundary of a 3D mesh % % boundary=compute_boundary(face); % % Copyright (c) 2007 Gabriel Peyre options.null = 0; verb = getoptions(options, 'verb', 1); if size(face,1)<size(face,2) face=face'; end nvert=max(m...
github
basson86/3D_IR_Thermal_Mapping-master
compute_geometric_laplacian.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/compute_geometric_laplacian.m
5,583
utf_8
3d9b6480df20fdff10d38f34983646cb
function L = compute_geometric_laplacian(vertex,face,type) % compute_geometric_laplacian - return a laplacian % of a given triangulation (can be combinatorial or geometric). % % L = compute_geometric_laplacian(vertex,face,type); % % Type is either : % - 'combinatorial' : combinatorial laplacian, doesn't t...
github
basson86/3D_IR_Thermal_Mapping-master
check_face_vertex.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/check_face_vertex.m
669
utf_8
c940a837f5afef7c3a7f7aed3aff9f7a
function [vertex,face] = check_face_vertex(vertex,face, options) % check_face_vertex - check that vertices and faces have the correct size % % [vertex,face] = check_face_vertex(vertex,face); % % Copyright (c) 2007 Gabriel Peyre vertex = check_size(vertex,2,4); face = check_size(face,3,4); %%%%%%%%%%%%%%%%%%%%%%%...
github
basson86/3D_IR_Thermal_Mapping-master
plot_graph.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/plot_graph.m
2,140
utf_8
337033b66fe405903639bcac59c2b34d
function h = plot_graph(A,xy, options) % plot_graph - display a 2D or 3D graph. % % plot_graph(A,xy, options); % % options.col set the display (e.g. 'k.-') % % Copyright (c) 2006 Gabriel Peyre if size(xy,1)>size(xy,2) xy = xy'; end if nargin<3 options.null = 0; end if not(isstruct(options)) col = op...
github
basson86/3D_IR_Thermal_Mapping-master
perform_delaunay_flipping.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/perform_delaunay_flipping.m
2,420
utf_8
7c5e250e94e9e69d99c556c805b4d2fe
function [face, flips, flipsinv] = perform_delaunay_flipping(vertex,face,options) % perform_delaunay_flipping - compute Dalaunay triangulation via flipping % % [face1, flips, flipsinv] = perform_delaunay_flipping(vertex,face,options); % % Set options.display_flips = 1 for graphical display. % % face is turned in...
github
basson86/3D_IR_Thermal_Mapping-master
check_incircle_edge.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/check_incircle_edge.m
1,633
utf_8
dca2fc799d9cf120df9156a15c47b5fa
function ic = check_incircle_edge(vertex, face, edge) % check_incicle_edge - compute "empty circle" property for a set of edges % % ic = check_incicle_edge(vertex,face, edge); % % ic(i)==1 if edge(:,i) is delaunay valid (boundary or empty circles or non convex). % It thus should be flipped if ic(i)==0. % % Cop...
github
basson86/3D_IR_Thermal_Mapping-master
perform_faces_reorientation.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/perform_faces_reorientation.m
2,816
utf_8
2cf3d5c1ad6ea271b524352db5492c2c
function faces = perform_faces_reorientation(vertex,faces, options) % perform_faces_reorientation - reorient the faces with respect to the center of the mesh % % faces = perform_faces_reorientation(vertex,faces, options); % % try to find a consistant reorientation for faces of a mesh. % % if options.method = 'fast...
github
basson86/3D_IR_Thermal_Mapping-master
plot_spherical_triangulation.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/plot_spherical_triangulation.m
1,397
utf_8
fde5d8ffb7898bb232257895ced3d53d
function plot_spherical_triangulation(svertex,face, options) % plot_spherical_triangulation - display a nice spherical triangulation % % plot_spherical_triangulation(svertex,face,options); % % Copyright (c) 2008 Gabriel Peyre options.null = 0; hold on; % draw a background sphere [X,Y,Z] = sphere(30); surf(X,Y...
github
basson86/3D_IR_Thermal_Mapping-master
compute_mesh_weight.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/compute_mesh_weight.m
2,783
utf_8
435dabe64ab50ca5bf2c467bcbad6ab8
function W = compute_mesh_weight(vertex,face,type,options) % compute_mesh_weight - compute a weight matrix % % W = compute_mesh_weight(vertex,face,type,options); % % W is sparse weight matrix and W(i,j)=0 is vertex i and vertex j are not % connected in the mesh. % % type is either % 'combinatorial': W(i...
github
basson86/3D_IR_Thermal_Mapping-master
perform_analysis_regularization.m
.m
3D_IR_Thermal_Mapping-master/ReconstructMe/toolbox_graph/toolbox/perform_analysis_regularization.m
2,585
utf_8
c15e65a8b4b77823cd42e992ac708563
function [g,g_list,E] = perform_analysis_regularization(f, G, options) % perform_analysis_regularization - perform a sparse regularization % % [g,g_list,E] = perform_analysis_regularization(f, A, options); % % Method solves, given f of length n, for % min_g E(g) = 1/2*|f-g|^2 + lambda * |A*g|_1 % where A is a...
github
akar43/CategoryShapes-master
computeMeshesFromStates.m
.m
CategoryShapes-master/basisShapes/computeMeshesFromStates.m
941
utf_8
b527eda3b47317c6cafc52b022b02db3
function [] = computeMeshesFromStates(class,jobID) %COMPUTEMESHES Summary of this function goes here % Detailed explanation goes here globals; inferredShapesOptDir = jobDirs(class,jobID,'inferredShape'); meshDir = jobDirs(class,jobID,'mesh'); mkdirOptional(meshDir); fnames = getFileNamesFromDirectory(inferredShapesO...
github
akar43/CategoryShapes-master
fitKnownShapes.m
.m
CategoryShapes-master/basisShapes/fitKnownShapes.m
5,792
utf_8
25c8fcf218d0c754320eeddd40ff32f2
function [] = fitKnownShapes(shapeModelOpt,statesDir,inferredShapesDir) %% Setup optimization parameters params = get_params(); relaxOpt = params.opt.relaxOpt; lambda = params.opt.lambda; maxiter = params.opt.testIters; Sbar = shapeModelOpt.S; V = shapeModelOpt.V; N = shapeModelOpt.normals; tri = shapeModelOpt.tri; sh...
github
akar43/CategoryShapes-master
getTestStateFiles.m
.m
CategoryShapes-master/basisShapes/getTestStateFiles.m
5,332
utf_8
18f60d94178e49f991558b9c01ed5113
function [] = getTestStateFiles(model_3d,statesDir,relax,goodInds) globals; paramsLocal = params; PASCAL_DIR_local = PASCAL_DIR; cachedir_local = cachedir; if(nargin<4) goodInds = true(length(model_3d.c),1); end parfor instance = 1:length(model_3d.c) state = struct; if(~goodInds(instance)) continue...
github
akar43/CategoryShapes-master
getStateFiles.m
.m
CategoryShapes-master/basisShapes/getStateFiles.m
4,360
utf_8
50b817f68a9b67922c9cbaabd65106f0
function [] = getStateFiles(model_3d,statesDir,goodInds) globals; PASCAL_DIR = PASCAL_DIR; if(nargin<3) goodInds = true(length(model_3d.c),1); end params = get_params(); viewClusters = cluster_views(model_3d,find(goodInds(:)),params.vis.numRotClusters,0); %pBar = TimedProgressBar( length(model_3d.c), 30, ... % ...
github
akar43/CategoryShapes-master
cluster_views.m
.m
CategoryShapes-master/basisShapes/visualHull/cluster_views.m
1,497
utf_8
492abd41837b4f959955cff74901bf7c
function rotClusters = cluster_views(model_3d,inds,nClusters,vis) if(nargin<4) vis=0; end rots = model_3d.rots(inds); rots = cellfun(@(x)(x(:)'),rots,'UniformOutput',false); rots = vertcat(rots{:}); T = clusterdata(rots,'distance',@riemannian_dist,'linkage','average','maxclust',nCluster...
github
akar43/CategoryShapes-master
initializeShape.m
.m
CategoryShapes-master/basisShapes/optimization/initializeShape.m
5,686
utf_8
a83f842f5ec702047d9f56e4d9cb7990
function [shape,V,shapePriorMean,deformationPrior,shapePriorInstance,tris,fvN] = initializeShape(statesDir) % assume that squared norm of each deformation of V = numpoints. % norm(V(:,k))^2 = numpoints; for all k %globals numNeighbors = 10; %% Initializing Shape - Visual Hull params=get_params(); from = params.vis.v...
github
akar43/CategoryShapes-master
wrapperEvalSIRFS.m
.m
CategoryShapes-master/evaluation/wrapperEvalSIRFS.m
2,191
utf_8
2630f3b221d2226c00145797c204ca98
function dmapErrors = wrapperEvalSIRFS(classes) globals dmapErrors = cell(length(classes),1); map = load(fullfile(cachedir,'test_sets.mat')); map = map.map; map = map(~cellfun(@isempty,map)); map = cellfun(@(x)(strcat(x,'.mat')),map,'UniformOutput',false); map = map(:); for ii=1:length...
github
akar43/CategoryShapes-master
dmapMetricCorr.m
.m
CategoryShapes-master/evaluation/dmapMetricCorr.m
429
utf_8
0161cc1ad5fb4e2d9227d9703364bc56
% Depth correlation function score =dmapMetricCorr(dmap1,gtdmap,mask) dmap1(isinf(dmap1)) = nan; gtdmap(isinf(gtdmap)) = nan; mask = logical(mask); x = dmap1(mask); y = gtdmap(mask); nanMask = ~isnan(y); % Keep points present in gt depth x = x(nanMask); y = y(nanMask); x(isnan(x...
github
akar43/CategoryShapes-master
baselineSIRFS.m
.m
CategoryShapes-master/sirfsPrior/baselineSIRFS.m
1,501
utf_8
64e1c047cc3fcd0061d204b798b2c0a5
function [] = baselineSIRFS(class,jobID) %GETDEPTHIMAGE Summary of this function goes here % Detailed explanation goes here globals statesDir = jobDirs(class,jobID,'state'); sirfsstatedir = fullfile(cachedir,class,sprintf('baselineSIRFS%s',jobID)); mkdirOptional(sirfsstatedir); fnames = getFileNamesFromDirectory(dma...
github
akar43/CategoryShapes-master
shapeSIRFS.m
.m
CategoryShapes-master/sirfsPrior/shapeSIRFS.m
2,037
utf_8
b8ad466f5d5b3cbf4d0cfe51d544398a
function [] = shapeSIRFS(class,jobID) %GETDEPTHIMAGE Summary of this function goes here % Detailed explanation goes here statesDir = jobDirs(class,jobID,'state'); sirfsstatedir = jobDirs(class,jobID,'sirfs'); dmapDir = jobDirs(class,jobID,'dmap'); mkdirOptional(sirfsstatedir); fnames = getFileNamesFromDirectory(dmap...
github
akar43/CategoryShapes-master
getGtDepthMap.m
.m
CategoryShapes-master/utils/getGtDepthMap.m
1,424
utf_8
b17e0b52725f696dea67e7164dd877fa
function [] = getGtDepthMap(fnames,statesDir,annotationsDir,depthMapsDir,cadModels) %GETGTDEPTHMAP Summary of this function goes here % Detailed explanation goes here parfor i=1:length(fnames) warning off; disp(i); state=load(fullfile(statesDir,fnames{i})); state=state.state; dmap = zeros(size(st...
github
akar43/CategoryShapes-master
augmentPascal3Ddata.m
.m
CategoryShapes-master/utils/augmentPascal3Ddata.m
2,756
utf_8
e17c7b22d840529a86e1d9489f6f2163
function [data3d] = augmentPascal3Ddata(data,class) %AUGMENTPASCAL3DDATA Summary of this function goes here % Detailed explanation goes here N = length(data); globals; load(fullfile(datadir,'subtypeClusters')); data3d = data; cInd = pascalClassIndex(class); notFound = 0; for i=1:N bbox = data(i).bbox; if(dat...
github
akar43/CategoryShapes-master
getDepthMapsFromMeshes.m
.m
CategoryShapes-master/utils/getDepthMapsFromMeshes.m
1,171
utf_8
46f101bbd468290cd4496d2b7476359d
function [] = getDepthMapsFromMeshes(class,jobID) %GETDEPTHIMAGE Summary of this function goes here % Detailed explanation goes here globals statesDir = jobDirs(class,jobID,'state'); meshDir = jobDirs(class,jobID,'mesh'); depthMapsDir = jobDirs(class,jobID,'dmap'); fnames = getFileNamesFromDirectory(meshDir,'types',{...
github
akar43/CategoryShapes-master
runPuffBall.m
.m
CategoryShapes-master/utils/runPuffBall.m
1,249
utf_8
d4518a9a839e3345e053c0ac90686ab9
function runPuffBall(classes,tId) globals for i=1:length(classes) puffBallDir = fullfile(cachedir,classes{i},'puffBallMeshesGt'); disp(puffBallDir); mkdir(puffBallDir); fnames = []; fnamesFull = []; class = classes{i}; jobDirs = getJobDirs(classes{i},tId,'statesDi...
github
akar43/CategoryShapes-master
read_pascal.m
.m
CategoryShapes-master/utils/read_pascal.m
3,193
utf_8
5e2bca3a850f4fd8e95b0db5c7a9ccef
function pos=read_pascal(cls,year,keypoints,segmentations) % Read pascal to generate filtered instances of classes globals; dataset_fg = 'trainval'; conf.year=year; conf.dev_kit=[BASE_DIR 'data/VOC2011/VOCdevkit']; VOCopts = get_voc_opts(conf); % Setup keypoints and segmentations voc_id kps_voc_id = cellfun(@(x,y...
github
akar43/CategoryShapes-master
minboundbox.m
.m
CategoryShapes-master/utils/minboundbox.m
12,077
utf_8
ee9e7acca721a1b8239c61167c7419ef
function [rotmat,cornerpoints,volume,surface,edgelength] = minboundbox(x,y,z,metric,level) % minboundbox: Compute the minimal bounding box of points in 3d % usage: [rotmat,cornerpoints,volume,surface,edgelength] = minboundbox(x,y,z,metric,level) % % arguments: (input) % x,y,z - vectors of points, describing points in ...
github
akar43/CategoryShapes-master
read_ply.m
.m
CategoryShapes-master/utils/read_ply.m
15,773
utf_8
b56b61e078c770167c29c2d717f48521
function [vertex,face] = read_ply(filename) % read_ply - read data from PLY file. % % [vertex,face] = read_ply(filename); % % 'vertex' is a 'nb.vert x 3' array specifying the position of the vertices. % 'face' is a 'nb.face x 3' array specifying the connectivity of the mesh. % % IMPORTANT: works only for trian...
github
akar43/CategoryShapes-master
points2normals.m
.m
CategoryShapes-master/utils/points2normals.m
2,525
utf_8
ea6e5c8e539b4e52ee6ce3ae9e5b5e89
function normals = points2normals(points,nbd) % estimating a normal vector based on nearby 100 points % points is 3 * n matrix for n points if size(points,2)==3 && size(points,1)~=3 points = points'; end normals = lsqnormest(points, nbd); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
github
akar43/CategoryShapes-master
state2meshIso.m
.m
CategoryShapes-master/utils/state2meshIso.m
1,410
utf_8
84ed96cfb9bdeb2abd66ee6205a2946c
function outMesh = state2meshIso(state) % Use isosurface to construct mesh from point cloud params = get_params(); from = params.vis.voxelsFrom;to = params.vis.voxelsTo;step = params.vis.voxelsSteps; rangeXYZ = round((to-from)/step)+1; [X,Y,Z] = ndgrid(from(1):step:to(1), from(2):step:to(2), from(3):ste...
github
akar43/CategoryShapes-master
projectp3d.m
.m
CategoryShapes-master/utils/projectp3d.m
1,647
utf_8
b73b4c7d79f16519ffc3f555f64a493b
% project the 3D points to generate 2D points according to the viewpoint function xproj = projectp3d(x3d, object) if isfield(object, 'viewpoint') == 1 % project the 3D points viewpoint = object.viewpoint; a = viewpoint.azimuth*pi/180; e = viewpoint.elevation*pi/180; d = viewpoint.distance; f = ...
github
akar43/CategoryShapes-master
postProcessMeshes.m
.m
CategoryShapes-master/utils/postProcessMeshes.m
679
utf_8
457e288a4c23e6338e8cd8e7642b6246
function [] = postProcessMeshes(fnames,meshDir,meshDirFinal,smoothIter,flipZ) %POSTPROCESSMESHES Summary of this function goes here % Detailed explanation goes here parfor i = 1:length(fnames) meshFile = fullfile(meshDir,fnames{i}); meshFileSave = fullfile(meshDirFinal,fnames{i}); mesh = load(meshFi...
github
akar43/CategoryShapes-master
averageRotationTransform.m
.m
CategoryShapes-master/utils/averageRotationTransform.m
927
utf_8
ad06098fb5de5c41e9dab9604b6b431b
function [R] = averageRotationTransform(R1s,R2s) %AVERAGEROTATION Summary of this function goes here % takes from R1s to R2s [R1s,R2s] = removeNanRots(R1s,R2s); R = eye(3); N = length(R1s); maxDiff = pi/3; for i=1:N diffs{i} = R1s{i}'*R2s{i}; end err = Inf; iter = 0; while(err > 1e-4 && iter < 50) iter = it...
github
akar43/CategoryShapes-master
puffball.m
.m
CategoryShapes-master/utils/puffball.m
2,705
utf_8
0a191a968a1f9911e80ae2417db3f7c1
function [tri, coord] = puffball(mask) %Weighted skeleton, where each non-zero value corresponds to the maximum %size of a sphere that can be centered there. wSkel = get_SkelRadius(mask); heightFunction = puffbalIInflation(mask,wSkel); [tri,coord] = mesh_from_height(mask, heightFunction); end function [tri, coo...
github
akar43/CategoryShapes-master
meshToDepth.m
.m
CategoryShapes-master/utils/meshToDepth.m
1,483
utf_8
f391d24bfacbf07393641f04f133d36b
function [depthIm] = meshToDepth(S,tri,imsize) %MESHTODEPTH orthographic projections to get depth % Detailed explanation goes here %write_off('temp.off',S,tri); %[depthIm] = off2im('temp.off'); %delete('temp.off'); %return; depthIm = Inf(imsize); visIndexTri = zeros(size(tri,1),1); for i=1:size(tri,1) %if(i==55...
github
akar43/CategoryShapes-master
mstep_update_missingdata.m
.m
CategoryShapes-master/nrsfm/mstep_update_missingdata.m
4,058
utf_8
ae7f25ec825dcda56c10468cf3da48b4
function P_hat = mstep_update_missingdata(P, MD, S_bar, V, E_z, RO, c, Tr, mask, imsize, bbox, normdim,occlusion) % P_hat = mstep_update_missingdata(P, MD, S_bar, V, E_z, RO, Tr) % Fills in missing data using Eq 25 %% lambda is fraction with with missing points move towards silhouette params = get_params(); lambda = ...
github
akar43/CategoryShapes-master
findG.m
.m
CategoryShapes-master/nrsfm/findG.m
1,197
utf_8
39dd4e65cb175db8dccf5296d42e8624
function G = findG(Rhat) [F,D] = size(Rhat); F = F/2; % Build matrix Q such that Q * v = [1,...,1,0,...,0] where v is a six % element vector containg all six distinct elements of the Matrix C %clear Q for f = 1:F, g = f + F; h = g + F; Q(f,:) = zt2(Rhat(f,:), Rhat(f,:)); Q(g,:) = zt2(Rhat(g,:), Rhat(g,:)); ...
github
akar43/CategoryShapes-master
visualizeDEM.m
.m
CategoryShapes-master/external/SIRFS/visualizeDEM.m
2,246
UNKNOWN
04953ad8289b90c0ee4587128d9eb6d3
% Copyright �2013. The Regents of the University of California (Regents). % All Rights Reserved. Permission to use, copy, modify, and distribute % this software and its documentation for educational, research, and % not-for-profit purposes, without fee and without a signed licensing % agreement, is hereby granted, prov...
github
akar43/CategoryShapes-master
SIRFS.m
.m
CategoryShapes-master/external/SIRFS/SIRFS.m
4,728
UNKNOWN
6d031d1f9f05afee64ea4cb2a3813e38
% Copyright �2013. The Regents of the University of California (Regents). % All Rights Reserved. Permission to use, copy, modify, and distribute % this software and its documentation for educational, research, and % not-for-profit purposes, without fee and without a signed licensing % agreement, is hereby granted, prov...
github
akar43/CategoryShapes-master
WolfeLineSearch.m
.m
CategoryShapes-master/external/SIRFS/minFunc_2012/WolfeLineSearch.m
11,327
utf_8
66f4aeec6de03856f49e25fece755d53
function [t,f_new,g_new,funEvals,H] = WolfeLineSearch(... x,t,d,f,g,gtd,c1,c2,LS_interp,LS_multi,maxLS,progTol,debug,doPlot,saveHessianComp,numDiff,funObj,options,varargin) % % Bracketing Line Search to Satisfy Wolfe Conditions % % Inputs: % x: starting location % t: initial step size % d: descent direction %...
github
akar43/CategoryShapes-master
minFunc_processInputOptions.m
.m
CategoryShapes-master/external/SIRFS/minFunc_2012/minFunc_processInputOptions.m
4,086
utf_8
43b37f918849f042bad8ae63ef1d7922
function [verbose,verboseI,debug,doPlot,maxFunEvals,maxIter,optTol,progTol,method,... corrections,c1,c2,LS_init,cgSolve,qnUpdate,cgUpdate,initialHessType,... HessianModify,Fref,useComplex,numDiff,LS_saveHessianComp,... Damped,HvFunc,bbType,cycle,... HessianIter,outputFcn,useMex,useNegCurv,precFunc,... ...
github
akar43/CategoryShapes-master
makeMontage.m
.m
CategoryShapes-master/visualize/makeMontage.m
1,604
utf_8
b71acc6f31ee100af674940c11996c06
function [Im, ImAll] = makeMontage(Is, W, H, sc) % Given a set of images in Is, sort them by the aspect ratio, and then % ppaste them into a series of images... for i = 1:length(Is), h(i) = size(Is{i},1); w(i) = size(Is{i},2); Is{i} = imresize(Is{i}, sc); end asp = h./w; [~, ind] = sort(h, 'ascend'...
github
akar43/CategoryShapes-master
vis_PSIRFS.m
.m
CategoryShapes-master/visualize/vis_PSIRFS.m
1,037
utf_8
dd8fb8db8fe117a885236ab9ff5f8521
function vis_PSIRFS(state,pad) if(nargin<2) pad = 25; end mask3 = ~repmat(state.mask,[1,1,3]); bbox = mask2bbox(state.mask); Iv = state.im; Iv(mask3) = 0; Zv = state.height; Zv(~state.mask) = NaN; Zbak = Zv; Zv = visualizeDEM(Zv); Zv(mask3) = 0; Nv = visualizeNormals_color(state.normal); Nv(mask3) = 0; Rv = stat...
github
akar43/CategoryShapes-master
distinguishable_colors.m
.m
CategoryShapes-master/visualize/distinguishable_colors.m
5,753
utf_8
57960cf5d13cead2f1e291d1288bccb2
function colors = distinguishable_colors(n_colors,bg,func) % DISTINGUISHABLE_COLORS: pick colors that are maximally perceptually distinct % % When plotting a set of lines, you may want to distinguish them by color. % By default, Matlab chooses a small set of colors and cycles among them, % and so if you have more than ...
github
Sable/matjuice-master
dirich.m
.m
matjuice-master/new-benchmarks/dich/dirich.m
2,202
utf_8
bf32ade6b8d0f34bd65bd5fac092e9f1
function U=dirich(f1, f2, f3, f4, a, b, h, tol, max1) %----------------------------------------------------------------------- % % This function M-file finds the Dirichlet solution to % Laplace's equation % % u (x, y)+u (x, y)=0, % xx yy % % with the boundary conditions % % u(x, 0)=f1, u(x, b)=f2 for all 0 ...
github
Sable/matjuice-master
closure.m
.m
matjuice-master/new-benchmarks/clos/closure.m
1,160
utf_8
e4f97139f3281a2b9a79bbc3c5da7708
function B1=closure(N) %----------------------------------------------------------------------- % % This function M-file computes the transitive closure of a % directed graph. An adjacency matrix representation of the % directed graph is used, which is initialized arbitrarily. % % Invocation: % >> [t2, B]=closure(N) ...
github
Sable/matjuice-master
nbody1d.m
.m
matjuice-master/new-benchmarks/nb1d/nbody1d.m
2,506
utf_8
30a85ed17966fa863efbc91ec19a1840
function [Fx, Fy, Fz, Vx, Vy, Vz]=nbody1d(n, Rx, Ry, Rz, m, dT, T) %----------------------------------------------------------------------- % % This function M-file simulates the gravitational movement % of a set of objects. % % Invocation: % >> [Fx, Fy, Fz, Vx, Vy, Vz]=... % nbody1d(n, Rx, Ry, Rz, m, dT, T) % % ...
github
Sable/matjuice-master
gauss.m
.m
matjuice-master/new-benchmarks/capr/gauss.m
829
utf_8
f667cddea4d15323caf05c4c52795b6b
function cap=gauss(n, m, h, f) %----------------------------------------------------------------------- % % This function M-file computes capacitance from the % potential. % % Invocation: % >> cap=gauss(n, m, h, f) % % where % % i. n is the number of points along the x-axis, % % i. m is the number of points along ...
github
Sable/matjuice-master
capacitor.m
.m
matjuice-master/new-benchmarks/capr/capacitor.m
1,420
utf_8
ff5bd4dd8d7a6cbbd6f10411983f6442
function cap=capacitor(a, b, c, d, n, tol, rel) %----------------------------------------------------------------------- % % This function M-file computes the capacitance % per unit length of a coaxial pair of rectangles. % % Invocation: % >> cap=capacitor(a, b, c, d, n, tol, rel) % % where % % i. a is the width of...
github
Sable/matjuice-master
seidel.m
.m
matjuice-master/new-benchmarks/capr/seidel.m
1,352
utf_8
e5ea0e9d952998657a18ca064d5bd9e4
function f=seidel(f, mask, n, m, na, mb) %----------------------------------------------------------------------- % % This function M-file makes one Seidel iteration. % % Invocation: % >> g=seidel(f, mask, n, m, na, mb) % % where % % i. f is the potential array, % % i. mask is the mask array, % % i. n is the numb...
github
Sable/matjuice-master
linspace.m
.m
matjuice-master/new-benchmarks/capr/linspace.m
478
utf_8
854dae2aac100b36615cc815e360fd34
function y=linspace(d1, d2, n) %----------------------------------------------------------------------- %LINSPACE Linearly spaced vector. % LINSPACE(x1, x2) generates a row vector of n linearly % equally spaced points between x1 and x2. % % See also LOGSPACE, :. % % Copyright 1984-2001 The MathWorks, Inc. % ...
github
Sable/matjuice-master
fdtd.m
.m
matjuice-master/new-benchmarks/fdtd/fdtd.m
3,052
utf_8
dde0342cc0f771df30faf4225a0f005a
function [Ex, Ey, Ez, Hx, Hy, Hz, Ets]=fdtd(Lx, Ly, Lz, ... Nx, Ny, Nz, nrm, Nt) %----------------------------------------------------------------------- % % This function M-file applies the Finite Difference % Time Domain (FDTD) technique on a hexahedral cavity % with conducting walls. FDTD is a powerful tool f...
github
Sable/matjuice-master
tridiagonal.m
.m
matjuice-master/new-benchmarks/crni/tridiagonal.m
1,272
utf_8
cd6464a7c44596479586efde648417a2
function X=tridiagonal(A, D, C, B, n) %----------------------------------------------------------------------- % % This function M-file finds the solution of a tridiagonal % linear system. It is assumed that D and B have dimension % n, and that A and C have dimension n-1. % % Invocation: % >> X=tridiagonal(A, D, C, B...
github
Sable/matjuice-master
crnich.m
.m
matjuice-master/new-benchmarks/crni/crnich.m
2,489
utf_8
f2c2d716272dbc0480acb2cf3f0a869e
function U=crnich(a, b, c, n, m) %----------------------------------------------------------------------- % % This function M-file finds the Crank-Nicholson solution % to the one-dimensional heat equation % % 2 % u (x, t)=c u (x, t). % t xx % % The function u(x, t) denotes the temperature in a % one...
github
Sable/matjuice-master
finediff.m
.m
matjuice-master/new-benchmarks/fiff/finediff.m
1,813
utf_8
7a608d96b8c621f35df9e06ddf94e3e5
function U=finediff(a, b, c, n, m) %----------------------------------------------------------------------- % % This function M-file finds the finite-difference solution % to the wave equation % % 2 % u (x, t)=c u (x, t), % tt xx % % with the boundary conditions % % u(0, t)=0, u(a, t)=0 for all 0 <...
github
Sable/matjuice-master
diffraction.m
.m
matjuice-master/benchmarks/diff/diffraction.m
2,751
utf_8
3aad76db8e1d463a3a2747c463c9a071
function mag=diffraction(CELLS, SLITSIZE1, SLITSIZE2, T1, T2) %----------------------------------------------------------------------- % % This function M-file calculates the diffraction pattern of % monochromatic light through a transmission grating for % arbitrary slit sizes and slit transmission coefficients. % % T...