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 | christiannkoch/CATANA-master | detect_face_v1.m | .m | CATANA-master/src/face_recognition/facenet/tmp/detect_face_v1.m | 7,954 | utf_8 | 678c2105b8d536f8bbe08d3363b69642 | % MIT License
%
% Copyright (c) 2016 Kaipeng Zhang
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, mer... |
github | christiannkoch/CATANA-master | detect_face_v2.m | .m | CATANA-master/src/face_recognition/facenet/tmp/detect_face_v2.m | 9,016 | utf_8 | 0c963a91d4e52c98604dd6ca7a99d837 | % MIT License
%
% Copyright (c) 2016 Kaipeng Zhang
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, mer... |
github | optimaltransport/optimaltransport.github.io-master | load_image.m | .m | optimaltransport.github.io-master/_site/code/toolbox/load_image.m | 19,798 | utf_8 | df61d87c209e587d6199fa36bbe979bf | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'l... |
github | optimaltransport/optimaltransport.github.io-master | Hungarian.m | .m | optimaltransport.github.io-master/_site/code/toolbox/Hungarian.m | 9,328 | utf_8 | 51e60bc9f1f362bfdc0b4f6d67c44e80 | function [Matching,Cost] = Hungarian(Perf)
%
% [MATCHING,COST] = Hungarian_New(WEIGHTS)
%
% A function for finding a minimum edge weight matching given a MxN Edge
% weight matrix WEIGHTS using the Hungarian Algorithm.
%
% An edge weight of Inf indicates that the pair of vertices given by its
% position have no... |
github | optimaltransport/optimaltransport.github.io-master | imageplot.m | .m | optimaltransport.github.io-master/_site/code/toolbox/imageplot.m | 2,996 | utf_8 | bb6359ff3ad5e82264a744d41ba24582 | function h1 = imageplot(M,str, a,b,c)
% imageplot - diplay an image and a title
%
% Example of usages:
% imageplot(M);
% imageplot(M,title);
% imageplot(M,title,1,2,1); % to make subplot(1,2,1);
%
% imageplot(M,options);
%
% If you want to display several images:
% imageplot({M1 M2}, {'title1', 'titl... |
github | optimaltransport/optimaltransport.github.io-master | pdftops.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/pdftops.m | 6,161 | utf_8 | 5edac4bbbdae30223cb246a4ec7313d6 | function varargout = pdftops(cmd)
%PDFTOPS Calls a local pdftops executable with the input command
%
% Example:
% [status result] = pdftops(cmd)
%
% Attempts to locate a pdftops executable, finally asking the user to
% specify the directory pdftops was installed into. The resulting path is
% stored for futur... |
github | optimaltransport/optimaltransport.github.io-master | crop_borders.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/crop_borders.m | 5,133 | utf_8 | b744bf935914cfa6d9ff82140b48291e | function [A, vA, vB, bb_rel] = crop_borders(A, bcol, padding, crop_amounts)
%CROP_BORDERS Crop the borders of an image or stack of images
%
% [B, vA, vB, bb_rel] = crop_borders(A, bcol, [padding])
%
%IN:
% A - HxWxCxN stack of images.
% bcol - Cx1 background colour vector.
% padding - scalar indicating ... |
github | optimaltransport/optimaltransport.github.io-master | isolate_axes.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/isolate_axes.m | 4,851 | utf_8 | 611d9727e84ad6ba76dcb3543434d0ce | function fh = isolate_axes(ah, vis)
%ISOLATE_AXES Isolate the specified axes in a figure on their own
%
% Examples:
% fh = isolate_axes(ah)
% fh = isolate_axes(ah, vis)
%
% This function will create a new figure containing the axes/uipanels
% specified, and also their associated legends and colorbars. The o... |
github | optimaltransport/optimaltransport.github.io-master | im2gif.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/im2gif.m | 6,234 | utf_8 | 8ee74d7d94e524410788276aa41dd5f1 | %IM2GIF Convert a multiframe image to an animated GIF file
%
% Examples:
% im2gif infile
% im2gif infile outfile
% im2gif(A, outfile)
% im2gif(..., '-nocrop')
% im2gif(..., '-nodither')
% im2gif(..., '-ncolors', n)
% im2gif(..., '-loops', n)
% im2gif(..., '-delay', n)
%
% This function c... |
github | optimaltransport/optimaltransport.github.io-master | read_write_entire_textfile.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/read_write_entire_textfile.m | 961 | utf_8 | 775aa1f538c76516c7fb406a4f129320 | %READ_WRITE_ENTIRE_TEXTFILE Read or write a whole text file to/from memory
%
% Read or write an entire text file to/from memory, without leaving the
% file open if an error occurs.
%
% Reading:
% fstrm = read_write_entire_textfile(fname)
% Writing:
% read_write_entire_textfile(fname, fstrm)
%
%IN:
% fn... |
github | optimaltransport/optimaltransport.github.io-master | pdf2eps.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/pdf2eps.m | 1,522 | utf_8 | 4c8f0603619234278ed413670d24bdb6 | %PDF2EPS Convert a pdf file to eps format using pdftops
%
% Examples:
% pdf2eps source dest
%
% This function converts a pdf file to eps format.
%
% This function requires that you have pdftops, from the Xpdf suite of
% functions, installed on your system. This can be downloaded from:
% http://www.foolabs.c... |
github | optimaltransport/optimaltransport.github.io-master | print2array.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/print2array.m | 10,376 | utf_8 | a2022c32ae3efa6007a326692227bd39 | function [A, bcol] = print2array(fig, res, renderer, gs_options)
%PRINT2ARRAY Exports a figure to an image array
%
% Examples:
% A = print2array
% A = print2array(figure_handle)
% A = print2array(figure_handle, resolution)
% A = print2array(figure_handle, resolution, renderer)
% A = print2array(figur... |
github | optimaltransport/optimaltransport.github.io-master | append_pdfs.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/append_pdfs.m | 2,759 | utf_8 | 9b52be41aff48bea6f27992396900640 | %APPEND_PDFS Appends/concatenates multiple PDF files
%
% Example:
% append_pdfs(output, input1, input2, ...)
% append_pdfs(output, input_list{:})
% append_pdfs test.pdf temp1.pdf temp2.pdf
%
% This function appends multiple PDF files to an existing PDF file, or
% concatenates them into a PDF file if the o... |
github | optimaltransport/optimaltransport.github.io-master | using_hg2.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/using_hg2.m | 1,100 | utf_8 | 47ca10d86740c27b9f6b397373ae16cd | %USING_HG2 Determine if the HG2 graphics engine is used
%
% tf = using_hg2(fig)
%
%IN:
% fig - handle to the figure in question.
%
%OUT:
% tf - boolean indicating whether the HG2 graphics engine is being used
% (true) or not (false).
% 19/06/2015 - Suppress warning in R2015b; cache result for i... |
github | optimaltransport/optimaltransport.github.io-master | eps2pdf.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/eps2pdf.m | 8,793 | utf_8 | 474e976cf6454d5d7850baf14494fedf | function eps2pdf(source, dest, crop, append, gray, quality, gs_options)
%EPS2PDF Convert an eps file to pdf format using ghostscript
%
% Examples:
% eps2pdf source dest
% eps2pdf(source, dest, crop)
% eps2pdf(source, dest, crop, append)
% eps2pdf(source, dest, crop, append, gray)
% eps2pdf(source, de... |
github | optimaltransport/optimaltransport.github.io-master | ghostscript.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/ghostscript.m | 7,902 | utf_8 | ff62a40d651197dbea5d3c39998b3bad | function varargout = ghostscript(cmd)
%GHOSTSCRIPT Calls a local GhostScript executable with the input command
%
% Example:
% [status result] = ghostscript(cmd)
%
% Attempts to locate a ghostscript executable, finally asking the user to
% specify the directory ghostcript was installed into. The resulting path... |
github | optimaltransport/optimaltransport.github.io-master | fix_lines.m | .m | optimaltransport.github.io-master/_site/code/toolbox/export_fig/fix_lines.m | 6,441 | utf_8 | ffda929ebad8144b1e72d528fa5d9460 | %FIX_LINES Improves the line style of eps files generated by print
%
% Examples:
% fix_lines fname
% fix_lines fname fname2
% fstrm_out = fixlines(fstrm_in)
%
% This function improves the style of lines in eps files generated by
% MATLAB's print function, making them more similar to those seen on
% scre... |
github | optimaltransport/optimaltransport.github.io-master | nbECGM.m | .m | optimaltransport.github.io-master/_site/code/toolbox/toolbox-lsap/nbECGM.m | 737 | utf_8 | 12c013e9e8fa1ded80b1fdb944a77e4f | % -----------------------------------------------------------
% file: nbECGM.m
% -----------------------------------------------------------
% authors: Sebastien Bougleux (UNICAEN) and Luc Brun (ENSICAEN)
% institution: Normandie Univ, CNRS - ENSICAEN - UNICAEN, GREYC UMR 6072
% ---------------------------------------... |
github | optimaltransport/optimaltransport.github.io-master | clip_polygons.m | .m | optimaltransport.github.io-master/_site/code/semi-discrete/power_bounded/clip_polygons.m | 5,541 | utf_8 | 592aa9651423258f116f55eb000f0f9d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This function is to clip 2 polygons with at least one of them is convex.
% The algorithm uses Sutherland-Hodgman algorithm.
% Conditions:
% * The clipping polygon must be convex and the subject polygon can be non-convex.
% * All coo... |
github | optimaltransport/optimaltransport.github.io-master | power_bounded.m | .m | optimaltransport.github.io-master/_site/code/semi-discrete/power_bounded/power_bounded.m | 3,177 | utf_8 | 99a86a17bcfa7985a83c06b198ec3d17 | % POWER_BOUNDED computes the power cells about the points (x,y) inside
% the bounding box (must be a rectangle or a square) crs. If crs is not supplied, an
% axis-aligned box containing (x,y) is used.
% It is optimised to work fast on large number of sites (e.g. 10000 sites or more)
% Input:
% * x, y: coordinat... |
github | optimaltransport/optimaltransport.github.io-master | powerDiagram2.m | .m | optimaltransport.github.io-master/_site/code/semi-discrete/power_bounded/powerDiagram2.m | 3,501 | utf_8 | 71c539ee242af8fdf9cc6868db097d8a | % This function obtains the power diagram specified by sites E with weights wts.
% It is optimised to work fast on large number of sites (e.g. 10000 sites or more).
% Only works for 2 dimensions.
% Input:
% * E: a matrix that specifies the sites coordinates (Npts x 2)
% * wts: a column vector that specifies th... |
github | optimaltransport/optimaltransport.github.io-master | load_image.m | .m | optimaltransport.github.io-master/code/toolbox/load_image.m | 19,798 | utf_8 | df61d87c209e587d6199fa36bbe979bf | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'l... |
github | optimaltransport/optimaltransport.github.io-master | Hungarian.m | .m | optimaltransport.github.io-master/code/toolbox/Hungarian.m | 9,328 | utf_8 | 51e60bc9f1f362bfdc0b4f6d67c44e80 | function [Matching,Cost] = Hungarian(Perf)
%
% [MATCHING,COST] = Hungarian_New(WEIGHTS)
%
% A function for finding a minimum edge weight matching given a MxN Edge
% weight matrix WEIGHTS using the Hungarian Algorithm.
%
% An edge weight of Inf indicates that the pair of vertices given by its
% position have no... |
github | optimaltransport/optimaltransport.github.io-master | imageplot.m | .m | optimaltransport.github.io-master/code/toolbox/imageplot.m | 2,996 | utf_8 | bb6359ff3ad5e82264a744d41ba24582 | function h1 = imageplot(M,str, a,b,c)
% imageplot - diplay an image and a title
%
% Example of usages:
% imageplot(M);
% imageplot(M,title);
% imageplot(M,title,1,2,1); % to make subplot(1,2,1);
%
% imageplot(M,options);
%
% If you want to display several images:
% imageplot({M1 M2}, {'title1', 'titl... |
github | optimaltransport/optimaltransport.github.io-master | pdftops.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/pdftops.m | 6,161 | utf_8 | 5edac4bbbdae30223cb246a4ec7313d6 | function varargout = pdftops(cmd)
%PDFTOPS Calls a local pdftops executable with the input command
%
% Example:
% [status result] = pdftops(cmd)
%
% Attempts to locate a pdftops executable, finally asking the user to
% specify the directory pdftops was installed into. The resulting path is
% stored for futur... |
github | optimaltransport/optimaltransport.github.io-master | crop_borders.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/crop_borders.m | 5,133 | utf_8 | b744bf935914cfa6d9ff82140b48291e | function [A, vA, vB, bb_rel] = crop_borders(A, bcol, padding, crop_amounts)
%CROP_BORDERS Crop the borders of an image or stack of images
%
% [B, vA, vB, bb_rel] = crop_borders(A, bcol, [padding])
%
%IN:
% A - HxWxCxN stack of images.
% bcol - Cx1 background colour vector.
% padding - scalar indicating ... |
github | optimaltransport/optimaltransport.github.io-master | isolate_axes.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/isolate_axes.m | 4,851 | utf_8 | 611d9727e84ad6ba76dcb3543434d0ce | function fh = isolate_axes(ah, vis)
%ISOLATE_AXES Isolate the specified axes in a figure on their own
%
% Examples:
% fh = isolate_axes(ah)
% fh = isolate_axes(ah, vis)
%
% This function will create a new figure containing the axes/uipanels
% specified, and also their associated legends and colorbars. The o... |
github | optimaltransport/optimaltransport.github.io-master | im2gif.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/im2gif.m | 6,234 | utf_8 | 8ee74d7d94e524410788276aa41dd5f1 | %IM2GIF Convert a multiframe image to an animated GIF file
%
% Examples:
% im2gif infile
% im2gif infile outfile
% im2gif(A, outfile)
% im2gif(..., '-nocrop')
% im2gif(..., '-nodither')
% im2gif(..., '-ncolors', n)
% im2gif(..., '-loops', n)
% im2gif(..., '-delay', n)
%
% This function c... |
github | optimaltransport/optimaltransport.github.io-master | read_write_entire_textfile.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/read_write_entire_textfile.m | 961 | utf_8 | 775aa1f538c76516c7fb406a4f129320 | %READ_WRITE_ENTIRE_TEXTFILE Read or write a whole text file to/from memory
%
% Read or write an entire text file to/from memory, without leaving the
% file open if an error occurs.
%
% Reading:
% fstrm = read_write_entire_textfile(fname)
% Writing:
% read_write_entire_textfile(fname, fstrm)
%
%IN:
% fn... |
github | optimaltransport/optimaltransport.github.io-master | pdf2eps.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/pdf2eps.m | 1,522 | utf_8 | 4c8f0603619234278ed413670d24bdb6 | %PDF2EPS Convert a pdf file to eps format using pdftops
%
% Examples:
% pdf2eps source dest
%
% This function converts a pdf file to eps format.
%
% This function requires that you have pdftops, from the Xpdf suite of
% functions, installed on your system. This can be downloaded from:
% http://www.foolabs.c... |
github | optimaltransport/optimaltransport.github.io-master | print2array.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/print2array.m | 10,376 | utf_8 | a2022c32ae3efa6007a326692227bd39 | function [A, bcol] = print2array(fig, res, renderer, gs_options)
%PRINT2ARRAY Exports a figure to an image array
%
% Examples:
% A = print2array
% A = print2array(figure_handle)
% A = print2array(figure_handle, resolution)
% A = print2array(figure_handle, resolution, renderer)
% A = print2array(figur... |
github | optimaltransport/optimaltransport.github.io-master | append_pdfs.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/append_pdfs.m | 2,759 | utf_8 | 9b52be41aff48bea6f27992396900640 | %APPEND_PDFS Appends/concatenates multiple PDF files
%
% Example:
% append_pdfs(output, input1, input2, ...)
% append_pdfs(output, input_list{:})
% append_pdfs test.pdf temp1.pdf temp2.pdf
%
% This function appends multiple PDF files to an existing PDF file, or
% concatenates them into a PDF file if the o... |
github | optimaltransport/optimaltransport.github.io-master | using_hg2.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/using_hg2.m | 1,100 | utf_8 | 47ca10d86740c27b9f6b397373ae16cd | %USING_HG2 Determine if the HG2 graphics engine is used
%
% tf = using_hg2(fig)
%
%IN:
% fig - handle to the figure in question.
%
%OUT:
% tf - boolean indicating whether the HG2 graphics engine is being used
% (true) or not (false).
% 19/06/2015 - Suppress warning in R2015b; cache result for i... |
github | optimaltransport/optimaltransport.github.io-master | eps2pdf.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/eps2pdf.m | 8,793 | utf_8 | 474e976cf6454d5d7850baf14494fedf | function eps2pdf(source, dest, crop, append, gray, quality, gs_options)
%EPS2PDF Convert an eps file to pdf format using ghostscript
%
% Examples:
% eps2pdf source dest
% eps2pdf(source, dest, crop)
% eps2pdf(source, dest, crop, append)
% eps2pdf(source, dest, crop, append, gray)
% eps2pdf(source, de... |
github | optimaltransport/optimaltransport.github.io-master | ghostscript.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/ghostscript.m | 7,902 | utf_8 | ff62a40d651197dbea5d3c39998b3bad | function varargout = ghostscript(cmd)
%GHOSTSCRIPT Calls a local GhostScript executable with the input command
%
% Example:
% [status result] = ghostscript(cmd)
%
% Attempts to locate a ghostscript executable, finally asking the user to
% specify the directory ghostcript was installed into. The resulting path... |
github | optimaltransport/optimaltransport.github.io-master | fix_lines.m | .m | optimaltransport.github.io-master/code/toolbox/export_fig/fix_lines.m | 6,441 | utf_8 | ffda929ebad8144b1e72d528fa5d9460 | %FIX_LINES Improves the line style of eps files generated by print
%
% Examples:
% fix_lines fname
% fix_lines fname fname2
% fstrm_out = fixlines(fstrm_in)
%
% This function improves the style of lines in eps files generated by
% MATLAB's print function, making them more similar to those seen on
% scre... |
github | optimaltransport/optimaltransport.github.io-master | nbECGM.m | .m | optimaltransport.github.io-master/code/toolbox/toolbox-lsap/nbECGM.m | 737 | utf_8 | 12c013e9e8fa1ded80b1fdb944a77e4f | % -----------------------------------------------------------
% file: nbECGM.m
% -----------------------------------------------------------
% authors: Sebastien Bougleux (UNICAEN) and Luc Brun (ENSICAEN)
% institution: Normandie Univ, CNRS - ENSICAEN - UNICAEN, GREYC UMR 6072
% ---------------------------------------... |
github | optimaltransport/optimaltransport.github.io-master | distinguishable_colors.m | .m | optimaltransport.github.io-master/code/semi-discrete-sgd/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 | optimaltransport/optimaltransport.github.io-master | clip_polygons.m | .m | optimaltransport.github.io-master/code/semi-discrete/power_bounded/clip_polygons.m | 5,541 | utf_8 | 592aa9651423258f116f55eb000f0f9d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This function is to clip 2 polygons with at least one of them is convex.
% The algorithm uses Sutherland-Hodgman algorithm.
% Conditions:
% * The clipping polygon must be convex and the subject polygon can be non-convex.
% * All coo... |
github | optimaltransport/optimaltransport.github.io-master | power_bounded.m | .m | optimaltransport.github.io-master/code/semi-discrete/power_bounded/power_bounded.m | 3,177 | utf_8 | 99a86a17bcfa7985a83c06b198ec3d17 | % POWER_BOUNDED computes the power cells about the points (x,y) inside
% the bounding box (must be a rectangle or a square) crs. If crs is not supplied, an
% axis-aligned box containing (x,y) is used.
% It is optimised to work fast on large number of sites (e.g. 10000 sites or more)
% Input:
% * x, y: coordinat... |
github | optimaltransport/optimaltransport.github.io-master | powerDiagram2.m | .m | optimaltransport.github.io-master/code/semi-discrete/power_bounded/powerDiagram2.m | 3,501 | utf_8 | 71c539ee242af8fdf9cc6868db097d8a | % This function obtains the power diagram specified by sites E with weights wts.
% It is optimised to work fast on large number of sites (e.g. 10000 sites or more).
% Only works for 2 dimensions.
% Input:
% * E: a matrix that specifies the sites coordinates (Npts x 2)
% * wts: a column vector that specifies th... |
github | leopoldofr/swarmdrones-master | main.m | .m | swarmdrones-master/main.m | 12,129 | utf_8 | 0e6858631559d3f7cf39ffdfc5f131fc | % ### Program to simulate drone swarm moving together according to Javier
% Alonso-Mora et al's algorithm
% (https://web.stanford.edu/~schwager/MyPapers/Alonso-MoraEtAlICRA16FormationNavigation.pdf)
% ### Warning:
% - On an unix computer (my distrib is Linux Mint) you must launch Matlab with the -softwareopengl option... |
github | leopoldofr/swarmdrones-master | plotpoly.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/plotpoly.m | 3,247 | utf_8 | bbba5c5246510a7ee12e7e9c69f1d147 | %PLOTPOLY plot 2-D projection of N-D polytope
% PLOTPOLY(M) projects a matrix of vertices into a 2-D shadow of edges
% PLOTPOLY(M, 'infinity') projects from infinity (default)
% PLOTPOLY(M, 'nearby') projects from a closer point in space
% PLOTPOLY(M, 'tumble') tumbles randomly and projects from infinity
%... |
github | leopoldofr/swarmdrones-master | buckytumble.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/buckytumble.m | 2,568 | utf_8 | f58c2ec254562217c75a4f0ee5b19720 | %BUCKYTUMBLE shows tumbling Bucky Ball
% BUCKYTUMBLE -- display the Bucky Ball, slowly tumbling in space
%
% Bill McKeeman
function buckytumble
gr = (1+sqrt(5))/2; % golden ration
d = @(a,b) a + b*gr; % vertex function
bb = perms(... % Bucky Ba... |
github | leopoldofr/swarmdrones-master | ndrotate.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/ndrotate.m | 833 | utf_8 | 01659156846c852569c78ba42571de04 | %NDROTATE rotate cartesian coordinates in N-D space
% NDROTATE(M) builds a rotation matrix from a matrix of angles.
% M(i,j) is the i-to-j rotation angle (radians)
% M(i,i) is ignored.
% Examples:
% ndrotate([0, pi/6]) is
% 0.8660 -0.5000
% 0.5000 0.8660
% ndrotate([0, pi/6; pi/4, 0]... |
github | leopoldofr/swarmdrones-master | faces.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/faces.m | 972 | utf_8 | 15c7cfd5c14ee3f15645e675c7ff3bb2 | %FACES find the faces defined by angles
% FACES(A) finds the plane equations
% Angles are triple of vertices.
% The three points are used to compute the linear plane equation
% Roundoff is removed by picking a representative value for each.
% Multiple solutions are singled up by unique('rows')
%
func... |
github | leopoldofr/swarmdrones-master | angles.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/angles.m | 262 | utf_8 | 64650015f8c3a1b4451b9ba640b22f07 | %ANGLES find the angles of an edge set
% ANGLES(E) finds vertex triples
%
function a = angles(e)
m = size(e,1);
a = [];
for i=1:m
for j=i+1:m
t = unique([e(i,:), e(j,:)]);
if numel(t)==3; a(end+1,:) = t; end
end
end
|
github | leopoldofr/swarmdrones-master | nedge.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/nedge.m | 183 | utf_8 | 846d9345b6f607687f267b25f000dc59 | %NEDGE counts the edges of a polytope
% NEDGE(M) finds the closest vertices, then reports all pairs at
% this distance.
function ect = nedge(p)
ect = size(edges(p),1);
|
github | leopoldofr/swarmdrones-master | tumble.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/tumble.m | 2,350 | utf_8 | f9cf85ac5ce1add1dbd1740c414b5563 | %BUCKYTUMBLE shows tumbling Bucky Ball
% BUCKYTUMBLE -- display the Bucky Ball, slowly tumbling in space
%
% Bill McKeeman
function buckytumble
gr = (1+sqrt(5))/2; % golden ration
d = @(a,b) a + b*gr; % vertex function
bg = .8*[1 1 1]; % background... |
github | leopoldofr/swarmdrones-master | edges.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/edges.m | 541 | utf_8 | 109266fddb2008ce2d5f0d99156d9cf3 | %EDGES find the edges of a vertex set
% EDGES(M) finds the closest vertices, then reports all pairs at
% this distance.
function [s,f] = edges(p)
m = size(p,1);
d = inf(m); % distance matrix
for i=1:m
for j=i+1:m
seg = p(i,:)-p(j,:); % vertex pairs
... |
github | leopoldofr/swarmdrones-master | nface.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/nface.m | 171 | utf_8 | fbb71132c1dc1621fb92052ab2a86da2 | %NFACE counts the faces of a polyhedron
% NFACE(M) uses Euler's formula V-E+F=2
%
function fct = nface(p)
vct = size(p,1);
ect = nedge(p);
fct = ect-vct+2; |
github | leopoldofr/swarmdrones-master | perms.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/perms.m | 8,816 | utf_8 | a845fad56b4630d9a22cfc6a9f46ab79 | %PERMS all different permutations of matrix rows
% PERMS(M) extends mXn matrix M to one containing all permutations of
% values for each row.
% PERMS(M) gives all permutations (default).
%
% Flags:
% PERMS(M, 'even') gives even permutations.
% PERMS(M, 'odd') gives odd permutations.
%... |
github | leopoldofr/swarmdrones-master | vertices.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/vertices.m | 3,263 | utf_8 | 3d3d000bd078539847457004c69a2030 | % FILE: vertices.m
% PURPOSE: mXn array of vertices for named polytopes
% center on the origin with unit edge
% NAMES: nnntttt where nnn is the number of ttt is unambiguous
% name Schlafli popular
% 3edge s3 (triangle)
% 5edge s5 (pentagon)
% 4face s34 tetrahedron (start of simplex ser... |
github | leopoldofr/swarmdrones-master | polyhedron.m | .m | swarmdrones-master/Add-Ons/Collections/Polytopes/code/polyhedron.m | 2,042 | utf_8 | 095fc8fc1a38ab7565bd3a842b2d1306 | % FILE: polyhedron.m
% PURPOSE: general object representation of regular polytope
function poly = polyhedron(name);
TOL = 1.0E-6;
v = vertices(name);
dim = size(v, 2);
nv = size(v, 1); % vertex count
% edge-square matrix
d = zeros(nv);
for i=1:nv
for j=i+1:nv
ev = v(i,:... |
github | leopoldofr/swarmdrones-master | vert2lcon.m | .m | swarmdrones-master/Add-Ons/Collections/Analyze N-dimensional Polyhedra in terms of Vertices or (In)Equalities/code/vert2lcon.m | 5,797 | utf_8 | f6cb0590d7d8c589aae28abde08d3b9e | function [A,b,Aeq,beq]=vert2lcon(V,tol)
%An extension of Michael Kleder's vert2con function, used for finding the
%linear constraints defining a polyhedron in R^n given its vertices. This
%wrapper extends the capabilities of vert2con to also handle cases where the
%polyhedron is not solid in R^n, i.e., where the... |
github | leopoldofr/swarmdrones-master | lcon2vert.m | .m | swarmdrones-master/Add-Ons/Collections/Analyze N-dimensional Polyhedra in terms of Vertices or (In)Equalities/code/lcon2vert.m | 14,604 | utf_8 | 4cf3229f4ffd4ec8ca0d01178ba81e80 | function [V,nr,nre]=lcon2vert(A,b,Aeq,beq,TOL,checkbounds)
%An extension of Michael Kleder's con2vert function, used for finding the
%vertices of a bounded polyhedron in R^n, given its representation as a set
%of linear constraints. This wrapper extends the capabilities of con2vert to
%also handle cases where the ... |
github | leopoldofr/swarmdrones-master | meshSurfaceArea.m | .m | swarmdrones-master/Add-Ons/Toolboxes/geom3d/code/geom3d/meshes3d/meshSurfaceArea.m | 1,953 | utf_8 | 6c23f572f09acfe17fd0453564093469 | function area = meshSurfaceArea(vertices, edges, faces)
%MESHSURFACEAREA Surface area of a polyhedral mesh
%
% S = meshSurfaceArea(V, F)
% S = meshSurfaceArea(V, E, F)
% Computes the surface area of the mesh specified by vertex array V and
% face array F. Vertex array is a NV-by-3 array of coordinates.
... |
github | leopoldofr/swarmdrones-master | mergeCoplanarFaces.m | .m | swarmdrones-master/Add-Ons/Toolboxes/geom3d/code/geom3d/meshes3d/mergeCoplanarFaces.m | 10,111 | utf_8 | 28a4d5c9c038ed1d5250c1babe495a14 | function varargout = mergeCoplanarFaces(nodes, varargin)
%MERGECOPLANARFACES Merge coplanar faces of a polyhedral mesh
%
% [NODES FACES] = mergeCoplanarFaces(NODES, FACES)
% [NODES EDGES FACES] = mergeCoplanarFaces(NODES, EDGES, FACES)
% NODES is a set of 3D points (as a nNodes-by-3 array),
% and FACES is one ... |
github | leopoldofr/swarmdrones-master | demoRevolutionSurface.m | .m | swarmdrones-master/Add-Ons/Toolboxes/geom3d/code/geom3d/geom3d-demos/demoRevolutionSurface.m | 1,883 | utf_8 | ffbdd22c55d7d5c868fcf22051cb2842 | function demoRevolutionSurface(varargin)
%DEMOREVOLUTIONSURFACE One-line description here, please.
% output = demoRevolutionSurface(input)
%
% Example
% demoRevolutionSurface
%
% See also
%
% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% Created: 2007-04-20
% Copyright 2007 IN... |
github | carlassmith/exampleGLRT-master | multiWaitbar.m | .m | exampleGLRT-master/helperfunctions/trackHelpers/multiWaitbar.m | 26,088 | utf_8 | b93e10d7d04a7fba7d184cbf99dbe672 | function cancel = multiWaitbar( label, varargin )
%multiWaitbar: add, remove or update an entry on the multi waitbar
%
% multiWaitbar(LABEL,VALUE) adds a waitbar for the specified label, or
% if it already exists updates the value. LABEL must be a string and
% VALUE a number between zero and one or the string 'Cl... |
github | carlassmith/exampleGLRT-master | lapmember.m | .m | exampleGLRT-master/helperfunctions/trackHelpers/lapmember.m | 26,042 | utf_8 | 61ff74149cda5a1f98b332afcb7c34a1 | function varargout = lapmember(A,B,flag1,flag2)
%ISMEMBER True for set member.
% LIA = ISMEMBER(A,B) for arrays A and B returns an array of the same
% size as A containing true where the elements of A are in B and false
% otherwise.
%
% LIA = ISMEMBER(A,B,'rows') for matrices A and B with the same number
% of... |
github | carlassmith/exampleGLRT-master | transP.m | .m | exampleGLRT-master/helperfunctions/trackHelpers/transP.m | 7,905 | utf_8 | 3b8e285958fff26a629f85eef911fb28 |
function [ pTrans ] = transP(row,col,kon,koff,D,time,density,dist,probDim,LA1,LA2,rr,cc)
% function P supplies the transition probabilities as:
% P(1,1) s_{k-1}=0 s_k=0
% P(1,2) s_{k-1}=0 s_k=x_{k}
% P(2,1) s_{k-1}=x_{k-1} s_k=0
% P(2,2) s_{k-1}=x_{k-1} s_k=x_{k}
% Created by Carlas Smith June 2014 (UMASS/TU-DE... |
github | carlassmith/exampleGLRT-master | dipTrack.m | .m | exampleGLRT-master/helperfunctions/trackHelpers/HIVHelperfunctions/dipTrack.m | 20,864 | utf_8 | 6894bccb2ecddd85e657332e686dbde0 | function varargout = dipTrack(varargin)
% dipTrack dipimage tracking figure
%
% USAGE:
% h = dipTrack(options); %setup dipTrack figure
% h = dipTrack(fh); %setup listener for dipTrack figure
%
% INPUTS
% options: options structure. Use dipTrackSetOptions to set options.
% im - image (required)
% p... |
github | carlassmith/exampleGLRT-master | plotTracksV1.m | .m | exampleGLRT-master/helperfunctions/trackHelpers/HIVHelperfunctions/plotTracksV1.m | 32,380 | utf_8 | cf792a04c86a270fc04dc42f71113870 | function [h ha hp] = plotTracksV1(options)
% PLOTTRACKSV1 plot tracks using specified options
%
% h = plotTracksV1(options)
%
% INPUTS
% options - options structure with input options. See
% plotTracksSetOptions for more details.
% OUTPUTS
% h - figure handle
% ha - axes handle
% hp - patch handl... |
github | carlassmith/exampleGLRT-master | pdftops.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/pdftops.m | 3,077 | utf_8 | 8dff856e4b450072050d8aa571d1a08e | function varargout = pdftops(cmd)
%PDFTOPS Calls a local pdftops executable with the input command
%
% Example:
% [status result] = pdftops(cmd)
%
% Attempts to locate a pdftops executable, finally asking the user to
% specify the directory pdftops was installed into. The resulting path is
% stored for future refere... |
github | carlassmith/exampleGLRT-master | crop_borders.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/crop_borders.m | 1,669 | utf_8 | 725f526e7270a9b417300035d8748a9c | %CROP_BORDERS Crop the borders of an image or stack of images
%
% [B, v] = crop_borders(A, bcol, [padding])
%
%IN:
% A - HxWxCxN stack of images.
% bcol - Cx1 background colour vector.
% padding - scalar indicating how many pixels padding to have. Default: 0.
%
%OUT:
% B - JxKxCxN cropped stack of images.
% ... |
github | carlassmith/exampleGLRT-master | dipTrack.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/dipTrack.m | 18,958 | utf_8 | c7d59b2c657c8bfc11b3b6bccfb4fdbb | function varargout = dipTrack(varargin)
% dipTrack dipimage tracking figure
%
% USAGE:
% h = dipTrack(options); %setup dipTrack figure
% h = dipTrack(fh); %setup listener for dipTrack figure
%
if nargin > 2
error('dipTrack:ToManyInputs','dipTrack: 0 to 2 inputs required');
end
switch nargin
case 0
... |
github | carlassmith/exampleGLRT-master | plotTracksV1.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/plotTracksV1.m | 31,113 | utf_8 | 7a5e09d1acadaeab6f261a406503f75f | function [h ha hp] = plotTracksV1(options)
% PLOTTRACKSV1 plot tracks using specified options
%
% h = plotTracksV1(options)
%
% INPUTS
% options - options structure with input options. See
% plotTracksSetOptions for more details.
% OUTPUTS
% h - figure handle
% ha - axes handle
% hp - patch handl... |
github | carlassmith/exampleGLRT-master | isolate_axes.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/isolate_axes.m | 3,668 | utf_8 | e2dce471e433886fcb87f9dcb284a2cb | %ISOLATE_AXES Isolate the specified axes in a figure on their own
%
% Examples:
% fh = isolate_axes(ah)
% fh = isolate_axes(ah, vis)
%
% This function will create a new figure containing the axes/uipanels
% specified, and also their associated legends and colorbars. The objects
% specified must all be in the same f... |
github | carlassmith/exampleGLRT-master | im2gif.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/im2gif.m | 6,048 | utf_8 | 5a7437140f8d013158a195de1e372737 | %IM2GIF Convert a multiframe image to an animated GIF file
%
% Examples:
% im2gif infile
% im2gif infile outfile
% im2gif(A, outfile)
% im2gif(..., '-nocrop')
% im2gif(..., '-nodither')
% im2gif(..., '-ncolors', n)
% im2gif(..., '-loops', n)
% im2gif(..., '-delay', n)
%
% This function converts a mu... |
github | carlassmith/exampleGLRT-master | pdf2eps.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/pdf2eps.m | 1,471 | utf_8 | a1f41f0c7713c73886a2323e53ed982b | %PDF2EPS Convert a pdf file to eps format using pdftops
%
% Examples:
% pdf2eps source dest
%
% This function converts a pdf file to eps format.
%
% This function requires that you have pdftops, from the Xpdf suite of
% functions, installed on your system. This can be downloaded from:
% http://www.foolabs.com/xpdf ... |
github | carlassmith/exampleGLRT-master | print2array.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/print2array.m | 6,270 | utf_8 | a174d717616819281a17f51e1f6584c8 | %PRINT2ARRAY Exports a figure to an image array
%
% Examples:
% A = print2array
% A = print2array(figure_handle)
% A = print2array(figure_handle, resolution)
% A = print2array(figure_handle, resolution, renderer)
% [A bcol] = print2array(...)
%
% This function outputs a bitmap image of the given figure, at t... |
github | carlassmith/exampleGLRT-master | shadedPatchPlot.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/shadedPatchPlot.m | 2,226 | utf_8 | 545fe2fa24d52bd8308ec2d3eef5f7ec | function H=shadedPatchPlot(x,Q2,Q,lineProps,patchSaturation)
%shadedPatchPlot Creates DStorm Simlation
% SYNOPSIS:
% H=shadedPatchPlot(x,Q2,Q,lineProps,patchSaturation)
%
% PARAMETERS:
% x: x values
% Q2: main solid line (mean)
% Q: cell with patch values 2 vector with upper and lower value
% lineProps
% ... |
github | carlassmith/exampleGLRT-master | append_pdfs.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/append_pdfs.m | 2,010 | utf_8 | 1034abde9642693c404671ff1c693a22 | %APPEND_PDFS Appends/concatenates multiple PDF files
%
% Example:
% append_pdfs(output, input1, input2, ...)
% append_pdfs(output, input_list{:})
% append_pdfs test.pdf temp1.pdf temp2.pdf
%
% This function appends multiple PDF files to an existing PDF file, or
% concatenates them into a PDF file if the output fi... |
github | carlassmith/exampleGLRT-master | using_hg2.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/using_hg2.m | 365 | utf_8 | 6a7f56042fda1873d8225eb3ec1cc197 | %USING_HG2 Determine if the HG2 graphics pipeline is used
%
% tf = using_hg2(fig)
%
%IN:
% fig - handle to the figure in question.
%
%OUT:
% tf - boolean indicating whether the HG2 graphics pipeline is being used
% (true) or not (false).
function tf = using_hg2(fig)
try
tf = ~graphicsversion(fig, 'han... |
github | carlassmith/exampleGLRT-master | eps2pdf.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/eps2pdf.m | 5,009 | utf_8 | 5658b3d96232e138be7fd49693d88453 | %EPS2PDF Convert an eps file to pdf format using ghostscript
%
% Examples:
% eps2pdf source dest
% eps2pdf(source, dest, crop)
% eps2pdf(source, dest, crop, append)
% eps2pdf(source, dest, crop, append, gray)
% eps2pdf(source, dest, crop, append, gray, quality)
%
% This function converts an eps file to pdf f... |
github | carlassmith/exampleGLRT-master | copyfig.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/copyfig.m | 812 | utf_8 | b6b1fa9a9351df33ae0d42056c3df40a | %COPYFIG Create a copy of a figure, without changing the figure
%
% Examples:
% fh_new = copyfig(fh_old)
%
% This function will create a copy of a figure, but not change the figure,
% as copyobj sometimes does, e.g. by changing legends.
%
% IN:
% fh_old - The handle of the figure to be copied. Default: gcf.
%
% OU... |
github | carlassmith/exampleGLRT-master | user_string.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/user_string.m | 2,460 | utf_8 | e8aa836a5140410546fceccb4cca47aa | %USER_STRING Get/set a user specific string
%
% Examples:
% string = user_string(string_name)
% saved = user_string(string_name, new_string)
%
% Function to get and set a string in a system or user specific file. This
% enables, for example, system specific paths to binaries to be saved.
%
% IN:
% string_name - ... |
github | carlassmith/exampleGLRT-master | export_fig.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/export_fig.m | 29,068 | utf_8 | 82ef7090addd483cfc1ce8daa936c776 | %EXPORT_FIG Exports figures suitable for publication
%
% Examples:
% im = export_fig
% [im alpha] = export_fig
% export_fig filename
% export_fig filename -format1 -format2
% export_fig ... -nocrop
% export_fig ... -transparent
% export_fig ... -native
% export_fig ... -m<val>
% export_fig ... -r<val... |
github | carlassmith/exampleGLRT-master | ghostscript.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/ghostscript.m | 5,009 | utf_8 | e93de4034ac6e4ac154729dc2c12f725 | %GHOSTSCRIPT Calls a local GhostScript executable with the input command
%
% Example:
% [status result] = ghostscript(cmd)
%
% Attempts to locate a ghostscript executable, finally asking the user to
% specify the directory ghostcript was installed into. The resulting path
% is stored for future reference.
%
% Once ... |
github | carlassmith/exampleGLRT-master | dipSubLoc2D.m | .m | exampleGLRT-master/helperfunctions/plotHelpers/dipSubLoc2D.m | 6,485 | utf_8 | 51b0c2b3c02ec4b7b16d49c1ead9f4c7 | function varargout = dipSubLoc2D(varargin)
% dipSubLoc2D plot subregions and localizations
%
% USAGE:
% h = dipSubLoc2D(options); %setup dipSubLoc2D figure
% h = dipSubLoc2D(fh); %setup listener for dipSubLoc2D figure
%
% Peter UNM v1
% Carlas UMASSMED v2 (added matlab 2015 support)
if nargin > 2
error('... |
github | carlassmith/exampleGLRT-master | RWLSPoisson.m | .m | exampleGLRT-master/helperfunctions/pfo/RWLSPoisson.m | 1,477 | utf_8 | 72c16ac8a590ca49b790f80952f46bb2 | % [o,s]=RWLSPoisson(x,y,N) : Poisson Reweighted Least Square fit, linear regression with error according to the Poisson distribution. Fits a straight line with offset.
% x : vector of x-values, known postions at which was measured.
% y : vector y-values, measurements.
% N : optional number of measurements from which y... |
github | carlassmith/exampleGLRT-master | pcfo.m | .m | exampleGLRT-master/helperfunctions/pfo/pcfo.m | 4,565 | utf_8 | 32d4dd25edc6f2900744356aa2ff9e2b | % PCFO = Calculates the photon conversion factor as well as the ADU offset
% from one image only
%
% SYNOPSIS:
% [gain, offset] = pcfo(in, k_thres, RNStd, AvoidCross, doPlot, Tiles)
%
% k_thres: spatial frequencies k>k_thres are used for noise computation
% in the discrete Fourier domain.
% Possibl... |
github | carlassmith/exampleGLRT-master | noisevariance.m | .m | exampleGLRT-master/helperfunctions/pfo/noisevariance.m | 2,707 | utf_8 | 726708f4372756e8ceeb5bab655c9042 | % NOISEVARIANEC = Calculates the noise variance and mean intensity for an image
%
% SYNOPSIS:
% [noisevariance, sumintensity] = noisevariance(in, kthres, AvoidCross)
%
% kthres: frequencies that should be cut away
% in the high pass filtering [0, sqrt(dimension of in)]
% the 'corners' of the rectangul... |
github | carlassmith/exampleGLRT-master | GLS.m | .m | exampleGLRT-master/helperfunctions/pfo/GLS.m | 942 | utf_8 | 3705a3279835f07e722ec49cd1fe6e9b | % [o,s]=GLS(x,y,v) : Generalized Least Square fit, linear regression with error. Fits a straight line with offset through data with known variances.
% x : vector of x-values, known postions at which was measured.
% y : vector y-values, measurements.
% v : vector of known errors. These can also be estimated, but if you... |
github | carlassmith/exampleGLRT-master | dipwatershed.m | .m | exampleGLRT-master/helperfunctions/detectionHelpers/dipwatershed.m | 3,697 | utf_8 | 4139aaa0ed5cd749b8c912d179862057 | %WATERSHED Watershed
%
% SYNOPSIS:
% image_out = watershed(image_in,connectivity,max_depth,max_size)
%
% PARAMETERS:
% connectivity: defines which pixels are considered neighbours: up to
% 'connectivity' coordinates can differ by maximally 1. Thus:
% * A connectivity of 1 indicates 4-connected neighbours in... |
github | carlassmith/exampleGLRT-master | fdr_bh.m | .m | exampleGLRT-master/helperfunctions/detectionHelpers/fdr_bh.m | 6,427 | utf_8 | a6dc360cecf3d9af00aac66faa445497 | % fdr_bh() - Executes the Benjamini & Hochberg (1995) and the Benjamini &
% Yekutieli (2001) procedure for controlling the false discovery
% rate (FDR) of a family of hypothesis tests. FDR is the expected
% proportion of rejected hypotheses that are mistakenly rejected
% (i... |
github | carlassmith/exampleGLRT-master | mfiniteGaussPSFerf.m | .m | exampleGLRT-master/helperfunctions/filterHelpers/gpumle/development/M_SCRIPTS/for_release/mfiniteGaussPSFerf.m | 2,364 | utf_8 | aa001c427a5d77c334d2464edfc20261 | %finiteGaussPSFerf Make Gaussian Spots using finite pixel size
%
% [out] = mfiniteGaussPSFerf(Npixels,sigma,I,bg,cor,avg,flag,max)
%
% INPUT
% Npixels: linear size in pixels
% sigma: PSF sigma in pixels, scaler gives symmetric, [sx sy] gives
% asymmetric.
% I: Photons/fram... |
github | carlassmith/exampleGLRT-master | bfsave.m | .m | exampleGLRT-master/helperfunctions/bfmatlab/bfsave.m | 5,932 | utf_8 | d2b1be452e867d81dded1f96b061bea2 | function bfsave(I, outputPath, varargin)
% BFSAVE Save a 5D matrix into an OME-TIFF using Bio-Formats library
%
% bfsave(I, outputPath) writes the input 5D matrix into a new file
% specified by outputPath.
%
% bfsave(I, outputPath, dimensionOrder) specifies the dimension order of
% the input matrix. Default... |
github | carlassmith/exampleGLRT-master | simacquisition_gsdim_gpu.m | .m | exampleGLRT-master/helperfunctions/dstormSimHelpers/simacquisition_gsdim_gpu.m | 7,332 | utf_8 | 41842b6cc0b66ddda05a6712ae556528 | % Simacquisition_gsdim_gpu Simulate a 2d localization microscopy acquisition using the GPU
%
% function [image_out, emitter_states] = simacquisition_gsdim_gpu(object,sample_params,optics_params,camera_params,acquisition_params)
%
function varargout = simacquisition_gsdim_gpu(varargin)
d = struct('menu','FRC resolutio... |
github | carlassmith/exampleGLRT-master | simgsdim_fitdata_model.m | .m | exampleGLRT-master/helperfunctions/dstormSimHelpers/simgsdim_fitdata_model.m | 6,095 | utf_8 | f5a789676ae17f1076d2c8bd586fda16 | % Simacquisition_gsdim_fitdata Obtain localizations of a simulated 2d localization microscopy acquisition
%
% function [coords, emitter_states] = simgsdim_fitdata_full(object,sample_params,optics_params,camera_params,acquisition_params)
%
function varargout = simgsdim_fitdata_model(varargin)
d = struct('menu','FRC re... |
github | carlassmith/exampleGLRT-master | gotopoints.m | .m | exampleGLRT-master/helperfunctions/dstormSimHelpers/gotopoints.m | 1,813 | utf_8 | c4095833528074eb9286f385068d958f | % GOTOPOINTS Go from a binned image to point locations
% POSMAT = gotopoints(IM) converts the binned localization data in
% IM to point location data in the N-by-2 array posmat by
% taking the number of points in each pixel bin and associating them with random
% locations in the pixel area.
function o... |
github | robical/StatisticalSignalProcessing-master | spet_plo.m | .m | StatisticalSignalProcessing-master/spet_plo.m | 787 | utf_8 | 2c37b27f7a781ce1fa1f6c056b7a1520 | % funzione che plotta lo spettro in modulo e fase rappresentato dai valori
% della trasformata Z di un filtro con zeri e poli rappresentati dai
% polinomi da passare in ingresso Az(zeri) Bp(poli), calcolata sul cerchio
% unitario
function [Spettro,f]=spet_plo(Az,Bp,fc)
%Potrei a questo punto valutare la fdt per fr... |
github | robical/StatisticalSignalProcessing-master | zero.m | .m | StatisticalSignalProcessing-master/zero.m | 186 | utf_8 | 37d559f73a9a57ddf53cf7db273976ae | %funzione che genera la sequenza complessa pertinente ad una certa
%trasformata Z contenente solo zeri
function [A]=zero(z)
A=[1 -z(1)];
for i=2:length(z)
A=conv(A,[1 -z(i)]);
end |
github | robical/StatisticalSignalProcessing-master | dft.m | .m | StatisticalSignalProcessing-master/dft.m | 515 | utf_8 | 0ab8bf1fed495d9258e3dbb5ac8e4cd9 | %funzione che calcola la DFT in forma matriciale
% x= sequenza in ingresso
% m= numero di campioni dft da calcolare
function [X,fk]=dft(x,m,fc)
n=length(x);
%zero padding
if(n<m)
x=[x zeros(1,m-n)];
end
W=zeros(m); %matrice DFT
for k=1:m
for i=1:m
W(k,i)=exp(-j*((2*pi)/m)*k*i);
end
end
X=x*W.'... |
github | robical/StatisticalSignalProcessing-master | LMS.m | .m | StatisticalSignalProcessing-master/LMS.m | 1,262 | utf_8 | 26a64a5e3f9a20c4fb081974a0b4594a | %INPUT
%
%
% U= matrice di convoluzione per identificazione
% h_sti= stima iniziale del filtro
% y= osservazioni con rumore
% mu= passo di aggiornamento
% h=filtro vero
%
%
%OUTPUT:
%
%
% fstim=filtro stimato
% MSE=errore quadratico medio della stima ad ogni iterazione
function [fstim,MSE]=LMS(U,h_sti,y,mu,h)
P=len... |
github | robical/StatisticalSignalProcessing-master | trigiv.m | .m | StatisticalSignalProcessing-master/trigiv.m | 574 | utf_8 | 3cb4deef9841237812f4f32fd682b430 | %% Triangolarizzazione di una matrice via rotazioni di Givens
function [A_tri,Qtot1]=trigiv(A)
N=size(A,1);
M=size(A,2);
A_tri=A;
%rango (a meno di colonne o righe linearmente dipendenti)
rang=min(N,M);
k=1;
for j=1:1:(rang-1)
for i=rang:-1:(j+1)
Q=eye(rang);
the=atan(A_tri(i,j)/A_tri(j,j));
... |
github | robical/StatisticalSignalProcessing-master | fermat.m | .m | StatisticalSignalProcessing-master/fermat.m | 523 | utf_8 | e5ac674353476e8e222b16a22e73cca5 | %Funzione che calcola i percorsi intermedi BS-superficie e superficie-MS
%con raggio di Fermat --> l1 ed l2 rispettivamente
% d = distanza in piano BS-MS
% hBS =altezza BS in metri
% hMS = altezza MS in metri
function [l1,l2]=fermat(hBS,hMS,d)
df1=((-d*(hBS^2))+(hMS*hBS*d))/(hMS^2-hBS^2);
df2=((-d*(hBS^2))-... |
github | robical/StatisticalSignalProcessing-master | RLS.m | .m | StatisticalSignalProcessing-master/RLS.m | 735 | utf_8 | 333b21ebfc99340285205afb22f2cf1f | %Algoritmo RLS per la stima dei coefficienti del filtro
function [fil,MSE]=RLS(U,y,h)
P=length(h);
delta=0.3;
R_s= eye(P)*delta; %inizializzazione della matrice di covarianza
f_s=zeros(P,1); %inizializzazione della stima
Ri=(R_s)^-1;
i=1;
while(i<=P+20*P)
Ri=Ri - (Ri*U(i,:)'*U(i,:)*Ri)/(1+ U(i,:)*Ri... |
github | weifanjiang/UWA_OCT_Image_Processing-master | Surface_Detection_With_Snake.m | .m | UWA_OCT_Image_Processing-master/Surface_Detection_With_Snake.m | 3,223 | utf_8 | f5042ad04244426c48af444d890f3e73 | %% <Surface_Detection_With_Snake.m>
%
% Weifan Jiang
% This function detects the surface of an OCT scan image with active
% contour algorithm (snakes).
%=========================================================================
function Surface_Detection_With_Snake(img)
%% Function Parameters:
% img: image wh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.