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 Center 和 MATLAB Answers 中查找有关 Import, Export, and Conversion 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!