image thumbnail

updated 26 days ago

Kinect Matlab by Dirk-Jan Kroon

Microsoft Kinect, OpenNI wrapper, Skeleton, Depth (2d, kinect, wrapper)

J=imagemax(Iin)

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

compile_cpp_files(OpenNiPath)

image thumbnail

updated 1 month ago

Create a colored, tilted 2D error ellipse scatter plot. by Nathan Orloff

Create a colored, tilted 2D error ellipse scatter plot. (ellipse, error, errorplot)

errorellipse(ex,ey,xx,yy,varargin)

image thumbnail

updated 1 month ago

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

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

RegionGrowing(dImg, dMaxDif, iSeed)

image thumbnail

updated 1 month ago

2D transient Heat Conduction by shashank moghe

A dynamic boundary 2-D transient heat conduction problem (transient, heat, conduction)

ApplyBC(T_old,x_intervals,y_intervals,left_Temperature,uppe...

CalculatePlottingMatrix(T_new,x_intervals,y_intervals)

CalculateTimeForTakingOutBillet(T_new,reference_Temperature...

image thumbnail

updated 1 month ago

akZoom by Alexander Kessel

Allows direct zooming and panning with the mouse in 2D plots. Works with plotyy and multiple axes. (2d, axes, mouse)

akZoom.m

image thumbnail

updated 2 months ago

2D FDTD code with TF/SF interface and UPML absorbing borders by Vasily Kozhevnikov

Simple example implements FDTD + UPML + Total Field/Scattered Field interface (fdtd, 2d, te)

FDTD_2D

image thumbnail

updated 3 months ago

Plasticine simulation by Maxim Vedenyov

Plasticine circle by its own mass compressed on table. 2d (plasticine, simulation, 2d)

test1.m

test2.m

test3.m

image thumbnail

updated 4 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)

getTightSubplotHandles(FIG_MARGIN,ROW_MARGIN,COLUMN_MARGIN,...

plot_brain2d(x,meta,nrow,ncol,dim,c,s)

image thumbnail

updated 5 months ago

Valentines Day Greetings by Ajit ranjan

Just a Mathematical relationship ... (graphics, heart curve, valentines)

Valentines_beating_heart.m

image thumbnail

updated 5 months 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 6 months ago

Superformula generator 2d by Giuseppe Cardillo

generator of superformula plot (2d, plot, gielis)

Gielis2d(varargin)

image thumbnail

updated 7 months ago

Hexagonal Scatter Plot by Salman Mashayekh

It reduces the resolution of a high resolution data and outputs a 2D hexagonal scatter plot. (hexagon, hexagonal plot, scatter)

hexScatter(xData,yData,cData,xLim,yLim,rHex,ifFillEmptyHex)

hexScatterDemo.m

image thumbnail

updated 8 months ago

Image Noise Reduction by Local Statistics by Tristan Ursell

Reduce image noise by measuring local pixel statistics and remapping intensities. (relative, deviation, statistics)

[varargout]=relnoise(Iin,sz,sigma,varargin)

image thumbnail

updated 9 months ago

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

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

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

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

main.m

image thumbnail

updated 10 months ago

Gabor Filetr GUI by Nikolay S.

Design apply and learn the Gabor Filter via GUI. (gui, image enhancement, filter bank)

Gabor Filter GUI

GaborFilterDesighnNik(varargin)

image thumbnail

updated 10 months ago

Four-Bar Polode Animation by Don Riley

Animates all classes of 4-bar mechanisms, plots instant center paths, allows link length changes. (kinematics, animation, 4bar)

Four-Bar Polode Animation

Animate_Four_Bar_Polodes

image thumbnail

updated 11 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,y]=geom(bs,s)

calc_meshdata(dim,p,ef,t)

inttet(p)

image thumbnail

updated 11 months ago

Flatten Any Mulitdimensional Matrix into a 2-D Matrix! by Darin Koblick

Convert any multidimensional matrix into a 2-D Matrix. Then convert it back to its original form. (matrix, 2d, flattening)

eDim(fND,fSeq)

fDim(ND,dim)

multiDimDemo()

image thumbnail

updated 1 year ago

Savitzky-Golay smoothing filter for 2D data by Shao Ying Huang

This function provide a Savitzky-Golay smoothing filter for 2D data. (savitzkygolay, 2d data, 2d)

savitzkyGolay2D_rle_coupling(x,z,mIN,lengthX,lengthZ,order)

image thumbnail

updated 1 year ago

Generate Random Numbers from a 2D Discrete Distribution by Tristan Ursell

Random numbers from any 2D discrete probability distribution, at any resolution. (discrete, distribution, generate)

[x0,y0]=pinky(Xin,Yin,dist_in,varargin)

image thumbnail

updated 1 year ago

2D Distance Transform of Arbitrary Points by Tristan Ursell

Distance transform from arbitrary points at a user set resolution and range. (image, point, points)

[Xvec,Yvec,Dist]=clouddist(Xin,Yin,xlim,ylim,res)

image thumbnail

updated 1 year ago

Connect Randomly Ordered 2D Points into a Minimal Nearest-Neighbor Closed Contour by Tristan Ursell

Connects randomly ordered 2D points into a minimal nearest neighbor contour. (points, distance, neighbor)

[Xout,Yout,varargout]=points2contour(Xin,Yin,P,direction,va...

image thumbnail

updated 1 year ago

Segments Intersection Test Functions by Francesco Montorsi

Functions that count the intersections among 2-D segments. Special cases are accounted for. (segment, 2d, intersection)

test_segments_intersect

image thumbnail

updated 1 year ago

Matrix Convolution with Sub-Pixel Resolution by Tristan Ursell

Convolve two matrices at sub-pixel resolution, using bilinear interpolation. (matrix, convolve, convolution)

matout=matoverlay(mat1,mat2,x,y)

image thumbnail

updated 1 year ago

Active Shape Model (ASM) and Active Appearance Model (AAM) by Dirk-Jan Kroon

Cootes 2D/3D Active Shape & Appearance Model for automatic image object segmentation and recognition (2d, active appearance mod..., active shape model)

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

AAM_2D_example.m

AAM_3D_train_example.m

image thumbnail

updated 1 year ago

Shape Context Based Corresponding Point Models by Dirk-Jan Kroon

Shape Context based nonrigid registration of 2D/3D objects, to build Active Shape Models (icp, contour, 3d)

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

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

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

image thumbnail

updated 1 year ago

Points On Line by Ankur Pawar

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

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

points=pointsOnLine(point1,point2,numPoints)

sphericalDodecahedron

image thumbnail

updated 1 year ago

solar system formation 2d by Maxim Vedenyov

2d balls with friction and gravitations (solar system, formation, 2d)

F=calulate_forcies(r,n,G,idm,al,v)

[id id2 nn]=invers_distancies(r,n)

[r v n]=delete_far_points(r,v,rmx,n)

image thumbnail

updated 1 year 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 1 year ago

Snake : Active Contour by Dirk-Jan Kroon

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

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

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

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

image thumbnail

updated 1 year ago

2D Line Curvature and Normals by Dirk-Jan Kroon

Accurate Curvature and Normals of a line/contour consisting of 2D points (curvature, curves, vertices)

N=LineNormals2D(Vertices,Lines)

k=LineCurvature2D(Vertices,Lines)

image thumbnail

updated almost 2 years ago

Sub-pixel locations in 2D image by yang

The sub-pixel locations are solved by forming a Taylor series (subpixel, 2d, image)

subpix2d(R, C, L)

image thumbnail

updated almost 2 years ago

2D histogram - 'exact' and 'fast' binning, 'crop' and 'stretch' grid adjustment by tudor dima

2D histogram of data pairs [x,y]; 'fast'/'exact' binning; 'stretch'/'crop' grid mode. (statistics, probability, histogram)

hist2(vxy, mesh_minmaxN_xy, varargin)

image thumbnail

updated almost 2 years ago

Shortest distance between two line segments by Nick Gravish

Function computes the shortest distance between two line segments. (2d, geometry, intersection)

DistBetween2Segment(p1, p2, p3, p4)

image thumbnail

updated almost 2 years ago

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

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

laplacian(varargin)

image thumbnail

updated almost 2 years ago

2D polynomial fitting with SVD by Richard Whitehead

Fits a polynomial f(x,y) to best fit the data points z using SVD. (2d, polynomial, fitting evaluation92)

eval2dPoly( x, y, coeffs )

fit2dPolySVD( x, y, z, order )

image thumbnail

updated 2 years ago

Bayes classification for 2D Gaussian distributions by Edward Wiggin

Draw Bayes classification results for 2D Gauss. distributions, return func. handles of N post. prob. (bayes, gaussian distribution, 2d)

drawBayesGauss2D(mu,c,prProb,ax)

image thumbnail

updated 2 years ago

Phased Array Design Toolbox v2.4 by Neill Tucker

A toolbox allowing rapid definition and evaluation of 2D and 3D phased array antennas. (2d, phased array, simulation)

image thumbnail

updated 2 years ago

histograms for ND data by Diederick

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

histnd(varargin)

image thumbnail

updated 2 years ago

2-D convolution using the FFT by David Young

Convolution in 2-D using the Fast Fourier Transform. (convolution, filtering, fft)

conv_fft2(x, m, shape)

exindex(arr, varargin)

image thumbnail

updated 2 years ago

Fast 2-D convolution by David Young

Speeds up many 2-D convolutions using the SVD; also finds a fast approximation in other cases. (2d, filtering, convolution)

convolve2(x, m, shape, tol)

exindex(arr, varargin)

image thumbnail

updated 2 years ago

Shortest Distance Between Two Lines in N dimensions by Alexander Brodsky

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

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

image thumbnail

updated 2 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. (3d, bspline, 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 2 years ago

Fast/Robust Template Matching by Dirk-Jan Kroon

Template Matching with SSD Block Matching and Normalized CC, (color) 2D and 3D (template matching, block matching, sum of squared differ...)

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

image thumbnail

updated 2 years ago

Minimum Entropy Deconvolution (MED 1D and 2D) by Geoff McDonald

Generates a 1D FIR filter iteratively to minimize the entropy of the filtered signal(s). (minimum entropy decon..., deconvolution, 1d)

med2d(x,filterSize,termIter,termDelta,plotMode)

image thumbnail

updated 2 years ago

Skeleton 2D by Roberto Herrera

A basic example of skeletons in 2D, using maltab. (skeleton, 2d, topology)

skeleton.m

image thumbnail

updated 2 years ago

2d liquid simulation by Maxim Vedenyov

in rectangle without air. (liquid, simulation, 2d)

[V,C,N]=prepare_cells(a,b,r)

liquid_2d_rectangle.m

liquid_2d_rectangle_gif.m

image thumbnail

updated 2 years ago

Viewer3D by Dirk-Jan Kroon

MIP, Color, Slice and Shaded 3D (shearwarp) Volume Rendering, interactive 3D view/measurement GUI (2d, 3d, dicom)

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

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

ErrorData3D(varargin)

image thumbnail

updated 2 years ago

Plot to Bitmap by Dirk-Jan Kroon

Plot lines (and text) directly into a bitmap, including filled polygons. (bitmap, image, text)

I=bitmapplot(x,y,Ibackground,options)

I=bitmaptext(lines,I,pos,options)

image thumbnail

updated 2 years ago

Length of cross of segment and rectangle by Maxim Vedenyov

If segment is outside rectangle then return 0 (segment, cross, rectangle)

L=segment_rectange(a,b,r)

rcr=cross_perimeter(a,b,r)

zz_segment_rectange_test.m

Contact us