Code covered by the BSD License  

Highlights from
Drawing an ellipse into a matrix image


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

Drawing an ellipse into a matrix image



13 Nov 2007 (Updated )

Drawing an ellipse into a matrix image.

| Watch this File

File Information

Function: ellipseMatrix
Version: 1.1
Author: Nicolae Cindea

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

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   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
05 Sep 2014 Henry Tsang

This code sets elements WITHIN the ellipse to value 'color'. Where can I modify it such that as long as the element touches (and need not be fully enclosed) by the ellipse to also set value to 'color'?

27 Jun 2011 Athi  
20 Nov 2010 piao lin

very useful for me ´╝îThank you very much

14 Apr 2010 Gaurav Jain

Works well, Thank you for posting this.

18 Jul 2009 Tony

Very good ellipse function.

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.

Contact us