|
-
Sep 19th, 2001, 10:05 PM
#1
Thread Starter
New Member
Shape recognition
Hello all. I am looking for a way to have my program be able to distinguish between various black and white shapes (eg. triangle/circle/square). I am completely clueless about where to start. it does not matter what type of file it reads it from (eg. bitmap, jpeg, gif, etc.). Does anyone have any ideas on where to start?
"A mathematician is a device for turning coffee into theorems."
-
Sep 19th, 2001, 10:45 PM
#2
PowerPoster
Can you be more specific?
-
Sep 19th, 2001, 10:55 PM
#3
Thread Starter
New Member
k
the program is given 3 bitmap files. all have a white background, and in the center, in black, one has a square, another has a circle, and the third has a triangle. When i press the button, i want the program to tell me which bmp (a, b, or c) is a square.
"A mathematician is a device for turning coffee into theorems."
-
Sep 19th, 2001, 11:00 PM
#4
PowerPoster
If you know the x,y, width,height of the shape on the bitmap then you just draw the same kind of shape on another place or picture box, and then read the bitmap and the picture box pixel by pixel, and see if they both are same. If that is the case then you have the kind of shape that you have in the picture box.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|