Help for Detecting a Cirlce Shape same color as the background

08/27/2012 08:39 Chris10Lyn#1
[Only registered and activated users can see links. Click Here To Register...]

As What you can see in the image above i need to detect the circle shape but the problem is its the same color as the background so i can't detect it.

This is the code i use :

Code:
#cs ----------------------------------------------------------------------------
	AutoIt Version: 3.3.0.0
	Author: Chris10Lyn Symbianize 
#ce ----------------------------------------------------------------------------
#include <GUIConstantsEx.au3>

HotKeySet ("{F5}","_Exit")

While 1
   $pixel = PixelSearch(278,309,432,405,0x2C2C2C)
	  If IsArray($pixel) = True Then;
	  MouseClick('left', $pixel[0], $pixel[1], 1, 0);
   EndIf 
WEnd

Func _Exit()
   Exit
   EndFunc
can you help me or give me a code that can detect the circle shape ?

thanks in advance sir/madam.

Ps. Please answer back in english i can't understand any language other thank english. thank you.:handsdown:
08/28/2012 02:06 Ludder231#2
[Only registered and activated users can see links. Click Here To Register...] This is the only way to do it, but i dont get it :D Try it urself :)
08/28/2012 22:11 lolkop#3
ausgehend davon, das es sich um ein kleines bild handelt, reicht es durchaus einfach jeden pixel in einem radius von x zu durchsuchen, um zu sehen ob dort im radius befindlich weitere schwarze pixel sind.
09/01/2012 12:17 Chris10Lyn#4
Quote:
Originally Posted by lolkop View Post
ausgehend davon, das es sich um ein kleines bild handelt, reicht es durchaus einfach jeden pixel in einem radius von x zu durchsuchen, um zu sehen ob dort im radius befindlich weitere schwarze pixel sind.
thank you for your comment sir but i cant understand your language..:confused:
09/01/2012 12:42 lolkop#5
Quote:
Originally Posted by Chris10Lyn View Post
thank you for your comment sir but i cant understand your language..:confused:
a circle is defined by a infinite number of dots, where each of those dots got a static distance to the middle of the circle (radius).

using this definition, it's pretty easy to detect circles.

http://en.wikipedia.org/wiki/Midpoint_circle_algorithm