Package pyopencv :: Module pyopencvext :: Class FernClassifier
[hide private]
[frames] | no frames]

Class FernClassifier

 object --+    
          |    
??.instance --+
              |
             FernClassifier

Nested Classes [hide private]
  Feature
Instance Methods [hide private]
 
__call__(...)
__call__( (FernClassifier)inst, (Mat)img, (Point2f)kpt) -> tuple :
 
__init__(...)
__init__( (object)arg1) -> None :
 
__reduce__(...)
helper for pickle
 
clear(...)
clear( (FernClassifier)arg1) -> None :
 
getClassCount(...)
getClassCount( (FernClassifier)arg1) -> int :
 
getCompressionMethod(...)
getCompressionMethod( (FernClassifier)arg1) -> int :
 
getPatchSize(...)
getPatchSize( (FernClassifier)arg1) -> Size2i :
 
getSignatureSize(...)
getSignatureSize( (FernClassifier)arg1) -> int :
 
getStructCount(...)
getStructCount( (FernClassifier)arg1) -> int :
 
getStructSize(...)
getStructSize( (FernClassifier)arg1) -> int :
 
read(...)
read( (FernClassifier)arg1, (FileNode)n) -> None :
 
setVerbose(...)
setVerbose( (FernClassifier)arg1, (bool)verbose) -> None :
 
train(...)
train( (FernClassifier)inst, (Mat)points, (list)refimgs [, (Mat)labels=Mat() [, (object)_nclasses=0 [, (object)_patchSize=31 [, (object)_signatureSize=176 [, (object)_nstructs=50 [, (object)_structSize=9 [, (object)_nviews=5000 [, (object)_compressionMethod=0 [, (PatchGenerator)patchGenerator=<pyopencv.pyopencvext.PatchGenerator object at 0x015C47A0>]]]]]]]]]) -> None :
 
trainFromSingleView(...)
trainFromSingleView( (FernClassifier)inst, (Mat)image, (list)keypoints [, (object)_patchSize=31 [, (object)_signatureSize=176 [, (object)_nstructs=50 [, (object)_structSize=9 [, (object)_nviews=5000 [, (object)_compressionMethod=0 [, (PatchGenerator)patchGenerator=<pyopencv.pyopencvext.PatchGenerator object at 0x015C4828>]]]]]]]) -> None :
 
write(...)
write( (FernClassifier)arg1, (FileStorage)fs [, (object)name='']) -> None :

Inherited from unreachable.instance: __new__

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

Class Variables [hide private]
  COMPRESSION_NONE = 0
  COMPRESSION_PCA = 2
  COMPRESSION_RANDOM_PROJ = 1
  DEFAULT_COMPRESSION_METHOD = 0
  DEFAULT_SIGNATURE_SIZE = 176
  DEFAULT_STRUCTS = 50
  DEFAULT_STRUCT_SIZE = 9
  DEFAULT_VIEWS = 5000
  PATCH_SIZE = 31
  __instance_size__ = 88
Properties [hide private]
  this

Inherited from object: __class__

Method Details [hide private]

__call__(...)
(Call operator)

 

__call__( (FernClassifier)inst, (Mat)img, (Point2f)kpt) -> tuple :
    
    Wrapped function:
        operator()
    Argument 'signature':
        C/C++ type: ::std::vector< float > &.
        Python type: Mat.
        Invoke asMat() to convert a 1D Python sequence into a Mat, e.g. 
        asMat([0,1,2]) or asMat((0,1,2)).
        Output argument: omitted from the function's calling sequence, and is 
        returned along with the function's return value (if any).

    C++ signature :
        boost::python::tuple __call__(cv::FernClassifier,cv::Mat,cv::Point_<float>)

__call__( (FernClassifier)inst, (Mat)patch) -> tuple :
    
    Wrapped function:
        operator()
    Argument 'signature':
        C/C++ type: ::std::vector< float > &.
        Python type: Mat.
        Invoke asMat() to convert a 1D Python sequence into a Mat, e.g. 
        asMat([0,1,2]) or asMat((0,1,2)).
        Output argument: omitted from the function's calling sequence, and is 
        returned along with the function's return value (if any).

    C++ signature :
        boost::python::tuple __call__(cv::FernClassifier,cv::Mat)

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (FileNode)node) -> None :

    C++ signature :
        void __init__(_object*,cv::FileNode)

__init__( (object)arg1, (Mat)points, (list)refimgs [, (Mat)labels=Mat() [, (object)_nclasses=0 [, (object)_patchSize=31 [, (object)_signatureSize=176 [, (object)_nstructs=50 [, (object)_structSize=9 [, (object)_nviews=5000 [, (object)_compressionMethod=0 [, (PatchGenerator)patchGenerator=<pyopencv.pyopencvext.PatchGenerator object at 0x015C48B0>]]]]]]]]]) -> object :

    C++ signature :
        void* __init__(boost::python::api::object,cv::Mat,boost::python::list [,cv::Mat=Mat() [,int=0 [,int=31 [,int=176 [,int=50 [,int=9 [,int=5000 [,int=0 [,cv::PatchGenerator=<pyopencv.pyopencvext.PatchGenerator object at 0x015C48B0>]]]]]]]]])

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

