image thumbnail

updated 2 years ago

N Dimensional Cardinal Spline (Catmull-Rom) Spline Interpolation by Dr. Murtaza Khan

Dr. Murtaza Khan

N -Dimensional cubic Cardinal spline (Catmull-Rom) Interpolation (approximation, interpolation, cardinal spline)

[MatNbyNPlusOne]=crdatnplusoneval(P0,P1,P2,P3,T,n)

[Pu] =evalcrdnd(P0,P1,P2,P3,T,u)

main.m

image thumbnail

updated 2 years ago

Animations by Ankur Pawar

Ankur Pawar

Some animation in MATLAB (animation, graphics, 3d)

[xd,yd]=transform2d(x,y,tx,ty,phi,xr,yr,sx,sy)

epitrochoid(r1,r2,len)

hypotrochoid(r1,r2,len)

image thumbnail

updated 2 years ago

Scalable Vector Graphics (SVG) Export of Figures by Juerg Schwizer

Juerg Schwizer

Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). (specialized, plotting, svg)

demo_svg_water

plot2svg.m

simulink2svg

image thumbnail

updated 2 years ago

Quick 3D Data Viewer by Kevin Claytor

Kevin Claytor

Small GUI for viewing 3D data with alpha mapping (gui, data exploration, data visualization)

makeAlphaMatrix(DataMatrix,alphavec)

plotMatrixAlpha(axH,Matrix,alphavec,xscale,yscale,zscale)

view3Ddata(varargin)

image thumbnail

updated 2 years ago

Heightprofile from GoogleEarth to 3D-Surface by Sven Koerner

Sven Koerner

The tool get the height-Profile from GoogleEarth via COM-API and the image to generate a 3D-surface. (3d, surface, plot)

ge_test1

image thumbnail

updated almost 3 years ago

Plot a 3D array using patch by Adam A

Adam A

Plotting a 3D array using a patch surface mesh (3d, patch, plot)

PATCH_3Darray(varargin)

image thumbnail

updated almost 3 years ago

Function for Viewing MRI Slices by Aras

Aras

Allows the viewing of slices of MRI data in the NIFTI format. (nifti, mri, slice)

splic(x,y,z,t)

image thumbnail

updated almost 3 years ago

Align axes labels in 3D plot by Matthew Arthington

Matthew Arthington

Align the x, y and z labels of the current axes with the x, y and z axes for 3D plots. (xlabel, ylabel, label)

axesLabelsAlign3D(~,~)

image thumbnail

updated almost 3 years ago

Shape Context Based Corresponding Point Models by Dirk-Jan Kroon

Dirk-Jan Kroon

Shape Context based nonrigid registration of 2D/3D objects, to build Active Shape Models (shape context, corresponding point m..., corresponding points)

A=imresize3d(V,scale,tsize,ntype,npad)

A=imresize3d(V,scale,tsize,ntype,npad)

A=imresize3d(V,scale,tsize,ntype,npad)

image thumbnail

updated 3 years ago

Points On Line by Ankur Pawar

Ankur Pawar

Linearly spaced points between two point and ,point in Convex Hull test. (points on line, line, 2d)

