No BSD License  

Highlights from
Create Circles

4.66667

4.7 | 3 ratings Rate this file 6 Downloads (last 30 days) File Size: 6.52 KB File ID: #20319
image thumbnail

Create Circles

by J.A. Disselhorst

 

17 Jun 2008 (Updated 18 Jun 2008)

Create circles and other shapes with the mouse.

| Watch this File

File Information
Description

Lets you create a circle with N points in the current figure. Use the mouse to indicate the center and adjust the radius. Press ENTER to confirm the shape and output its X and Y values. The N parameter is optional. Default 20.
N = 3 can be used to draw triangles, N = 4 to draw squares etc.

Uses parts of getrect and getline (c) The MathWorks, inc.

Required Products Image Processing Toolbox
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 (3)
07 Oct 2008 Roobn M

Image Processing Toolbox is NOT needed. Neat program although some changes would make it more usefull, i.e. outputing the radius and centerpoint seems better than just spitting out x,y values for the line. Also, the circle gets deleted immediately after being drawn, just comment out lines 83-85 to fix.

11 Nov 2008 Husam Aldahiyat

Hehe, this is a funny code.

11 Dec 2008 Jason

Good program, but I'm trying to find the diameters (relative to scalebar) for multiple circular particles in an image. Does anyone know how I can use this program to draw multiple circles on an image and output the diameters?

Please login to add a comment or rating.
Updates
18 Jun 2008

edit: inspired by

Tag Activity for this File
Tag Applied By Date/Time
create circle image mouse image J.A. Disselhorst 22 Oct 2008 10:06:20
create circle image mouse image Dan 15 May 2009 14:09:14
create circle image mouse image Sony 20 Aug 2010 04:45:31

Contact us at files@mathworks.com