Length of cross of segment and rectangle
版本 1.1.0.0 (12.4 KB) 作者:
Maxim Vedenyov
If segment is outside rectangle then return 0
segment_rectange.m is the function that difine length of cross.
cross_perimeter.m auxillary function for segment_rectange.m, it define points of cross of segment and perimeter of rectangle
zz_segment_rectange_test.m is script-test, it tests segment_rectange.m by use random segments plot it and print length near segment.
Usage of segment_rectange.m:
L=segment_rectange(a,b,r)
rectange a x b
rectangle is 0<=x<=a 0<=y<=b
segment between r(:,1) and r(:,2)
引用格式
Maxim Vedenyov (2024). Length of cross of segment and rectangle (https://www.mathworks.com/matlabcentral/fileexchange/29988-length-of-cross-of-segment-and-rectangle), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2009a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation >
在 Help Center 和 MATLAB Answers 中查找有关 Image Segmentation 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!