문제

When I type the following code line.. where img_hsv is a Mat image...

IplImage abc=img_hsv;


// object that will contain blobs of inputImage
CBlobResult blobs;

// Extract the blobs using a threshold of 100 in the image
blobs = CBlobResult(&abc,NULL,100,true);

It displays the following error...

error C2661: 'CBlobResult::CBlobResult' : no overloaded function takes 4 arguments.. Any help is welcome...!!

도움이 되었습니까?

해결책

You probably have code written for an older library. Have a look at the header file, I guess the constructor has only 3 arguments. Remove true, then it should work.

This discussion might point out the problem with more details: http://tech.groups.yahoo.com/group/OpenCV/message/61534 to help you finding a maybe more suitable solution if simply removing the flag does have some undesirable side effects.

다른 팁

For some reason thresholding with a zero value does not work.

Try blobs = CBlobResult(&abc,NULL,255);

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top