image thumbnail

updated 29 days ago

Export figure to 3D interactive PDF by Ioannis Filippidis

Export figure as U3D file or directly to 3D interactive graphics within PDF. (3d, u3d, graphics)

image thumbnail

updated 1 month ago

Diffeomorphic Log Demons Image Registration by Herve Lombaert

Simple matlab code for 2D and 3D image registration using the diffeomorphic log-demons algorithm (image processing, image registration, 2d)

compose(ax,ay,az, bx,by,bz)

demons

demons

image thumbnail

updated 1 month ago

Cubehelix Colormaps by Stephen Cobeldick

Attractive full-color colormaps that also print in grayscale (keeping the sequence information). (colormap, color scheme, color)

cubehelix(N,start,rots,hue,gamma,rng)

cubehelix_find(map)

cubehelix_view(start,rots,hue,gamma,rng)

image thumbnail

updated 6 months ago

calc_meshdata by Immanuel Anjam

Calculates the affine transformations for integration in 2D/3D via the unit triangle/tetrahedron. (integration, 2d, unit reference triang...)

[X,W]=inttri(p)

[x,y]=geom(bs,s)

calc_meshdata(dim,p,ef,t)

image thumbnail

updated 6 months ago

Fast 3D/2D Region Growing (MEX) by Christian Wuerslin

A very fast 2D and 3D region growing algorithm implemented in c++. (region growing, 3d, 2d)

RegionGrowing(dImg, dMaxDif, iSeed)

image thumbnail

updated 8 months ago

Multiecho enhancement for 2D/3D (N-D) images by Luke Xie

Enhances images using a weighted sum or MEFIC. (2d, 3d, grayscale)

img2=multiecho_enhance(img,str,weights)

image thumbnail

updated 9 months ago

2d and 3d brain plots by Jeremy Manning

Quickly and easily create 2d and 3d plots of fMRI data. (fmri, pcolor, 2d)

PATCH_3Darray(varargin)

cmu_to_mat(data, meta)

construct_meta(dims)

image thumbnail

updated 10 months ago

Hysteresis thresholding for 3D images (or 2D) by Luke Xie

Segments images based dual thresholding with 2D or 3D connectivity neighborhoods. (image processing, hysteresis, 3d)

[tri,hys]=hysteresis3d(img,t1,t2,conn)

image thumbnail

updated 1 year ago

Kinect Matlab by Dirk-Jan Kroon

Microsoft Kinect, OpenNI wrapper, Skeleton, Depth (kinect, microsoft, skeleton)

J=imagemax(Iin)

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

compile_cpp_files(OpenNiPath)

image thumbnail

updated 1 year ago

imsurf: 3D images by Matthew Arthington

Plot images as 3D planes with full control over position and scale. (image, 3d, plot)

