Change to opencv2.9 syntax