[inHullPoints,inPointsIndex]=inConvHull(vert,face,testPoi...

points=pointsOnLine(point1,point2,numPoints)

sphericalDodecahedron

image thumbnail

updated 3 years ago

plot3AniAnaglyph by Jonathan Beard

Jonathan Beard

Animated anaglyph (red/cyan 3D) plot3. (3d, anaglyph, stereoscopic)

plot3AniAnaglyph(S,params)

plot3AniAnaglyphDemos(nDemo)

image thumbnail

updated 3 years ago

Kinect Microsoft SDK by Dirk-Jan Kroon

Dirk-Jan Kroon

Video, Audio, Depth Stream and Skeleton tracking (microsoft sdk, 2d, 3d)

compile_cpp_files(MicrosoftSDKPath)

Example.m

ExampleMicrophone.m

image thumbnail

updated 3 years ago

Snake : Active Contour by Dirk-Jan Kroon

Dirk-Jan Kroon

Snake Segmentation (Kass et al), 2D/3D including GVF and balloon force (Easy to read code) (snakes, active, contour)

B=SnakeInternalForceMatrix2D(nPoints,alpha,beta,gamma)

B=SnakeInternalForceMatrix3D(FV,alpha,beta,gamma)

ExternalForceImage2D(I,Wline, Wedge, Wterm,Sigma)

image thumbnail

updated 3 years ago

QUADPLOT - for plotting 2D quad-meshes by Allan Peter Engsig-Karup

QUADPLOT is a routine for plotting 2D meshes based on quadrilaterals. (mesh, plot, quads)

quadplot(quad,varargin)

image thumbnail

updated 3 years ago

QUADPLOT - for plotting 2D quad-meshes by Allan Peter Engsig-Karup

QUADPLOT - for plotting 2D quad-meshes in Matlab. (mesh, plot, quad)

quadplot(quad,varargin)

image thumbnail

updated 3 years ago

Matlab 3D figure to 3D (X)HTML by Dirk-Jan Kroon

Dirk-Jan Kroon

Converts 3D objects of a Matlab figure to XHTML embedded X3D file. Interactive 3D website graphics. (xhtml, x3d, webgl)

[F,V,Cface,Cedge,E,T]=surf2FV(Obj)

[data,loc]=XMLaddNode(name,data,loc)

[data,loc_body]=XHTMLheader(options)

image thumbnail

updated 3 years ago

Shaped colorplot by Fanny Besem

Fanny Besem

2D or 3D shaped colorplot: useful to represent surface properties (surface, surface properties, contour)

shapedcolorplot.m

image thumbnail

updated 3 years ago

Laplacian in 1D, 2D, or 3D by Andrew Knyazev

Andrew Knyazev

Sparse (1-3)D Laplacian on a rectangular grid with exact eigenpairs. (matrix, mathematics, laplacian)

laplacian(varargin)

image thumbnail

updated 3 years ago

Quick Structured Mesh Generator by Tolga Birdal

Tolga Birdal

Fast generation of structured meshes given the vertices (MEX!). Interpolation/resizing of the mesh. (structured mesh, depth map, point cloud)

[]=make_mesh_structured()

drawMesh(vertex, face, varargin)

image thumbnail

updated 3 years ago

histograms for ND data by Diederick

Diederick

Create histograms for ND data using ND bins (histogram, nd data, 2d)

histnd(varargin)

image thumbnail

updated 3 years ago

Generate U3D files from STL models for making multilayer 3D PDF figures by Francis Esmonde-White

Francis Esmonde-White

Conversion of meshes into U3D files for making multilayer 3D PDF figures with transparency. (stl, mesh, 3d)

idtf2u3d(idtf_filename, u3d_filename)

installGoogleArchive(downloadLocation, zipFile)

mesh2idtf(varargin)

image thumbnail

updated 3 years ago

SimEvents Entity Animation in 3D by Simulink Dude

Simulink Dude

Basic infrastructure S-Function for hooking up a SimEvents model to Simulink 3D Animation (simevents, simulink, 3d)

simevents_animation(block)

luggage_animation

image thumbnail

updated almost 4 years ago

Match Plot by Li yang Ku

Li yang Ku

Draw matching lines between corresponding points in two image. Useful for SIFT feature matching. (plot, match, line)

match_plot(img1,img2,points1,points2)

image thumbnail

updated almost 4 years ago

Surface2VTK by James Ramm

James Ramm

Interpolates scattered data and saves the result to a vtk file. (vtk, surface, surf)

fillElevation(Elev,ncellX,ncellY,nlayer,nR)

meanRes(R,ncellY,ncellX,nlayer)

surface2vtk(x,y,z,r,vtkname)

image thumbnail

updated almost 4 years ago

quiver3Dpatch by Kevin Moerman

Kevin Moerman

Plotting of colored 3D arrows based on patch command (quiver, color, 3d)

quiver3Dpatch.m

image thumbnail

updated almost 4 years ago

Shortest Distance Between Two Lines in N dimensions by Alexander Brodsky

Alexander Brodsky

Function calculates shortest distance between two lines presented by two points for each line. (2d, 3d, intersection)

[dist Pc Qc]=distBW2lines(L1,L2)

image thumbnail

updated almost 4 years ago

Fast STL import function by Eric Trautmann

Eric Trautmann

Function to import .stl geometry model files into matlab. (geometry, stl, model)

varargout=import_stl_fast(filename,mode)

image thumbnail

updated almost 4 years ago

B-spline Grid, Image and Point based Registration by Dirk-Jan Kroon

Dirk-Jan Kroon

B-spline registration of two 2D / 3D images or corrsp. points, affine and with smooth b-spline grid. (geometric transformat..., image registration, registration)

A=imresize3d(V,scale,tsize,ntype,npad)

Dlocal=jacobiandet_transform_2d_double(Ox,Oy,Isize,dx,dy)

E=strain(Ux,Uy,Uz)

image thumbnail

updated almost 4 years ago

Isocontour by Dirk-Jan Kroon

Dirk-Jan Kroon

Find ISO-contour geometry in a 2D image using marching-squares, and sort the contour objects (isocontour, iso, contour)

[Lines,Vertices,Objects]=isocontour(I,isovalue)

image thumbnail

updated almost 4 years ago

Fast/Robust Template Matching by Dirk-Jan Kroon

Dirk-Jan Kroon

Template Matching with SSD Block Matching and Normalized CC, (color) 2D and 3D (template, template matching, matching)

[I_SSD,I_NCC,Idata]=template_matching(T,I,IdataIn)

image thumbnail

updated almost 4 years ago

Create 3D-interactive HTML File from MATLAB surface, Part2 by Sven Koerner

Sven Koerner

This function allows to show 3d-surface plots in html - documents. (figure, html, interactive)

javaview_nosym(surface_handle, filename, destination, sou...

image thumbnail

updated 4 years ago

Viewer3D by Dirk-Jan Kroon

Dirk-Jan Kroon

MIP, Color, Slice and Shaded 3D (shearwarp) Volume Rendering, interactive 3D view/measurement GUI (volume render, volume rendering, mip)

B=SnakeInternalForceMatrix2D(nPoints,alpha,beta,gamma)

B=SnakeInternalForceMatrix3D(FV,alpha,beta,gamma)

ErrorData3D(varargin)

image thumbnail

updated 4 years ago

smartSlice and iGSlice by James Ramm

James Ramm

slice into irregular grids with smartSlice and iGSlice. NaN values are allowed. (slice, 3d, irregular grid)

h=smartSlice(varargin)

hout=quickSlice(varargin)

iGslice(varargin)

image thumbnail

updated 4 years ago

Pyramid built by UFO by Gustavo Orellana

Gustavo Orellana

Using matrix transformations and light to create ufo building pyramid. (ufo, translations, rotations)

antenna(zpos,height,rad)

dome(zpos, dimMult)

drawBlocks(n,position)

image thumbnail

updated 4 years ago

N-Dimensional Histogram Count by Mathew

Mathew

Bins the elements of n matrices into an n-dimensional histogram. (histogram, hist, histc)

n=histcnd(varargin)

image thumbnail

updated 4 years ago

Move a 3D object with mouse in a traditional 4-view window by Gang Wang

Gang Wang

Interactively move a 3D object anywhere in the 3D space with a mouse. (interactive gui, moving 3d objects, graphics)

TDFig(varargin)

image thumbnail

updated 4 years ago

mapcolors by Scott McKinney

Scott McKinney

Create a custom RGB colormap by interpolating between two pre-defined extremes. (graphics, visualization, colormap)

mapcolors(start,finish,nBits)

image thumbnail

updated 4 years ago

Solution of Differential Equations with MATLAB & Simulink: Lorenz Attractor Case Study by Simulink Dude

Simulink Dude

Simulink design pattern for solving differential equations, visualize results in MATLAB graphics (differential, equation, lorenz)

lorenz_graphs(block)

lorenz_graphs_level_1(t,x,u,flag, x_initial)

lorenz_attractor

image thumbnail

updated 4 years ago

freezeColors / unfreezeColors by John Iversen

John Iversen

Use multiple colormaps per figure! Version 2, now works for many types of objects, not only images. (annotation, customization, colormap)

freezeColors(varargin)

unfreezeColors(h)

Contents.m

image thumbnail

updated 4 years ago

Plotvec by Hannes Eilers

Hannes Eilers

Plots any amount of 2D or 3D vectors. (plotvec, vectors, plot)

plotvec(vec, names)

image thumbnail

updated 4 years ago

Image Edge Enhancing Coherence Filter Toolbox by Dirk-Jan Kroon

Dirk-Jan Kroon

Advanced 2D/3D noise removal and edge enhancing with anisotropic diffusion filtering ( Weickert ) (scheme, diffusion scheme, diffusion)

CoherenceFilter(u,Options)

D=derivatives(I,option)

I=imgaussian(I,sigma,siz)

image thumbnail

updated 4 years ago

OpenSURF (including Image Warp) by Dirk-Jan Kroon

Dirk-Jan Kroon

SURF (Speeded Up Robust Features) image feature point detection / matching, as in SIFT (registration, surf, opensurf)

D=FastHessian_BuildDerivative(r,c,t,m,b)

Iout=affine_warp(Iin,M,mode)

PaintSURF(I, ipts)

image thumbnail

updated 4 years ago

Tool for handling tessellated free shape objects with a Morphing Mesh Procedure by Pasquale Franciosa

Pasquale Franciosa

Permits to import and modify a triangulated stl model by means of a morphing mesh approach. (gui, graphics, 3d plot)

A=evalAdjacentMatrix(Faces)

Bern=evalBern(n)

GUI_interface.m

image thumbnail

updated 4 years ago

surfi by Ben Mitch

Ben Mitch

Plot (or return) surface interpolated from supplied vertices. (visualization, plotting, plot)

surfi(XYZ, C, maxSideLength)

triangulate(varargin)

triangulate_pareByArea(XYZ, v, maxTriangleArea)

image thumbnail

updated 4 years ago

Drawing Color Histograms and Color Clouds by Chaitanya Sai Gaddam

Chaitanya Sai Gaddam

Matlab code to plot color histograms and color clouds (color, color histogram, colour clourds)

createColorHistograms(im_str)

image thumbnail

updated 4 years ago

3D arrow plot by Moshe Lindner

Moshe Lindner

the function creates 3D plot of an arrow (3d, graphics)

[h]=arrow3d(x,y,z,head_frac,radii,radii2,colr)

image thumbnail

updated 4 years ago

Separate Kernel in 1D kernels by Dirk-Jan Kroon

Dirk-Jan Kroon

Decompose an arbitrary N dimensional filtering kernel into 1D kernels, for faster filtering (image, 2d, 3d)

[K1 KN ERR]=SeparateKernel(H)

image thumbnail

updated 4 years ago

mouse3d by Dirk-Jan Kroon

Dirk-Jan Kroon

Easily zoom, pan, rotate the camera in a Matlab axis with left/center/right mouse button (mouse, mouse control, 3d)

mouse3d(varargin)

image thumbnail

updated 4 years ago

multimodality non-rigid demon algorithm image registration by Dirk-Jan Kroon

Dirk-Jan Kroon

non-rigid 2D and 3D image registration with demon (fluid) algorithm, extended with modality transf. (transforms, nonrigid image regist..., nonrigid)

A=imresize3d(V,scale,tsize,ntype,npad)

E=strain(Ux,Uy,Uz)

I3=movepixels(I1,Tx,Ty,Tz,mode)

image thumbnail

updated 4 years ago

GAFFE A toolbox for solving evolutionary nonlinear PDEs by Edward Grace

Edward Grace

This toolbox implements the well known split-step Fourier technique for solving nonlinear PDEs. (pde, fft, nonlinear)

B=fftnpad(A,varargin)

DefaultDiffraction(dz,KX,X,u,U)

DefaultDiffractionFibich(dz,KX,X,u,U)

Contact us