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

Ellipse generation

by Chandan

 

08 Oct 2009

Generation of ellipse using Midpoint ellipse algorithm

| Watch this File

File Information
Description

Generates elliptical shapes using the symmetry computational effort is minimized.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
23 Oct 2009 Jan Simon

It would be important to mention in the description, why the ellipse in the example image is not smooth.

23 Oct 2009 Chandan

It is important to know that the graphics that we see in a computer screen is not continuous . Instead due to rasterisation of graphics pixels are drawn even if the supposed graph touches or passes through it partially and due to finite size of pixels they might not appear smooth. In order to show the exaggerated effect of finite pixel size and choice of pixels under the considered algorithm, I have assumed that one pixel is of size 1x1 unit. Then I have only illuminated the centre of that square pixel. For a more detailed review of raster drawing technique, I recommend that you go through this link(similar in nature): http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
And I formally apologise for not writing a detailed description. Thank you for raising the issue, I hope it would help to better understand the working of this particular code.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
computer graphics Chandan 09 Oct 2009 11:25:04
midpoint ellipse algorithm Chandan 09 Oct 2009 11:25:05
computer graphics Hichem 26 Aug 2011 06:07:36
midpoint ellipse algorithm Hichem 26 Aug 2011 06:07:40

Contact us at files@mathworks.com