First time here? Check out the FAQ!
answered 2012-12-29 11:14:31 -0600
Your code is fine, but just do it in OpenCV 2.0.