mastaraymond
2010-02-28 07:38:31
Well I've had this algorithm in my head for a long time. Just never had time to implement this correctly..
First start with a practical use of this algorithm, and then we can go into the actual algorithm: For example we want to find an Al-kharid warrior.
We can create a lot of advanced colour finding stuff to find this warrior, based on it's purple colour etc.. However we know more about this warrior. We know for example that besides the colour purple, it contains the color brown and grey.
So what if we just do simple FindColors searches on those 3 colours, and find a "densed" area where all of those 3 colours overlap.. We then pretty sure know that this 'area', must be an alkharid-warrior. As you can see it would be pretty easy 'object' finding, just pass 3 colours to an function and let it return a TPoint.
As you probably noticed this looks a lot like DTMs, but then without the relative distances between the point, thus making it more dynamic.
Such a algorithm needs a few parameters, this is what I could come up with. (note that the colour finding is done before you use this algorithm)
First start with a practical use of this algorithm, and then we can go into the actual algorithm: For example we want to find an Al-kharid warrior.
We can create a lot of advanced colour finding stuff to find this warrior, based on it's purple colour etc.. However we know more about this warrior. We know for example that besides the colour purple, it contains the color brown and grey.
So what if we just do simple FindColors searches on those 3 colours, and find a "densed" area where all of those 3 colours overlap.. We then pretty sure know that this 'area', must be an alkharid-warrior. As you can see it would be pretty easy 'object' finding, just pass 3 colours to an function and let it return a TPoint.
As you probably noticed this looks a lot like DTMs, but then without the relative distances between the point, thus making it more dynamic.
Such a algorithm needs a few parameters, this is what I could come up with. (note that the colour finding is done before you use this algorithm)
- Goodpoints (ATPA)
- BadPoints (ATPA)
- Box-size (Width/Height) where in the points must exist
- Percentage of how much of the box must (or not) be a certain colour