Ask Your Question

Revision history [back]

How to chosse the last parameter of connectedComponents

Hi,guys. My problem is about connectedComponents.

I konw , If img is CV_8U

connectedComponents(img,labels,8,CV_16U);

it works.

But when img is CV_32F how to chosse the last parameter?

I tried CV_64F,CV_32F and others,but all crashed. Thanks!