Function to draw a tilted rectangle

Specify width, height and angle of orientation of the rectangle, that is drawn on an image

Sie verfolgen jetzt diese Einreichung

% To draw a rectangle at a given pixel location (center) with any width and
% height rotated at an angle
% Input:
% img - image (gray scale or color)
% center - the pixel location of the center of rectangle 2x1 vector
% width - width of rectangle in pixels
% height - height of rectangle in pixels
% angle - rotation angle of rectangle in degrees
% output:
% hdl = handle to figure

Zitieren als

Sudarshan (2026). Function to draw a tilted rectangle (https://de.mathworks.com/matlabcentral/fileexchange/36664-function-to-draw-a-tilted-rectangle), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert: Extract Rotated Patch from Image

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0