Ask Your Question
0

finding norm L2 python

asked 2016-04-14 04:18:48 -0600

akki gravatar image

How to find cv2 norm L2 in python
i am able to do this:
cv2.norm(img1, img2)
but I am not sure which norm is this

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-14 04:23:21 -0600

berak gravatar image

yes, this is using the L2 norm.

(the default value for normType here: norm(src1, src2[, normType[, mask]]) -> retval)

you can also use:

cv2.NORM_HAMMING = 6
cv2.NORM_HAMMING2 = 7
cv2.NORM_INF = 1
cv2.NORM_L1 = 2
cv2.NORM_L2 = 4
cv2.NORM_L2SQR = 5
cv2.NORM_MINMAX = 32
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-14 04:17:40 -0600

Seen: 4,078 times

Last updated: Apr 14 '16