clear(...)

 

clear( (FernClassifier)arg1) -> None :

    C++ signature :
        void clear(cv::FernClassifier {lvalue})

clear( (FernClassifier)arg1) -> None :

    C++ signature :
        void clear(FernClassifier_wrapper {lvalue})

getClassCount(...)

 

getClassCount( (FernClassifier)arg1) -> int :

    C++ signature :
        int getClassCount(cv::FernClassifier {lvalue})

getCompressionMethod(...)

 

getCompressionMethod( (FernClassifier)arg1) -> int :

    C++ signature :
        int getCompressionMethod(cv::FernClassifier {lvalue})

getPatchSize(...)

 

getPatchSize( (FernClassifier)arg1) -> Size2i :

    C++ signature :
        cv::Size_<int> getPatchSize(cv::FernClassifier {lvalue})

getSignatureSize(...)

 

getSignatureSize( (FernClassifier)arg1) -> int :

    C++ signature :
        int getSignatureSize(cv::FernClassifier {lvalue})

getStructCount(...)

 

getStructCount( (FernClassifier)arg1) -> int :

    C++ signature :
        int getStructCount(cv::FernClassifier {lvalue})

getStructSize(...)

 

getStructSize( (FernClassifier)arg1) -> int :

    C++ signature :
        int getStructSize(cv::FernClassifier {lvalue})

read(...)

 

read( (FernClassifier)arg1, (FileNode)n) -> None :

    C++ signature :
        void read(cv::FernClassifier {lvalue},cv::FileNode)

read( (FernClassifier)arg1, (FileNode)n) -> None :

    C++ signature :
        void read(FernClassifier_wrapper {lvalue},cv::FileNode)

setVerbose(...)

 

setVerbose( (FernClassifier)arg1, (bool)verbose) -> None :

    C++ signature :
        void setVerbose(cv::FernClassifier {lvalue},bool)

train(...)

 

train( (FernClassifier)inst, (Mat)points, (list)refimgs [, (Mat)labels=Mat() [, (object)_nclasses=0 [, (object)_patchSize=31 [, (object)_signatureSize=176 [, (object)_nstructs=50 [, (object)_structSize=9 [, (object)_nviews=5000 [, (object)_compressionMethod=0 [, (PatchGenerator)patchGenerator=<pyopencv.pyopencvext.PatchGenerator object at 0x015C47A0>]]]]]]]]]) -> None :
    
    Argument 'refimgs':
        C/C++ type: ::std::vector< cv::Ptr<cv::Mat> > const &.
        Python type: list.
        To convert a Mat into a list, invoke one of Mat's member functions 
        to_list_of_...().
    Argument 'labels':
        C/C++ type: ::std::vector< int > const &.
        Python type: Mat.
        Invoke asMat() to convert a 1D Python sequence into a Mat, e.g. 
        asMat([0,1,2]) or asMat((0,1,2)).
    Argument 'points':
        C/C++ type: ::std::vector< cv::Point_<float> > const &.
        Python type: Mat.
        Invoke asMat() to convert a 1D Python sequence into a Mat, e.g. 
        asMat([0,1,2]) or asMat((0,1,2)).

    C++ signature :
        void train(cv::FernClassifier {lvalue},cv::Mat,boost::python::list [,cv::Mat=Mat() [,int=0 [,int=31 [,int=176 [,int=50 [,int=9 [,int=5000 [,int=0 [,cv::PatchGenerator=<pyopencv.pyopencvext.PatchGenerator object at 0x015C47A0>]]]]]]]]])

trainFromSingleView(...)

 

trainFromSingleView( (FernClassifier)inst, (Mat)image, (list)keypoints [, (object)_patchSize=31 [, (object)_signatureSize=176 [, (object)_nstructs=50 [, (object)_structSize=9 [, (object)_nviews=5000 [, (object)_compressionMethod=0 [, (PatchGenerator)patchGenerator=<pyopencv.pyopencvext.PatchGenerator object at 0x015C4828>]]]]]]]) -> None :
    
    Argument 'keypoints':
        C/C++ type: ::std::vector< cv::KeyPoint > const &.
        Python type: list.
        To convert a Mat into a list, invoke one of Mat's member functions 
        to_list_of_...().

    C++ signature :
        void trainFromSingleView(cv::FernClassifier {lvalue},cv::Mat,boost::python::list [,int=31 [,int=176 [,int=50 [,int=9 [,int=5000 [,int=0 [,cv::PatchGenerator=<pyopencv.pyopencvext.PatchGenerator object at 0x015C4828>]]]]]]])

write(...)

 

write( (FernClassifier)arg1, (FileStorage)fs [, (object)name='']) -> None :

    C++ signature :
        void write(cv::FernClassifier {lvalue},cv::FileStorage {lvalue} [,std::string=''])

write( (FernClassifier)arg1, (FileStorage)fs [, (object)name='']) -> None :

    C++ signature :
        void write(FernClassifier_wrapper {lvalue},cv::FileStorage {lvalue} [,std::string=''])


Property Details [hide private]

this

Get Method:
unreachable(...)