Ask Your Question
0

intersection compare

asked Mar 17 '16

baro gravatar image

hallo at all! could you tell me with simple words what is the intersection in compareHist? I would know the theory of intersection(CV_COMP_INTERSECT) for compare two rgb histogram. thanks you at all

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Mar 17 '16

berak gravatar image

updated Mar 17 '16

intersection distance is just summing up the (per element) minimum of the 2, so , if you have 2 histograms,

A = [3,5,6]
B = [11,2,5]

their intersection distance is:

min(3,11) + min(5,2) + min(6,5) == 3 + 2 + 5 == 10
Preview: (hide)

Question Tools

1 follower

Stats

Asked: Mar 17 '16

Seen: 186 times

Last updated: Mar 17 '16

Related questions