image thumbnail

updated 29 days ago

Hausdorff Distance by Zachary Danziger

Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. (distance, mathematics, metric)

HausdorffDist(P,Q,lmf,dv)

image thumbnail

updated 2 months ago

distance2curve by John D'Errico

Find the closest point on a (n-dimensional) curve to any given point or set of points (arclength, interpolant, distance)

distance2curve(curvexy,mapxy,interpmethod)

image thumbnail

updated 4 months ago

Geodesics on an ellipsoid of revolution by Charles Karney

Solutions of the direct and inverse geodesic problems (area, distance, earth)

defaultellipsoid

ecc2flat(e)

flat2ecc(f)

image thumbnail

updated 6 months ago

Edit Distance Algorithm by Reza Ahmadzadeh

Edit Distance is a standard Dynamic Programming problem. (mathematics, search, dynamic programming)

EditDistance(string1,string2)

image thumbnail

updated 6 months ago

LatLon distance by M Sohrabinia

Find distance between two points based on latlon coordinates (distance, latlon distance, distance on earth)

lldistkm.m

image thumbnail

updated 7 months ago

Array Factor by Electromagnetizery

Array Factor for dipoles. Adjustable number of elements, progressive phase, and separation distance. (antenna, phi, factor)

ArrayFactor(varargin)

image thumbnail

updated 8 months ago

NEARESTPOINT (sep 2012) by Jos (10584)

NEARESTPOINT - find the nearest value in another vector (statistics, probability, distance)

nearestpoint(x,y,m)

image thumbnail

updated 9 months ago

IPDM: Inter-Point Distance Matrix by John D'Errico

An efficient and accurate Inter-Point Distance Matrix (distance, interpoint, distances)

demo_ipdm

ipdm(data1,varargin)

image thumbnail

updated 9 months ago

interparc by John D'Errico

Distance based interpolation along a general curve in space (interpolation, spline, linear)

interparc(t,px,py,varargin)

image thumbnail

updated 9 months ago

Orthodromic distance by Nicolas Keckl

This function computes the orthodromic distance between A and B on WGS84. (orthodromic, distance, wgs84)

orthodrome(A,B)

image thumbnail

updated 11 months ago

Multidimensional Hausdorff distance for two sets of points by Denny Milakara

- 2D to nD, where n < length(points) - autocorrects wrong coords orientation (hausdorff, distance, hausdorff distance)

hausdorff(L1,L2)

image thumbnail

updated 12 months ago

Image chamfer distances and geodesic diameter by David Legland

Propagates geodesic distances in binary images, and compute geodesic diameter (distance, chamfer, geodesic)

demoImChamferDistance

demoImGeodesicPath

demoImMaxGeodesicPath

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

posdist by Jakob Tougaard

Calculates distance between two geographical positions in lat/long format (distance, latitude, longitude)

posdist(lat1,lon1,lat2,lon2,method)

image thumbnail

updated 1 year ago

arclength by John D'Errico

Compute the arclength of a general curve in any number of dimensions (arclength, spline, curve)

arclength(px,py,varargin)

image thumbnail

updated 1 year ago

Pairwise Distance Matrix by Mo Chen

Compute a matrix of square Euclidean or Mahalanobis distances between points sets(fully optimized!). (distance, mahalanobis, pairwise)

sqdistance(A, B, M)

image thumbnail

updated 1 year ago

geodistance by Ganquan Mao

Calculates the distance on the surface of the earth. (distance, earth surface, geodistance)

r=geodistance(ci,cf,m)

image thumbnail

updated 1 year ago

haversine by Ritchie Smith

Computes the haversine (great circle) distance in metres between successive points on the Earth. (haversine, latitude, longitude)

d=haversine(lat,long)

image thumbnail

updated 2 years ago

Red and Green Pixel Separation by GAGAN

The following code can be used to separate red and green pixels from a colored image. (image processing, red, green)

[IR,IG]=redorgreen(input,TR,TG,T2)

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

Travel Guide (GridLess Based Djikstra Algorithm) by Krishna Lalith

Player need to Define Map & 2 Points to get Shortest Distance. (djikstra, algorithm, shortest)

Callback_Grid(handy,varargin)

TravelGuide(action)

[shortpath,flag]=ShortDist(S,D,Adj_Mat)

image thumbnail

updated 2 years ago

Travel Guide (Grid Based Djikstra Algorithm) by Krishna Lalith

Player need to Define Map & 2 Points to get Shortest Distance. (djikstra, algorithm, shortest)

Callback_Grid(handy,varargin)

TravelGuide(action)

[shortpath]=ShortDist(S,D,Adj_Mat)

image thumbnail

updated 2 years ago

Travel Guide (Points Based Djikstra Algorithm) by Krishna Lalith

Player need to Define 2 Points to get Shortest Distance Path. (djikstra, algorithm, shortest)

Callback_Grid(handy,varargin)

TravelGuide(action)

[shortpath,flag]=ShortDist(S,D,Adj_Mat)

image thumbnail

updated 2 years ago

Minimum distance between two polygons by sjye

Computes the minimum distance between two different shape polygons. (Vertex-vertex case) (polygon, minimum, distance)

min_dist_btwn_two_polygons(P1,P2)

image thumbnail

updated 2 years ago

Mahalanobis Distance by Kardi Teknomo

Return mahalanobis distance of two data matrices A and B (row = object, column = feature) (mahalanobis distance, statistics, data mining)

d=MahalanobisDistance(A, B)

image thumbnail

updated 2 years ago

Covariance matrix by Kardi Teknomo

Return covariance matrix for given data matrix X (row = object, column = feature) (data mining, distance, statistics)

