image thumbnail

updated 8 months ago

Patch Curvature by Dirk-Jan Kroon

Principal, Gaussian and Mean Curvature of triangulated mesh (curvature, gaussian, principal)

[Cmean,Cgaussian,Dir1,Dir2,Lambda1,Lambda2]=patchcurvatur...

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 2 years ago

Matrix Inverse using LU factorization by Dirk-Jan Kroon

Example code LU decomposition with partial pivoting, also forward substitution, and Matrix inverse. (lu, lu factorization, lu decomposition)

Ainv=MatrixInverse(A)

C=TriangleBackwardSub(U,b)

C=TriangleForwardSub(L,b)

image thumbnail

updated 2 years ago

Polygon2Voxel by Dirk-Jan Kroon

Convert a triangulated mesh into a voxel volume (discretization, mesh, polygons)

Volume=polygon2voxel(FV,VolumeSize,mode,Yxz)

Volume=polygon2voxel_double(FacesA,FacesB,FacesC,Vertices...

image thumbnail

updated 2 years 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 (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 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

Web Server by Dirk-Jan Kroon

HTTP Matlab Web Server, allows m-files to be executed in a browser (http, server, matlab)

[TCP,data]=JavaTcpServer(action,TCP,data,config)

header=make_bin_http_header(html,found)

header=make_html_http_header(html,found)

image thumbnail

updated almost 3 years ago

2D Line Curvature and Normals by Dirk-Jan Kroon

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

N=LineNormals2D(Vertices,Lines)

k=LineCurvature2D(Vertices,Lines)

image thumbnail

updated 3 years ago

Matlab 3D figure to 3D (X)HTML by 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

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

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

HistConnect by Dirk-Jan Kroon

Smooth histograms for sparse sampled signals and images, using low-frequency assumption. (histogram, hist, linear interpolation)

H=HistConnect(X,B,R)

image thumbnail

updated 3 years ago

List Video Codecs, FourCC by Dirk-Jan Kroon

Lists all available video compressors for usage with avifile in Matlab (fourcc, cc, four)

varargout=getfourcc

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 3 years ago

MenuBar by Dirk-Jan Kroon

Create Menu Bar (s) on any location in a figure window (menubar, uipanel, uicontextmenu)

menubar(varargin)

test(varargin)

image thumbnail

updated 3 years ago

structfind by Dirk-Jan Kroon

Search for a value, cell or string inside a Matlab struct (structfind, struct, find)

index=structfind(a,field,value)

image thumbnail

updated almost 4 years ago

NVCC cuda compiler wraper by Dirk-Jan Kroon

Compile cuda kernels in Matlab, like nvcc('example.cu') (cuda, kernel, cuda kernel)

nvcc(varargin)

image thumbnail

updated almost 4 years ago

FMINLBFGS: Fast Limited Memory Optimizer by Dirk-Jan Kroon

Quasi newton limited memory BFGS and Steepest decent optimizer for large amount of unknowns (optimization, optimizer, bfgs)

fminlbfgs.m

myfun(x)

example.m

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

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

multimodality non-rigid demon algorithm image registration by 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 5 years ago

Pinch and Spherize Filter by Dirk-Jan Kroon

Distortion filter, warps an image, spherize or pinch as in Photoshop (spherical, spherize, pinch)

Iout=movepixels(I,Tx,Ty)

[J,Tx,Ty]=PinchSpherize(I,Gamma,R0)

Contact us