Rank: 1009 based on 68 downloads (last 30 days) and 9 files submitted
photo

Chandan

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Chandan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Feb 2010 Screenshot Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan line clipping, cyrus beck clipping a..., computer graphics 5 4
  • 5.0
5.0 | 2 ratings
02 Dec 2009 Screenshot Mullers method for polynmial root finding. Finds root of a polynomial numerically even if it is complex. Author: Chandan mullers method, root finding, polynomial root findi..., mathematics, numerical root findin... 20 0
11 Oct 2009 Screenshot Line Drawing by Bresenham Algorithm Bresenham Line drawing Algorithm uses error for next pixel to decide its course. Author: Chandan mathematics, computer graphics, game graphics, bresenham line algori..., line drawing 10 1
  • 2.0
2.0 | 1 rating
09 Oct 2009 Screenshot Bresenham line generation Draws line using Bresenham line generation algorithm Author: Chandan mathematics, computer graphics, bresenham line algori..., line generation 3 0
08 Oct 2009 Screenshot Ellipse generation Generation of ellipse using Midpoint ellipse algorithm Author: Chandan computer graphics, midpoint ellipse algo... 4 2
Comments and Ratings by Chandan View all
Updated File Comments Rating
18 Feb 2010 Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan

Thank you, Mr. Edmonds it seems you were right about the origin of error. I took the liberty to make changes in the code.

23 Oct 2009 Ellipse generation Generation of ellipse using Midpoint ellipse algorithm Author: 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.

Comments and Ratings on Chandan's Files View all
Updated File Comment by Comments Rating
26 Jun 2011 Bresenham Circle Circle drawing by Bresenham Algorithm Author: Chandan Iñigo
01 Sep 2010 Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan Edmonds, Richard

Good stuff, all working. It's also been a nice basis for the development of a 3D cyrus-beck lineclipping function.

Thanks.

18 Feb 2010 Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan Chandan

Thank you, Mr. Edmonds it seems you were right about the origin of error. I took the liberty to make changes in the code.

17 Feb 2010 Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan Edmonds, Richard

Needs fixing, see comment.

15 Feb 2010 Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan Edmonds, Richard

There appears to be a mistake in this code, sorry. Its quite clear if the following data is entered at the prompt:
[0 0.1 1 1.9]
[0.2 0.2 0.8 0.8]
I suggest its related to the max/min lines. I suggest that you evaluate which t are valid for entering the view port and then eveluate which is the max entering t and min entering t from each set of valid t for each. Also parallel lines should be checked too or risk div0.

Top Tags Applied by Chandan
mathematics, computer graphics, bresenham line algorithm, cyrus beck clipping algorithm, data exploration
Files Tagged by Chandan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Feb 2010 Screenshot Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan line clipping, cyrus beck clipping a..., computer graphics 5 4
  • 5.0
5.0 | 2 ratings
02 Dec 2009 Screenshot Mullers method for polynmial root finding. Finds root of a polynomial numerically even if it is complex. Author: Chandan mullers method, root finding, polynomial root findi..., mathematics, numerical root findin... 20 0
11 Oct 2009 Screenshot Line Drawing by Bresenham Algorithm Bresenham Line drawing Algorithm uses error for next pixel to decide its course. Author: Chandan mathematics, computer graphics, game graphics, bresenham line algori..., line drawing 10 1
  • 2.0
2.0 | 1 rating
09 Oct 2009 Screenshot Bresenham line generation Draws line using Bresenham line generation algorithm Author: Chandan mathematics, computer graphics, bresenham line algori..., line generation 3 0
08 Oct 2009 Screenshot Ellipse generation Generation of ellipse using Midpoint ellipse algorithm Author: Chandan computer graphics, midpoint ellipse algo... 4 2

Contact us at files@mathworks.com