2012-09-19 09:12:45 -0600 | answered a question | Using Setters and Getters in AlgorithmInfo::addParam for Algorithm inheritance I managed to get the However, I also found that OpenCV doesn't know how to handle the read and writes of a my_algorithm.h my_algorithm.cpp |
2012-09-07 15:04:24 -0600 | received badge | ● Student (source) |
2012-09-07 12:54:58 -0600 | asked a question | Using Setters and Getters in AlgorithmInfo::addParam for Algorithm inheritance I am working on creating my own algorithm inheriting from cv::Algorithm using the reference from the OpenCV docs. I have created my own classes that inherit from cv::Algorithm with success but I am having difficulty with this one since it has a member Anyways, I am trying to reference a member within the struct that is a `uchar[3] so I wrapped it in a cv::Ptr. When I compile my program without and getters or setters on the addParam method the code compiles fine but I get a runtime error when I try to However, I am not sure how to pass the member function pointers into the addParams method. I know that I can't just pass them into the addParams method like a function like I am currently doing in the code below. I have also tried the following: but I get a compile error: Below is a stripped down sample of my source code. Any help would be greatly appreciated. my_algorithm.h my_algorithm.cpp |