Ask Your Question
0

MSER::create() crash

asked 2016-04-28 06:13:42 -0600

Street gravatar image

Hi everyone,

I search everywhere on internet a solution of my problem and i haven't found something interesting to help me. So that's why i'm here. I would like to use the detector MSER from features2d.hpp but while i use the function create() of MSER, my program crash at the start of the execution.

Ptr<MSER> pMSER;
pMSER->create();

Do I have to initialize something before use the function? Do you have clues to help me in order to resolve this problem. Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-28 07:02:05 -0600

berak gravatar image

you have to create an instance of this class, before you can use it, create() is a static function, you call it like this:

Ptr<MSER> pMSER = MSER::create();
pMSER->setMaxArea(10);
edit flag offensive delete link more

Comments

I missed to say that i compiled sources opencv3.1 with additionnal xfeatures2d for using SIFT and SURF in future. I have just recompiling the sources without this addon and it works very well. I have to understand why the library is corrupted when I compile with this addon. Thanks you very much for your quick reply.

Street gravatar imageStreet ( 2016-04-28 07:31:22 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-04-28 06:13:42 -0600

Seen: 457 times

Last updated: Apr 28 '16