InRect
Version 1.0.1 (2,18 ko) par
Omer Yuval
A fast test for finding pixels that lie within a given oriented rectangle.
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.
Citation pour cette source
Omer Yuval (2024). InRect (https://www.mathworks.com/matlabcentral/fileexchange/73650-inrect), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Créé avec
R2019b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Import, Export, and Conversion dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.1 | Added an example. |
||
1.0.0 |