InRect

版本 1.0.1 (2.2 KB) 作者: Omer Yuval
A fast test for finding pixels that lie within a given oriented rectangle.
16.0 次下载
更新时间 2019/12/11

查看许可证

InRect takes four subscript indices corresponding to rectangle vertices and the number of rows of the sampled image/matrix, and returns a row vector of linear indices corresponding to pixels that lie within the rectangle.

This simple algorithm is very useful for performing a fast convolution of a rectangle over an image.

引用格式

Omer Yuval (2024). InRect (https://www.mathworks.com/matlabcentral/fileexchange/73650-inrect), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Import, Export, and Conversion 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Added an example.

1.0.0