First time here? Check out the FAQ!
answered 2012-08-21 08:04:42 -0600
Use image moments. See,
http://docs.opencv.org/2.4.2/doc/tutorials/imgproc/shapedescriptors/moments/moments.html