Code covered by the BSD License  

Highlights from
Drawing an ellipse into a matrix image

5.0

5.0 | 4 ratings Rate this file 17 Downloads (last 30 days) File Size: 1.61 KB File ID: #17499
image thumbnail

Drawing an ellipse into a matrix image

by Nicolae Cindea

 

13 Nov 2007 (Updated 13 Nov 2007)

Drawing an ellipse into a matrix image.

| Watch this File

File Information
Description

ellipseMatrix
=============
Function: ellipseMatrix
Version: 1.1
Author: Nicolae Cindea

Syntaxe
_______
ellipseMatrix(y0, x0, a, b, teta, Image, color)

Description
___________
Set the elements of the matrix Image which are in the interior of the
ellipse E with the value color. The ellipse E has center (y0, x0), the
major axe = a, the minor axe = b, and teta is the angle macked by the
major axe with the orizontal axe.

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
11 Dec 2007 Eric Dick

This is a great function for creating ellipses in an image matrix. Since circles are simplified ellipses it can be used to make those too. V1.1 puts a single pixel nerd on the NSEW ends for the circle (semimajor = semiminor) and for some ellipses.

18 Jul 2009 Tony

Very good ellipse function.

14 Apr 2010 Gaurav Jain

Works well, Thank you for posting this.

20 Nov 2010 piao lin

very useful for me ,Thank you very much

27 Jun 2011 Athi  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image generation Nicolae Cindea 22 Oct 2008 09:34:43
ellipse Nicolae Cindea 22 Oct 2008 09:34:43
matrix Nicolae Cindea 22 Oct 2008 09:34:43
draw Nicolae Cindea 22 Oct 2008 09:34:43
ellipse Chi-Hsun Wu 14 Nov 2008 01:48:17

Contact us at files@mathworks.com