Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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

I shold use:

cv::Ptr<generalhough> GH=GH->Create(GHT_POSITION | GHT_ROTATION); GH->setTemplate(temp1); GH->detect(src1,temp1); ..........

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

cv::Ptr<genernalhough>

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

GH->create(.........);

I shold use:

cv::Ptr<generalhough>

cv::Ptr<GeneralHough> GH=GH->Create(GHT_POSITION | GHT_ROTATION);
GH->setTemplate(temp1);
GH->detect(src1,temp1);
..........

..........

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

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

I shold should use:

cv::Ptr<GeneralHough> GH=GH->Create(GHT_POSITION | GHT_ROTATION);
GH->setTemplate(temp1);
GH->detect(src1,temp1);
..........