This forum is disabled, please visit https://forum.opencv.org

2020-11-05 14:58:22 -0600 | received badge | ● Student (source) |

2015-12-13 22:57:09 -0600 | asked a question | GMM assignment incorrect in grabcut.cpp? Hello, I was looking at http://code.opencv.org/attachments/93.... If "x" is a 3d vector and "z" is the gmm component that generated it, whichComponent() at L134 computes argmax p(x | z) by calling double GMM::operator()( int ci, const Vec3d color ) at L117. The returned "res" in this latter method is not multiplied by coefs[ci]. p(z | x) = p(z, x) / p(x) = p(x | z) p(z) / p(x). I think it should really be assigning argmax p(x | z) p (z) since we want to compute the argmax p(z | x) to assign the gmm component, correct? (i.e change L141 from double p = ( Can anyone explain if my above reasoning is incorrect? Thanks! |

Copyright OpenCV foundation, 2012-2018. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.