Saturday 21 April 2012

Applying the Cue and Testing

The cue co-ordinates were mapped out as 3's onto the 2-d map, this gives the location of the cue tip.

 The cue angle is also an output of the Hough Transform but the angle given needed to be altered to match the physics engine:

Actual Cue Angle = Cue Angle + Theta -90

Theta is the angle of the image rotation, -90 in order to match the Hough angle to the Physics Engine

The ball closest to the cue tip needs to be found in order to apply the Cue angle to it. This is done by calculating the distance of each ball to the cue tip and the shortest distance gives the cue ball. For testing purposes the cue will have a red tip as it makes it much easier to detect.

Testing of the application as a whole project, was to be done by building a 'Database' of 20 images which work in the correct lighting conditions. The image Analysis was very sensitive to the lighting conditions in the room and outside weather can have a big effect on the noise found in the image.

Chris

No comments:

Post a Comment