mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
fixed Bug #3143 - flann 'not implemented' error
This commit is contained in:
parent
8afb7a40c6
commit
25b9ac18e6
@ -510,13 +510,6 @@ PyObject* pyopencv_from(const cvflann_flann_distance_t& value)
|
|||||||
return PyInt_FromLong(int(value));
|
return PyInt_FromLong(int(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
|
||||||
bool pyopencv_to(PyObject*, cv::flann::SearchParams &, const char *)
|
|
||||||
{
|
|
||||||
CV_Assert(!"not implemented");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
bool pyopencv_to(PyObject* obj, int& value, const char* name)
|
bool pyopencv_to(PyObject* obj, int& value, const char* name)
|
||||||
{
|
{
|
||||||
@ -1055,6 +1048,12 @@ bool pyopencv_to(PyObject *o, cv::flann::IndexParams& p, const char *name)
|
|||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<>
|
||||||
|
bool pyopencv_to(PyObject* obj, cv::flann::SearchParams & value, const char * name)
|
||||||
|
{
|
||||||
|
return pyopencv_to<cv::flann::IndexParams>(obj, value, name);
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool pyopencv_to(PyObject *o, Ptr<T>& p, const char *name)
|
bool pyopencv_to(PyObject *o, Ptr<T>& p, const char *name)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user