You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Omer Yuval (2026). InRect (https://www.mathworks.com/matlabcentral/fileexchange/73650-inrect), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (2.18 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