h=imsurf(imageIn,upperLeftPoint3,normal,imXDirVec,scale,v...

image thumbnail

updated 1 year ago

Surface areas of contour by HY

This function outputs surface areas within each contour and their heights. (area, contour, 3d)

ContourArea( C )

image thumbnail

updated 2 years ago

Scalable Vector Graphics (SVG) Export of Figures by 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

Function for Viewing MRI Slices by 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

Kinect Microsoft SDK by 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 almost 3 years ago

Snake : Active Contour by 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

Laplacian in 1D, 2D, or 3D by 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

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

Match Plot by 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 3 years ago

Fast STL import function by Eric Trautmann

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

varargout=import_stl_fast(filename,mode)

image thumbnail

updated 3 years ago

B-spline Grid, Image and Point based Registration by 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 3 years ago

Viewer3D by 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 almost 4 years ago

Solution of Differential Equations with MATLAB & Simulink: Lorenz Attractor Case Study by 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

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

Image Edge Enhancing Coherence Filter Toolbox by 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

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

Drawing Color Histograms and Color Clouds by 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

Separate Kernel in 1D kernels by 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

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

imtranslate by Sean de

Affine translates a 2D image or 3D volume. (affine translation, image processing, translation)

imtranslate(I, translation, F, method, same_size)

image thumbnail

updated almost 5 years ago

imgaussian by Dirk-Jan Kroon

Fast Gaussian filtering of 1D, 2D greyscale / color image or 3D image volume. (imgaussian, gaussian, filtering)

I=imgaussian(I,sigma,siz)

image thumbnail

updated 5 years ago

imagescnan.m v2.1 (Aug 2009) by Carlos Adrian Vargas Aguilera

Same as IMAGESC but ignores NaNs. (specialized, plotting, imagesc)

imagescnan(varargin)

image thumbnail

updated 5 years ago

surfo by Andres

workaround for surface lighting with OpenGL (plot, surf, surface)

facenorm(X,Y,Z)

surfo(varargin)

image thumbnail

updated 5 years ago

Toolbox Fast Marching by Gabriel Peyre

A toolbox for the computation of the Fast Marching algorithm in 2D and 3D. (differential equation..., fast marching, level set)

Toolbox Fast Marching - A toolbox for Fast Marching and l...

callback_active_contour(x, options)

check_face_vertex(vertex,face, options)

image thumbnail

updated 5 years ago

Resampling volume or image with affine matrix by Jimmy Shen

Use affine matrix to convert 3D vol or 2D img to orthogonal one with corresponding affine matrix. (geometric transformat..., image registration, 3d)

affine(old_img, old_M, new_elem_size, verbose, bg, method)

image thumbnail

updated almost 6 years ago

Mandel121 by Dr. Jens Koopmann

Cool tool to zoom into the Mandebrot Set. 2/3D images are supported. (fractals, mandelbrot, chaos)

[x,y,Zvalues]=dummy2(lowerR,higherR,lowerI,higherI,stepsR...

color_change(col,my_view,x,y,Zvalues,x_view,y_view,maxIte...

load_coordinates

image thumbnail

updated almost 6 years ago

image3 by Anders Brun

Renders a 2-D image in 3-D space using a texture mapped rectangle, with several examples of uses. (image, imagesc, scatter)

demo

box3(vol, I2X, bbox)

image3(im,ij2xyz,handle)

image thumbnail

updated 6 years ago

Global maximum point for 3D surface using GA by Ali Talib Oudah

Finding the global maximum height for 3D multiple peak surface using genetic algorithm (optimization, ga, genetic algorithm)

d=mutate(offs,mutprop)

multipeak(pop)

off=cross(parent,croprop)

image thumbnail

updated almost 8 years ago

imslice by Francois Bouffard

Selects and plots a cdata slice (data exploration, image, slice)

imslice.m

image thumbnail

updated 9 years ago

Widely Used Programming Environments in Electrical Engineering: MATLAB by Lorand Szabo

This book was written to help electrical engineers to use MATLAB for computations and visualization. (matlab, matrix operations, 2d)

cond_front=ffront(ya,yb)

f=def_funct(t,t1,a1,t2,a2,a3)

t=sincos(x,y)

image thumbnail

updated 9 years ago

label2rgb3D by payel ghosh

Creates a 4D rgb image from a 3D label image. (color, label2rgb, 3d)

rgb3d=label2rgb3d(varargin)

image thumbnail

updated 9 years ago

Plot 2D/3D Vector with Arrow by Rentian Xiong

This function plots a line vector with arrow head. (2d, 3d, vector)

vectarrow(p0,p1)

image thumbnail

updated 11 years ago

tcolor (a fast pcolor that likes RGB images) by Aslak Grinsted

Draws an image as a texture to a plane. (specialized, plotting, pcolor)

H=tcolor(x,y,c,varargin)

image thumbnail

updated 16 years ago

plot3d.m by Haim Azhari

This M-function produces an image of a 3D object defined by matrix a(l,m,n) in terms of voxels. (specialized, plotting, image)

[b,d]=plot3d(a,alfa,beta);

Contact us