Can any body tell me how to track a cricket ball using the functions provided by JavaVis?

I am using following steps to track the ball:
1) Background Filter
2) Binary Image
3) Noise Removal
4) Identification of connected components.
5) Candidate Identification.
6) Removal of extra stuff.