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

Class MatND

 object --+    
          |    
??.instance --+
              |
             MatND


Property 'ndarray' provides a numpy.ndarray view on the object.
If you create a reference to 'ndarray', you must keep the object unchanged until your reference is deleted, or Python may crash!

To create an instance of MatND that shares the same data with an ndarray instance, use:
    'MatND.from_ndarray(a)' or 'asMatND(a)
where 'a' is an ndarray instance. Similarly, to avoid a potential Python crash, you must keep the current instance unchanged until the reference is deleted.

Nested Classes [hide private]
  __array_1_unsigned_int_32
Instance Methods [hide private]
 
__call__(...)
__call__( (MatND)arg1, (Mat)ranges) -> MatND : Use asMat() to convert 'ranges' from a Python sequence to a Mat.
 
__getitem__(self, *args, **kwds)
 
__getslice__(self, *args, **kwds)
 
__init__(...)
__init__( (object)arg1) -> None :
 
__reduce__(...)
helper for pickle
 
__repr__(self)
repr(x)
 
__setitem__(self, *args, **kwds)
 
__setslice__(self, *args, **kwds)
 
addref(...)
addref( (MatND)arg1) -> None :
 
as__scope_cv_scope_Mat(...)
as__scope_cv_scope_Mat( (MatND)arg1) -> Mat :
 
assign(...)
assign( (MatND)arg1, (MatND)m) -> MatND :
 
assignTo(...)
assignTo( (MatND)arg1, (MatND)m, (object)type) -> None :
 
channels(...)
channels( (MatND)arg1) -> int :
 
clone(...)
clone( (MatND)arg1) -> MatND :
 
convertTo(...)
convertTo( (MatND)arg1, (MatND)m, (object)rtype [, (object)alpha=1 [, (object)beta=0]]) -> None :
 
copyTo(...)
copyTo( (MatND)arg1, (MatND)m) -> None :
 
create(...)
create( (MatND)inst, (Mat)_sizes, (object)_type) -> None :
 
depth(...)
depth( (MatND)arg1) -> int :
 
elemSize(...)
elemSize( (MatND)arg1) -> int :
 
elemSize1(...)
elemSize1( (MatND)arg1) -> int :
 
isContinuous(...)
isContinuous( (MatND)arg1) -> bool :
 
release(...)
release( (MatND)arg1) -> None :
 
reshape(...)
reshape( (MatND)inst, (object)_newcn [, (Mat)_newsz=Mat()]) -> object :
 
setTo(...)
setTo( (MatND)arg1, (Scalar)s [, (MatND)mask=MatND(shape=(), nchannels=1, depth=0): array(0, dtype=uint8)]) -> MatND :
 
step1(...)
step1( (MatND)arg1, (object)i) -> int :
 
type(...)
type( (MatND)arg1) -> int :

Inherited from unreachable.instance: __new__

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

Static Methods [hide private]
 
from_ndarray(...)
from_ndarray( (object)arr) -> object :
Class Variables [hide private]
  AUTO_STEP = -1
  CONTINUOUS_FLAG = 16384
  MAGIC_VAL = 1123942400
  MAX_DIM = 32
  __instance_size__ = 292
Properties [hide private]
  data
  dims
  flags
  ndarray
  size
  step
  this

Inherited from object: __class__

Method Details [hide private]

__call__(...)
(Call operator)

 

__call__( (MatND)arg1, (Mat)ranges) -> MatND :
    Use asMat() to convert 'ranges' from a Python sequence to a Mat.

    C++ signature :
        cv::MatND __call__(cv::MatND,cv::Mat)

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (MatND)m) -> None :

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

__init__( (object)arg1, (Mat)m) -> None :

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

__init__( (object)arg1, (Mat)_sizes, (object)_type) -> object :
    Use asMat() to convert '_sizes' from a Python sequence to a Mat.

    C++ signature :
        void* __init__(boost::python::api::object,cv::Mat,int)

__init__( (object)arg1, (Mat)_sizes, (object)_type, (Scalar)s) -> object :
    Use asMat() to convert '_sizes' from a Python sequence to a Mat.

    C++ signature :
        void* __init__(boost::python::api::object,cv::Mat,int,cv::Scalar_<double>)

__init__( (object)arg1, (MatND)m, (Mat)_ranges) -> object :
    Use asMat() to convert '_ranges' from a Python sequence to a Mat.

    C++ signature :
        void* __init__(boost::python::api::object,cv::MatND,cv::Mat)

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

addref(...)

 

addref( (MatND)arg1) -> None :

    C++ signature :
        void addref(cv::MatND {lvalue})