C=Covariance(X)

image thumbnail

updated 2 years ago

DNorm2 by Jan Simon

Euclidian norm along a specified dim of an array - fast C-Mex (2norm, norm, distance)

DNorm2(X, n)

uTest_DNorm2(doSpeed)

image thumbnail

updated 2 years ago

OpenSURF (including Image Warp) by Dirk-Jan Kroon

SURF (Speeded Up Robust Features) image feature point detection / matching, as in SIFT (feature, scale invariant featu..., chris evans)

D=FastHessian_BuildDerivative(r,c,t,m,b) % This function Fa...

Iout=affine_warp(Iin,M,mode)

PaintSURF(I, ipts)

image thumbnail

updated 2 years ago

geodistance by Orlando Rodríguez

Calculates the distance on the surface of the earth. (distance, earth surface, points)

geodistance( ci , cf , m )

image thumbnail

updated almost 3 years ago

Distance calculation using Haversine formula by Josiah Renfree

Compute the distance between two locations using the Haversine formula (haversine, lat, longitude)

haversine(loc1, loc2)

image thumbnail

updated 3 years ago

Draw Line Segments (anti aliased) by Alvin

Drawing line segments, Distances from line segments, and line segment masks (lines, draw, line segment)

distanceFromLineSegment(x,y,p0,p1)

lineMask(imgSize, p0, p1, sigma)

image thumbnail

updated 3 years ago

Distance between points and ellipse by Rody Oldenhuis

Compute the distances between an ellipse and an arbitrary number of points, in 3D (distance, quartic root, point cloud)

distanceEllipsePoints(XYZ, a,b,c,u,v)

image thumbnail

updated 3 years ago

Determine the distance between two ellipses (in 3D) by Rody Oldenhuis

Determine the minimum distance (and corresponding angles) between two ellipses (geometry, ellipse, quartic)

distanceEllipseEllipse(a,b,c,u,v)

image thumbnail

updated 4 years ago

Minimum distance between two polygons by Guillaume JACQUENOT

This function computes the minimum euclidean distance between two polygons P1 & P2. (distance, polygon, minimum)

curveintersect(varargin)

min_dist_between_two_polygons(P1,P2,Display_solution)

image thumbnail

updated 4 years ago

Minimum Distance loop between 'n' number of points by Rohit

This functions finds minimum distance loop between no.of points using the distance formula. (point, distance, measurement)

minimumdistance(X,Y,x,y)

image thumbnail

updated 4 years ago

GDIST by Andrew Stevens

Display distance and azimuth between two points on a figure (gui tools, distance, maps)

varargout=gdist(varargin)

image thumbnail

updated 4 years ago

2D minimal segments distance by Roberto Olmi

Computes the minimal distace between two segments (2d, euclidean, segments)

d=segDistance(P,Q)

image thumbnail

updated 4 years ago

2D fast marching algorithm by Juan Cardelino

computation of distance maps using fast marching (fast marching, algorithm, eikonal)

T=fast_marching(data_points,siz,plot)

test_fm.m

image thumbnail

updated almost 5 years ago

Diffusion Distance by Matthew Foster

Calculate the diffusion distance between histograms (histogram, distance, image analysis)

diffusion_distance(im1, im2, sig, dim, threshold, pad_type)

image thumbnail

updated 5 years ago

Distance from a point to polygon by Alejandro Weinstein

Calculate the distance from a point to 2-D polygon, and the point on the polygon closest to the poin (polygon, point, distance)

p_poly_dist(x, y, xv, yv)

image thumbnail

updated 5 years ago

Basic co-occurence by Patrice

Calculates the co-occurence matrix (image analysis, cooccurrence, gray scale)

y=cooc(I, dx,dy,gl);

image thumbnail

updated 5 years ago

Calculation of distance between strings by Eduard Polityko

A function computes Levenshtein and editor distances with use of Vagner-Fisher algorithm. (distance, editor distance, levenstein distance)

[d,A]=strdist(r,b,krk,cas)

Fordist.m

image thumbnail

updated 5 years ago

Computing Pairwise Distances and Metrics by Dahua Lin

Compute pairwise distance or metric values between two sets of vectors (distance, metric, pairwise)

slmetric_pw(X1, X2, mtype, varargin)

slmetric_pw_compile()

image thumbnail

updated 6 years ago

some important image processing tools by islam alabbasy

this smalll program applays some image processing tool box which are useful in image registeration. (application, image tool, edge detecting)

eximptool.m

image thumbnail

updated 6 years ago

Tanimoto by B. Andre Weinstock

Determines Tanimoto distance emulating a pdist function (distance, statistics, tanimoto)

tanimoto(X)

image thumbnail

updated 6 years ago

Constrained Dynamic Time Warping Distance Measure by Dave DeBarr

This MEX function computes the constrained dynamic time warping distance between two time series. (dtw, time series, audio processing)

image thumbnail

updated almost 7 years ago

Cooccurrence matrix by Baran Aydogan

Calculates cooccurrence matrix for a given direction and distance (cooccurrence, features haralick, gray scale)

cooccurrence (input, dir, dist, symmetric);

image thumbnail

updated 7 years ago

Cookdist by Antonio Trujillo-Ortiz

Cook's distance influence index. (statistics, probability, cook)

Cookdist(D)

image thumbnail

updated 7 years ago

Vectorized geodetic distance and azimuth on the WGS84 earth ellipsoid by Michael Kleder

Geodetic distance, forward azimuth, and return azimuth between coordinates (distance, wgs84, geodetic)

vdist(lat1,lon1,lat2,lon2)

Contact us