File Exchange

image thumbnail

Ellipse generation

version 1.0.0.0 (1.51 KB) by Chandan Kumar
Generation of ellipse using Midpoint ellipse algorithm

2 Downloads

Updated 08 Oct 2009

View License

Generates elliptical shapes using the symmetry computational effort is minimized.

Cite As

Chandan Kumar (2021). Ellipse generation (https://www.mathworks.com/matlabcentral/fileexchange/25529-ellipse-generation), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Chandan Kumar

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.

Jan

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

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!