Package pyopencv :: Module cxcore_hpp_ext :: Class KDTree
[hide private]
[frames] | no frames]

Class KDTree

 object --+    
          |    
??.instance --+
              |
             KDTree

Nested Classes [hide private]
  KDTree_Node
Instance Methods [hide private]
 
__init__(...)
__init__( (object)arg1) -> None :
 
__reduce__(...)
helper for pickle
 
build(...)
build( (KDTree)arg1, (Mat)_points [, (bool)copyAndReorderPoints=False]) -> None :
 
dims(...)
dims( (KDTree)arg1) -> int :
 
findNearest(...)
findNearest( (KDTree)inst, (vector_float32)vec, (object)K, (object)Emax) -> tuple :
 
findOrthoRange(...)
findOrthoRange( (KDTree)inst, (vector_float32)minBounds, (vector_float32)maxBounds) -> tuple :
 
getPoint(...)
getPoint( (object)arg1, (object)ptidx) -> object :
 
getPoints(...)
getPoints( (KDTree)inst, (vector_int)idx) -> object :

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __instance_size__ = 60
Properties [hide private]
  maxDepth
  nodes
  normType
  points
  this

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (Mat)_points [, (bool)copyAndReorderPoints=False]) -> None :

    C++ signature :
        void __init__(_object*,cv::Mat [,bool=False])

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

build(...)

 

build( (KDTree)arg1, (Mat)_points [, (bool)copyAndReorderPoints=False]) -> None :

    C++ signature :
        void build(cv::KDTree {lvalue},cv::Mat [,bool=False])

dims(...)

 

dims( (KDTree)arg1) -> int :

    C++ signature :
        int dims(cv::KDTree {lvalue})

findNearest(...)

 

findNearest( (KDTree)inst, (vector_float32)vec, (object)K, (object)Emax) -> tuple :
    
    Argument 'vec':
        C++ type: float const *
        Python type: vector_float32
    Argument 'neighborsIdx':
        C++ type: ::std::vector< int > *
        Python type: vector_int
        Output argument: omitted from input and returned as output.
    Argument 'neighbors':
        C++ type: ::cv::Mat *
        Python type: Mat
        Output argument: omitted from input and returned as output.
    Argument 'dist':
        C++ type: ::std::vector< float > *
        Python type: vector_float32
        Output argument: omitted from input and returned as output.
    Returns:
        ((int), neighborsIdx, neighbors, dist)

    C++ signature :
        boost::python::tuple findNearest(cv::KDTree,std::vector<float, std::allocator<float> >,int,int)

findOrthoRange(...)

 

findOrthoRange( (KDTree)inst, (vector_float32)minBounds, (vector_float32)maxBounds) -> tuple :
    
    Argument 'minBounds':
        C++ type: float const *
        Python type: vector_float32
    Argument 'maxBounds':
        C++ type: float const *
        Python type: vector_float32
    Argument 'neighborsIdx':
        C++ type: ::std::vector< int > *
        Python type: vector_int
        Output argument: omitted from input and returned as output.
    Argument 'neighbors':
        C++ type: ::cv::Mat *
        Python type: Mat
        Output argument: omitted from input and returned as output.
    Returns:
        (neighborsIdx, neighbors)

    C++ signature :
        boost::python::tuple findOrthoRange(cv::KDTree,std::vector<float, std::allocator<float> >,std::vector<float, std::allocator<float> >)

getPoint(...)

 

getPoint( (object)arg1, (object)ptidx) -> object :

    C++ signature :
        sdcpp::ndarray getPoint(boost::python::api::object,int)

getPoints(...)

 

getPoints( (KDTree)inst, (vector_int)idx) -> object :
    
    Argument 'idx':
        C++ type: int const *
        Python type: vector_int
    Argument 'nidx':
        Dependent argument: omitted from input. Its value is derived from 
        argument 'idx'.
    Argument 'pts':
        C++ type: ::cv::Mat &
        Python type: Mat
        Output argument: omitted from input and returned as output.
    Returns:
        pts

    C++ signature :
        boost::python::api::object getPoints(cv::KDTree,std::vector<int, std::allocator<int> >)

getPoints( (KDTree)inst, (Mat)idxs) -> object :
    
    Argument 'pts':
        C++ type: ::cv::Mat &
        Python type: Mat
        Output argument: omitted from input and returned as output.
    Returns:
        pts

    C++ signature :
        boost::python::api::object getPoints(cv::KDTree,cv::Mat)


Property Details [hide private]

maxDepth

Get Method:
unreachable(...)
Set Method:
unreachable(...)

nodes

Get Method:
unreachable(...)
Set Method:
unreachable(...)

normType

Get Method:
unreachable(...)
Set Method:
unreachable(...)

points

Get Method:
unreachable(...)
Set Method:
unreachable(...)

this

Get Method:
unreachable(...)