as__scope_cv_scope_Mat(...)

 

as__scope_cv_scope_Mat( (MatND)arg1) -> Mat :
    
    Wrapped function:
        operator ::cv::Mat

    C++ signature :
        cv::Mat as__scope_cv_scope_Mat(cv::MatND {lvalue})

assign(...)

 

assign( (MatND)arg1, (MatND)m) -> MatND :
    
    Wrapped function:
        operator=

    C++ signature :
        cv::MatND {lvalue} assign(cv::MatND {lvalue},cv::MatND)

assign( (MatND)arg1, (Scalar)s) -> MatND :
    
    Wrapped function:
        operator=

    C++ signature :
        cv::MatND {lvalue} assign(cv::MatND {lvalue},cv::Scalar_<double>)

assignTo(...)

 

assignTo( (MatND)arg1, (MatND)m, (object)type) -> None :

    C++ signature :
        void assignTo(cv::MatND {lvalue},cv::MatND {lvalue},int)

channels(...)

 

channels( (MatND)arg1) -> int :

    C++ signature :
        int channels(cv::MatND {lvalue})

clone(...)

 

clone( (MatND)arg1) -> MatND :

    C++ signature :
        cv::MatND clone(cv::MatND {lvalue})

convertTo(...)

 

convertTo( (MatND)arg1, (MatND)m, (object)rtype [, (object)alpha=1 [, (object)beta=0]]) -> None :

    C++ signature :
        void convertTo(cv::MatND {lvalue},cv::MatND {lvalue},int [,double=1 [,double=0]])

copyTo(...)

 

copyTo( (MatND)arg1, (MatND)m) -> None :

    C++ signature :
        void copyTo(cv::MatND {lvalue},cv::MatND {lvalue})

copyTo( (MatND)arg1, (MatND)m, (MatND)mask) -> None :

    C++ signature :
        void copyTo(cv::MatND {lvalue},cv::MatND {lvalue},cv::MatND)

create(...)

 

create( (MatND)inst, (Mat)_sizes, (object)_type) -> None :
    
    Argument '_ndims':
        Dependent argument: omitted from the function's calling sequence, as 
        its value is derived from argument '_sizes'.
    Argument '_sizes':
        C/C++ type: 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)).

    C++ signature :
        void create(cv::MatND {lvalue},cv::Mat,int)

depth(...)

 

depth( (MatND)arg1) -> int :

    C++ signature :
        int depth(cv::MatND {lvalue})

elemSize(...)

 

elemSize( (MatND)arg1) -> int :

    C++ signature :
        unsigned int elemSize(cv::MatND {lvalue})

elemSize1(...)

 

elemSize1( (MatND)arg1) -> int :

    C++ signature :
        unsigned int elemSize1(cv::MatND {lvalue})

from_ndarray(...)
Static Method

 


from_ndarray( (object)arr) -> object :

    C++ signature :
        boost::python::api::object from_ndarray(boost::python::ndarray)
    Creates a MatND view on an ndarray instance.

isContinuous(...)

 

isContinuous( (MatND)arg1) -> bool :

    C++ signature :
        bool isContinuous(cv::MatND {lvalue})

release(...)

 

release( (MatND)arg1) -> None :

    C++ signature :
        void release(cv::MatND {lvalue})

reshape(...)

 

reshape( (MatND)inst, (object)_newcn [, (Mat)_newsz=Mat()]) -> object :
    
    Argument '_newsz':
        C/C++ type: 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 '_newndims':
        Dependent argument: omitted from the function's calling sequence, as 
        its value is derived from argument '_newsz'.

    C++ signature :
        boost::python::api::object reshape(cv::MatND,int [,cv::Mat=Mat()])

setTo(...)

 

setTo( (MatND)arg1, (Scalar)s [, (MatND)mask=MatND(shape=(), nchannels=1, depth=0):
array(0, dtype=uint8)]) -> MatND :

    C++ signature :
        cv::MatND {lvalue} setTo(cv::MatND {lvalue},cv::Scalar_<double> [,cv::MatND=MatND(shape=(), nchannels=1, depth=0):
array(0, dtype=uint8)])

step1(...)

 

step1( (MatND)arg1, (object)i) -> int :

    C++ signature :
        unsigned int step1(cv::MatND {lvalue},int)

type(...)

 

type( (MatND)arg1) -> int :

    C++ signature :
        int type(cv::MatND {lvalue})


Property Details [hide private]

data

Get Method:
unreachable(...)

dims

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

flags

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

ndarray

Get Method:
unreachable(...)

size

Get Method:
unreachable(...)

step

Get Method:
unreachable(...)

this

Get Method:
unreachable(...)