InRect

A fast test for finding pixels that lie within a given oriented rectangle.

Vous suivez désormais cette soumission

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 (2026). InRect (https://fr.mathworks.com/matlabcentral/fileexchange/73650-inrect), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.1

Added an example.

1.0.0