First time here? Check out the FAQ!
answered 2015-07-29 02:52:31 -0600
You can simply use the norm interface of OpenCV to do it for you right? Some more info can be found here and here.