Ask Your Question
0

GeneralizedHough in OpenCV2.4.10

asked 2015-02-12 07:43:25 -0600

wuling gravatar image

updated 2015-02-12 09:22:29 -0600

Hi all, I try to write General Hough transform in opencv2.4.10 bulidin function. But the program is terminated at

GH->setTemplate(temp2,100);

I don't know what's happen.Someone can tell me how to set template image or has any idea or any referance can help me? I appreciate your help.

image description

edit retag flag offensive close merge delete

Comments

2

you do understand, that chinese error messages are not helpful ?

berak gravatar imageberak ( 2015-02-12 08:15:04 -0600 )edit
1

dear berk, it mean "unhandle expection Status at 0xC0000005 ,read position at 0x00000008 Access violation ccurs" so, i have no any ideas.

wuling gravatar imagewuling ( 2015-02-12 08:24:27 -0600 )edit

hey, thanks for translating that !

berak gravatar imageberak ( 2015-02-12 08:26:55 -0600 )edit

you welcome,but how to do ?

wuling gravatar imagewuling ( 2015-02-12 08:29:47 -0600 )edit
1

(blind guess)

can you check again, if you accidentally mixed debug/release opencv libs, or if you're using the wrong ones ?

berak gravatar imageberak ( 2015-02-12 08:49:23 -0600 )edit

Hi,I find my setting all in debug mode, and my code is the same. I try miexed both.

wuling gravatar imagewuling ( 2015-02-12 08:55:27 -0600 )edit

please strictly use only release libs with release build, and debug libs with debug build.

berak gravatar imageberak ( 2015-02-12 09:03:50 -0600 )edit
1

thanks, i bulid release opencv libs now. I will report result.

wuling gravatar imagewuling ( 2015-02-12 09:08:34 -0600 )edit

1 answer

Sort by » oldest newest most voted
3

answered 2015-02-12 20:42:54 -0600

wuling gravatar image

updated 2015-02-13 03:39:55 -0600

Hi,berak: I find the soulation: I do not use:

cv::Ptr<GenernalHough> GH;
GH->create(.........);

I should use:

cv::Ptr<GeneralHough> GH=GH->Create(GHT_POSITION | GHT_ROTATION);
GH->setTemplate(temp1);
GH->detect(src1,temp1);
..........
edit flag offensive delete link more

Comments

2

oh, ofc. honestly, i did not see it.

but still, it rather should be:

cv::Ptr<GeneralizedHough> GH = GeneralizedHough::create(GHT_POSITION | GHT_ROTATION);
berak gravatar imageberak ( 2015-02-13 03:57:51 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-12 07:43:25 -0600

Seen: 614 times

Last updated: Feb 13 '15