MCPcopy Create free account
hub / github.com/creatale/node-dv / whichComponent

Method whichComponent

deps/opencv/modules/imgproc/src/grabcut.cpp:134–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134int GMM::whichComponent( const Vec3d color ) const
135{
136 int k = 0;
137 double max = 0;
138
139 for( int ci = 0; ci < componentsCount; ci++ )
140 {
141 double p = (*this)( ci, color );
142 if( p > max )
143 {
144 k = ci;
145 max = p;
146 }
147 }
148 return k;
149}
150
151void GMM::initLearning()
152{

Callers 1

assignGMMsComponentsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected