Code covered by the BSD License  

Highlights from
Function to draw a tilted rectangle

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 1.55 KB File ID: #36664
image thumbnail

Function to draw a tilted rectangle

by Sudarshan

 

14 May 2012

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

| Watch this File

File Information
Description

% 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

Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File  
Everyone's Tags
gui, image annotation, image processing, plotting, rectangle, rectangle at angle, signal processing, visualization
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us