imcircle
by John T. McCarthy
04 Sep 1998
(Updated 29 Jan 2008)
The file develops an "n by n" matrix containing a solid circle of ones of diameter "n" pixels.
|
Watch this File
|
| File Information |
| Description |
The file develops an 'n by n' matrix containing a solid circle of ones of diameter 'n' pixels, over a background of zero pixels.
Pixel positions are calculated on a nearest-fit basis, using trigonometry.
Such a circle can be an image, or part of an image, or an image mask.
A hollow circle (line circle) is also possible. |
| Acknowledgements |
This submission has inspired the following:
Pattern generator for MATLAB, Synthetic Microstructure Generator
|
| MATLAB release |
MATLAB 7.2 (R2006a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (8) |
| 15 Dec 2001 |
Tom McMurray
|
|
|
| 08 Dec 2002 |
Michael Bach
|
|
|
| 10 Jul 2003 |
Hamed Zahedi
|
|
|
| 08 Dec 2004 |
Deepak Bijalwan
|
|
|
| 20 Apr 2005 |
Aaron Mancil
|
|
|
| 23 Aug 2005 |
Pratik Kamdar
|
|
|
| 22 Aug 2006 |
Siyi Deng
|
|
|
| 16 Feb 2011 |
Jason Zhang
|
|
|
| Updates |
|
modifying description |
| 29 Jan 2008 |
Up to now, this file generated only a solid circle (disk).
I wish to include an option to have a hollow circle (line circle). |
|
Contact us at files@mathworks.com