image thumbnail

updated 6 months ago

Shortest distance between two line segments by Nick

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

DistBetween2Segment(p1, p2, p3, p4)

image thumbnail

updated 2 years ago

Sliding Window Gen and usage with Higuchi Fractal Dimension (windowed HFD) by SUMANTH

SWG() is a multipurpose, segment generation tool based on input, window size, overlap size (higuchi, fractal, dimension)

HFD_LCALC( data,varargin)

SWG( data,W,O )

test.m

image thumbnail

updated 2 years 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 3 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, 3d, intersection)

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

image thumbnail

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

image thumbnail

updated 4 years ago

Fast Line Segment Intersection by U. Murat Erdem

Finds the pairwise intersection points between line segments in 2D Cartesian space. (intersection, line, segment)

lineSegmentIntersect(XY1,XY2)

testIntersections.m

image thumbnail

updated 4 years ago

Position of a point and a straight line or segment by Nassim Khaled

It determines the relative position of a point with respect to a planar segment or st. line (position, point, straight line)

Pos=Position(A,B,C)

image thumbnail

updated 6 years ago

2D minimal segments distance by Roberto Olmi

Computes the minimal distace between two segments (measurements, distance, segments)

d=segDistance(P,Q)

image thumbnail

updated 6 years ago

Color Filtering by Kannan Keizer

This function can be used for separating or segment Red components, Green components and Blue Compon (color, color images, filtering)

colorfilter(img,color)

image thumbnail

updated almost 9 years ago

chunkify by Gerald Dalley

Splits a vector or cell array into evenly-sized chunks. (structures, cell arrays, cell)

Contact us