for opencv 1.0