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

Class Mat

 object --+    
          |    
??.instance --+
              |
             Mat
Known Subclasses:


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 Mat that shares the same data with an ndarray instance, use:
    'Mat.from_ndarray(a)' or 'asMat(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.

Instance Methods [hide private]
 
__call__(...)
__call__( (Mat)arg1, (Range)rowRange, (Range)colRange) -> 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( (Mat)arg1) -> None :
 
adjustROI(...)
adjustROI( (Mat)arg1, (object)dtop, (object)dbottom, (object)dleft, (object)dright) -> Mat :
 
assign(...)
assign( (Mat)arg1, (Mat)m) -> Mat :
 
assignTo(...)
assignTo( (Mat)arg1, (Mat)m [, (object)type=-1]) -> None :
 
channels(...)
channels( (Mat)arg1) -> int :
 
clone(...)
clone( (Mat)arg1) -> Mat :
 
col(...)
col( (Mat)arg1, (object)x) -> Mat :
 
colRange(...)
colRange( (Mat)arg1, (object)startcol, (object)endcol) -> Mat :
 
convertTo(...)
convertTo( (Mat)arg1, (Mat)m, (object)rtype [, (object)alpha=1 [, (object)beta=0]]) -> None :
 
copyTo(...)
copyTo( (Mat)arg1, (Mat)m) -> None :
 
create(...)
create( (Mat)arg1, (object)_rows, (object)_cols, (object)_type) -> None :
 
cross(...)
cross( (Mat)arg1, (Mat)m) -> Mat :
 
depth(...)
depth( (Mat)arg1) -> int :
 
dot(...)
dot( (Mat)arg1, (Mat)m) -> float :
 
elemSize(...)
elemSize( (Mat)arg1) -> int :
 
elemSize1(...)
elemSize1( (Mat)arg1) -> int :
 
empty(...)
empty( (Mat)arg1) -> bool :
 
isContinuous(...)
isContinuous( (Mat)arg1) -> bool :
 
locateROI(...)
locateROI( (Mat)arg1, (Size2i)wholeSize, (Point2i)ofs) -> None :
 
release(...)
release( (Mat)arg1) -> None :
 
reshape(...)
reshape( (Mat)arg1, (object)_cn [, (object)_rows=0]) -> Mat :
 
row(...)
row( (Mat)arg1, (object)y) -> Mat :
 
rowRange(...)
rowRange( (Mat)arg1, (object)startrow, (object)endrow) -> Mat :
 
setTo(...)
setTo( (Mat)arg1, (Scalar)s [, (Mat)mask=Mat()]) -> Mat :
 
size(...)
size( (Mat)arg1) -> Size2i :
 
step1(...)
step1( (Mat)arg1) -> int :
 
to_gtk_pixbuf(self)
Converts a CV_8UC3 Mat into a gtk.gdk.pixbuf
 
to_list_of_Point2d(...)
to_list_of_Point2d( (Mat)arg1) -> list :
 
to_list_of_Point2f(...)
to_list_of_Point2f( (Mat)arg1) -> list :
 
to_list_of_Point2i(...)
to_list_of_Point2i( (Mat)arg1) -> list :
 
to_list_of_Point3d(...)
to_list_of_Point3d( (Mat)arg1) -> list :
 
to_list_of_Point3f(...)
to_list_of_Point3f( (Mat)arg1) -> list :
 
to_list_of_Point3i(...)
to_list_of_Point3i( (Mat)arg1) -> list :
 
to_list_of_Range(...)
to_list_of_Range( (Mat)arg1) -> list :
 
to_list_of_Rect(...)
to_list_of_Rect( (Mat)arg1) -> list :
 
to_list_of_Rectd(...)
to_list_of_Rectd( (Mat)arg1) -> list :
 
to_list_of_Rectf(...)
to_list_of_Rectf( (Mat)arg1) -> list :
 
to_list_of_RotatedRect(...)
to_list_of_RotatedRect( (Mat)arg1) -> list :
 
to_list_of_Scalar(...)
to_list_of_Scalar( (Mat)arg1) -> list :
 
to_list_of_Size2d(...)
to_list_of_Size2d( (Mat)arg1) -> list :
 
to_list_of_Size2f(...)
to_list_of_Size2f( (Mat)arg1) -> list :
 
to_list_of_Size2i(...)
to_list_of_Size2i( (Mat)arg1) -> list :
 
to_list_of_Vec2b(...)
to_list_of_Vec2b( (Mat)arg1) -> list :
 
to_list_of_Vec2d(...)
to_list_of_Vec2d( (Mat)arg1) -> list :
 
to_list_of_Vec2f(...)
to_list_of_Vec2f( (Mat)arg1) -> list :
 
to_list_of_Vec2i(...)
to_list_of_Vec2i( (Mat)arg1) -> list :
 
to_list_of_Vec2s(...)
to_list_of_Vec2s( (Mat)arg1) -> list :
 
to_list_of_Vec2w(...)
to_list_of_Vec2w( (Mat)arg1) -> list :
 
to_list_of_Vec3b(...)
to_list_of_Vec3b( (Mat)arg1) -> list :
 
to_list_of_Vec3d(...)
to_list_of_Vec3d( (Mat)arg1) -> list :
 
to_list_of_Vec3f(...)
to_list_of_Vec3f( (Mat)arg1) -> list :
 
to_list_of_Vec3i(...)
to_list_of_Vec3i( (Mat)arg1) -> list :
 
to_list_of_Vec3s(...)
to_list_of_Vec3s( (Mat)arg1) -> list :
 
to_list_of_Vec3w(...)
to_list_of_Vec3w( (Mat)arg1) -> list :
 
to_list_of_Vec4b(...)
to_list_of_Vec4b( (Mat)arg1) -> list :
 
to_list_of_Vec4d(...)
to_list_of_Vec4d( (Mat)arg1) -> list :
 
to_list_of_Vec4f(...)
to_list_of_Vec4f( (Mat)arg1) -> list :
 
to_list_of_Vec4i(...)
to_list_of_Vec4i( (Mat)arg1) -> list :
 
to_list_of_Vec4s(...)
to_list_of_Vec4s( (Mat)arg1) -> list :
 
to_list_of_Vec4w(...)
to_list_of_Vec4w( (Mat)arg1) -> list :
 
to_list_of_Vec6d(...)
to_list_of_Vec6d( (Mat)arg1) -> list :
 
to_list_of_Vec6f(...)
to_list_of_Vec6f( (Mat)arg1) -> list :
 
to_list_of_float32(...)
to_list_of_float32( (Mat)arg1) -> list :
 
to_list_of_float64(...)
to_list_of_float64( (Mat)arg1) -> list :
 
to_list_of_int16(...)
to_list_of_int16( (Mat)arg1) -> list :
 
to_list_of_int32(...)
to_list_of_int32( (Mat)arg1) -> list :
 
to_list_of_int8(...)
to_list_of_int8( (Mat)arg1) -> list :
 
to_list_of_uint16(...)
to_list_of_uint16( (Mat)arg1) -> list :
 
to_list_of_uint8(...)
to_list_of_uint8( (Mat)arg1) -> list :
 
to_pil_image(self)
Converts a Mat into a PIL Image
 
to_wx_bitmap(self)
Converts a CV_8UC3 Mat into a wx.Bitmap
 
type(...)
type( (Mat)arg1) -> int :

Inherited from unreachable.instance: __new__

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

Static Methods [hide private]
 
diag(...)
diag( (Mat)arg1 [, (object)d=0]) -> Mat :
 
from_gtk_pixbuf(pixbuf)
Converts a gtk.gdk.pixbuf into a CV_8UC3 Mat
 
from_list_of_Point2d(...)
from_list_of_Point2d( (object)arg1) -> object :
 
from_list_of_Point2f(...)
from_list_of_Point2f( (object)arg1) -> object :
 
from_list_of_Point2i(...)
from_list_of_Point2i( (object)arg1) -> object :
 
from_list_of_Point3d(...)
from_list_of_Point3d( (object)arg1) -> object :
 
from_list_of_Point3f(...)
from_list_of_Point3f( (object)arg1) -> object :
 
from_list_of_Point3i(...)
from_list_of_Point3i( (object)arg1) -> object :
 
from_list_of_Range(...)
from_list_of_Range( (object)arg1) -> object :
 
from_list_of_Rect(...)
from_list_of_Rect( (object)arg1) -> object :
 
from_list_of_Rectd(...)
from_list_of_Rectd( (object)arg1) -> object :
 
from_list_of_Rectf(...)
from_list_of_Rectf( (object)arg1) -> object :
 
from_list_of_RotatedRect(...)
from_list_of_RotatedRect( (object)arg1) -> object :
 
from_list_of_Scalar(...)
from_list_of_Scalar( (object)arg1) -> object :
 
from_list_of_Size2d(...)
from_list_of_Size2d( (object)arg1) -> object :
 
from_list_of_Size2f(...)
from_list_of_Size2f( (object)arg1) -> object :
 
from_list_of_Size2i(...)
from_list_of_Size2i( (object)arg1) -> object :
 
from_list_of_Vec2b(...)
from_list_of_Vec2b( (object)arg1) -> object :
 
from_list_of_Vec2d(...)
from_list_of_Vec2d( (object)arg1) -> object :
 
from_list_of_Vec2f(...)
from_list_of_Vec2f( (object)arg1) -> object :
 
from_list_of_Vec2i(...)
from_list_of_Vec2i( (object)arg1) -> object :
 
from_list_of_Vec2s(...)
from_list_of_Vec2s( (object)arg1) -> object :
 
from_list_of_Vec2w(...)
from_list_of_Vec2w( (object)arg1) -> object :
 
from_list_of_Vec3b(...)
from_list_of_Vec3b( (object)arg1) -> object :
 
from_list_of_Vec3d(...)
from_list_of_Vec3d( (object)arg1) -> object :
 
from_list_of_Vec3f(...)
from_list_of_Vec3f( (object)arg1) -> object :
 
from_list_of_Vec3i(...)
from_list_of_Vec3i( (object)arg1) -> object :
 
from_list_of_Vec3s(...)
from_list_of_Vec3s( (object)arg1) -> object :
 
from_list_of_Vec3w(...)
from_list_of_Vec3w( (object)arg1) -> object :
 
from_list_of_Vec4b(...)
from_list_of_Vec4b( (object)arg1) -> object :
 
from_list_of_Vec4d(...)
from_list_of_Vec4d( (object)arg1) -> object :
 
from_list_of_Vec4f(...)
from_list_of_Vec4f( (object)arg1) -> object :
 
from_list_of_Vec4i(...)
from_list_of_Vec4i( (object)arg1) -> object :
 
from_list_of_Vec4s(...)
from_list_of_Vec4s( (object)arg1) -> object :
 
from_list_of_Vec4w(...)
from_list_of_Vec4w( (object)arg1) -> object :
 
from_list_of_Vec6d(...)
from_list_of_Vec6d( (object)arg1) -> object :
 
from_list_of_Vec6f(...)
from_list_of_Vec6f( (object)arg1) -> object :
 
from_list_of_float32(...)
from_list_of_float32( (object)arg1) -> object :
 
from_list_of_float64(...)
from_list_of_float64( (object)arg1) -> object :
 
from_list_of_int16(...)
from_list_of_int16( (object)arg1) -> object :
 
from_list_of_int32(...)
from_list_of_int32( (object)arg1) -> object :
 
from_list_of_int8(...)
from_list_of_int8( (object)arg1) -> object :
 
from_list_of_uint16(...)
from_list_of_uint16( (object)arg1) -> object :
 
from_list_of_uint8(...)
from_list_of_uint8( (object)arg1) -> object :
 
from_ndarray(...)
from_ndarray( (object)arr) -> object :
 
from_pil_image(pilimage)
Converts a PIL.Image into an IplImage
Class Variables [hide private]
  AUTO_STEP = 0
  CONTINUOUS_FLAG = 16384
  MAGIC_VAL = 1124007936
  __instance_size__ = 40
Properties [hide private]
  cols
  data
  flags
  ndarray
  rows
  step
  this

Inherited from object: __class__

Method Details [hide private]

__call__(...)
(Call operator)

 

__call__( (Mat)arg1, (Range)rowRange, (Range)colRange) -> Mat :

    C++ signature :
        cv::Mat __call__(cv::Mat {lvalue},cv::Range,cv::Range)

__call__( (Mat)arg1, (Rect)roi) -> Mat :

    C++ signature :
        cv::Mat __call__(cv::Mat {lvalue},cv::Rect_<int>)

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (object)_rows, (object)_cols, (object)_type) -> None :

    C++ signature :
        void __init__(_object*,int,int,int)

__init__( (object)arg1, (object)_rows, (object)_cols, (object)_type, (Scalar)_s) -> None :

    C++ signature :
        void __init__(_object*,int,int,int,cv::Scalar_<double>)

__init__( (object)arg1, (Size2i)_size, (object)_type) -> None :

    C++ signature :
        void __init__(_object*,cv::Size_<int>,int)

__init__( (object)arg1, (Size2i)_size, (object)_type, (Scalar)_s) -> None :

    C++ signature :
        void __init__(_object*,cv::Size_<int>,int,cv::Scalar_<double>)

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

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

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

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

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

    C++ signature :
        void __init__(_object*,cv::Mat,cv::Rect_<int>)

__init__( (object)arg1, (object)arg1) -> object :

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

__init__( (object)arg1, (object)arg1, (object)arg2) -> object :

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

__init__( (object)arg1, (object)arg1, (object)arg2, (object)arg3) -> object :

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

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( (Mat)arg1) -> None :

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

adjustROI(...)

 

adjustROI( (Mat)arg1, (object)dtop, (object)dbottom, (object)dleft, (object)dright) -> Mat :

    C++ signature :
        cv::Mat {lvalue} adjustROI(cv::Mat {lvalue},int,int,int,int)

assign(...)

 

assign( (Mat)arg1, (Mat)m) -> Mat :

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

assign( (Mat)arg1, (Scalar)s) -> Mat :

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

assignTo(...)

 

assignTo( (Mat)arg1, (Mat)m [, (object)type=-1]) -> None :

    C++ signature :
        void assignTo(cv::Mat {lvalue},cv::Mat {lvalue} [,int=-1])

channels(...)

 

channels( (Mat)arg1) -> int :

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

clone(...)

 

clone( (Mat)arg1) -> Mat :

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

col(...)

 

col( (Mat)arg1, (object)x) -> Mat :

    C++ signature :
        cv::Mat col(cv::Mat {lvalue},int)

colRange(...)

 

colRange( (Mat)arg1, (object)startcol, (object)endcol) -> Mat :

    C++ signature :
        cv::Mat colRange(cv::Mat {lvalue},int,int)

colRange( (Mat)arg1, (Range)r) -> Mat :

    C++ signature :
        cv::Mat colRange(cv::Mat {lvalue},cv::Range)

convertTo(...)

 

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

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

copyTo(...)

 

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

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

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

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

create(...)

 

create( (Mat)arg1, (object)_rows, (object)_cols, (object)_type) -> None :

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

create( (Mat)arg1, (Size2i)_size, (object)_type) -> None :

    C++ signature :
        void create(cv::Mat {lvalue},cv::Size_<int>,int)

cross(...)

 

cross( (Mat)arg1, (Mat)m) -> Mat :

    C++ signature :
        cv::Mat cross(cv::Mat {lvalue},cv::Mat)

depth(...)

 

depth( (Mat)arg1) -> int :

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

diag(...)
Static Method

 

diag( (Mat)arg1 [, (object)d=0]) -> Mat :

    C++ signature :
        cv::Mat diag(cv::Mat {lvalue} [,int=0])

diag( (Mat)d) -> Mat :

    C++ signature :
        cv::Mat diag(cv::Mat)

dot(...)

 

dot( (Mat)arg1, (Mat)m) -> float :

    C++ signature :
        double dot(cv::Mat {lvalue},cv::Mat)

elemSize(...)

 

elemSize( (Mat)arg1) -> int :

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

elemSize1(...)

 

elemSize1( (Mat)arg1) -> int :

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

empty(...)

 

empty( (Mat)arg1) -> bool :

    C++ signature :
        bool empty(cv::Mat {lvalue})

from_gtk_pixbuf(pixbuf)
Static Method

 

Converts a gtk.gdk.pixbuf into a CV_8UC3 Mat

The pixbuf must have 8 bits per sample and no alpha channel, or else a TypeError is raised. Since in gtk, a pixbuf's color space is RGB, the output Mat would therefore use the same color space (i.e. you may want to call cvCvtColor() to convert the color space *after* invoking this function). Whether the pixbuf's data is shared or copied to the Mat depends on whether the function gtk.gdk.get_pixels() returns its data array or a copy of the array, and not on PyOpenCV.

from_list_of_Point2d(...)
Static Method

 

from_list_of_Point2d( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Point2d(boost::python::sequence)

from_list_of_Point2f(...)
Static Method

 

from_list_of_Point2f( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Point2f(boost::python::sequence)

from_list_of_Point2i(...)
Static Method

 

from_list_of_Point2i( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Point2i(boost::python::sequence)

from_list_of_Point3d(...)
Static Method

 

from_list_of_Point3d( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Point3d(boost::python::sequence)

from_list_of_Point3f(...)
Static Method

 

from_list_of_Point3f( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Point3f(boost::python::sequence)

from_list_of_Point3i(...)
Static Method

 

from_list_of_Point3i( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Point3i(boost::python::sequence)

from_list_of_Range(...)
Static Method

 

from_list_of_Range( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Range(boost::python::sequence)

from_list_of_Rect(...)
Static Method

 

from_list_of_Rect( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Rect(boost::python::sequence)

from_list_of_Rectd(...)
Static Method

 

from_list_of_Rectd( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Rectd(boost::python::sequence)

from_list_of_Rectf(...)
Static Method

 

from_list_of_Rectf( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Rectf(boost::python::sequence)

from_list_of_RotatedRect(...)
Static Method

 

from_list_of_RotatedRect( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_RotatedRect(boost::python::sequence)

from_list_of_Scalar(...)
Static Method

 

from_list_of_Scalar( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Scalar(boost::python::sequence)

from_list_of_Size2d(...)
Static Method

 

from_list_of_Size2d( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Size2d(boost::python::sequence)

from_list_of_Size2f(...)
Static Method

 

from_list_of_Size2f( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Size2f(boost::python::sequence)

from_list_of_Size2i(...)
Static Method

 

from_list_of_Size2i( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Size2i(boost::python::sequence)

from_list_of_Vec2b(...)
Static Method

 

from_list_of_Vec2b( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec2b(boost::python::sequence)

from_list_of_Vec2d(...)
Static Method

 

from_list_of_Vec2d( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec2d(boost::python::sequence)

from_list_of_Vec2f(...)
Static Method

 

from_list_of_Vec2f( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec2f(boost::python::sequence)

from_list_of_Vec2i(...)
Static Method

 

from_list_of_Vec2i( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec2i(boost::python::sequence)

from_list_of_Vec2s(...)
Static Method

 

from_list_of_Vec2s( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec2s(boost::python::sequence)

from_list_of_Vec2w(...)
Static Method

 

from_list_of_Vec2w( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec2w(boost::python::sequence)

from_list_of_Vec3b(...)
Static Method

 

from_list_of_Vec3b( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec3b(boost::python::sequence)

from_list_of_Vec3d(...)
Static Method

 

from_list_of_Vec3d( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec3d(boost::python::sequence)

from_list_of_Vec3f(...)
Static Method

 

from_list_of_Vec3f( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec3f(boost::python::sequence)

from_list_of_Vec3i(...)
Static Method

 

from_list_of_Vec3i( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec3i(boost::python::sequence)

from_list_of_Vec3s(...)
Static Method

 

from_list_of_Vec3s( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec3s(boost::python::sequence)

from_list_of_Vec3w(...)
Static Method

 

from_list_of_Vec3w( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec3w(boost::python::sequence)

from_list_of_Vec4b(...)
Static Method

 

from_list_of_Vec4b( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec4b(boost::python::sequence)

from_list_of_Vec4d(...)
Static Method

 

from_list_of_Vec4d( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec4d(boost::python::sequence)

from_list_of_Vec4f(...)
Static Method

 

from_list_of_Vec4f( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec4f(boost::python::sequence)

from_list_of_Vec4i(...)
Static Method

 

from_list_of_Vec4i( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec4i(boost::python::sequence)

from_list_of_Vec4s(...)
Static Method

 

from_list_of_Vec4s( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec4s(boost::python::sequence)

from_list_of_Vec4w(...)
Static Method

 

from_list_of_Vec4w( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec4w(boost::python::sequence)

from_list_of_Vec6d(...)
Static Method

 

from_list_of_Vec6d( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec6d(boost::python::sequence)

from_list_of_Vec6f(...)
Static Method

 

from_list_of_Vec6f( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_Vec6f(boost::python::sequence)

from_list_of_float32(...)
Static Method

 

from_list_of_float32( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_float32(boost::python::sequence)

from_list_of_float64(...)
Static Method

 

from_list_of_float64( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_float64(boost::python::sequence)

from_list_of_int16(...)
Static Method

 

from_list_of_int16( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_int16(boost::python::sequence)

from_list_of_int32(...)
Static Method

 

from_list_of_int32( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_int32(boost::python::sequence)

from_list_of_int8(...)
Static Method

 

from_list_of_int8( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_int8(boost::python::sequence)

from_list_of_uint16(...)
Static Method

 

from_list_of_uint16( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_uint16(boost::python::sequence)

from_list_of_uint8(...)
Static Method

 

from_list_of_uint8( (object)arg1) -> object :

    C++ signature :
        boost::python::api::object from_list_of_uint8(boost::python::sequence)

from_ndarray(...)
Static Method

 


from_ndarray( (object)arr) -> object :

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

from_pil_image(pilimage)
Static Method

 

Converts a PIL.Image into an IplImage

Right now, PyOpenCV can convert PIL.Images of band ('L'), ('I'), ('F'), ('R', 'G', 'B'), or ('R', 'G', 'B', 'A'). Whether the data array is copied from PIL.Image to IplImage or shared between the two images depends on how PIL converts the PIL.Image's data into a string (i.e. via function PIL.Image.tostring()).

isContinuous(...)

 

isContinuous( (Mat)arg1) -> bool :

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

locateROI(...)

 

locateROI( (Mat)arg1, (Size2i)wholeSize, (Point2i)ofs) -> None :

    C++ signature :
        void locateROI(cv::Mat {lvalue},cv::Size_<int> {lvalue},cv::Point_<int> {lvalue})

release(...)

 

release( (Mat)arg1) -> None :

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

reshape(...)

 

reshape( (Mat)arg1, (object)_cn [, (object)_rows=0]) -> Mat :

    C++ signature :
        cv::Mat reshape(cv::Mat {lvalue},int [,int=0])

row(...)

 

row( (Mat)arg1, (object)y) -> Mat :

    C++ signature :
        cv::Mat row(cv::Mat {lvalue},int)

rowRange(...)

 

rowRange( (Mat)arg1, (object)startrow, (object)endrow) -> Mat :

    C++ signature :
        cv::Mat rowRange(cv::Mat {lvalue},int,int)

rowRange( (Mat)arg1, (Range)r) -> Mat :

    C++ signature :
        cv::Mat rowRange(cv::Mat {lvalue},cv::Range)

setTo(...)

 

setTo( (Mat)arg1, (Scalar)s [, (Mat)mask=Mat()]) -> Mat :

    C++ signature :
        cv::Mat {lvalue} setTo(cv::Mat {lvalue},cv::Scalar_<double> [,cv::Mat=Mat()])

size(...)

 

size( (Mat)arg1) -> Size2i :

    C++ signature :
        cv::Size_<int> size(cv::Mat {lvalue})

step1(...)

 

step1( (Mat)arg1) -> int :

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

to_gtk_pixbuf(self)

 

Converts a CV_8UC3 Mat into a gtk.gdk.pixbuf

The Mat must be of type CV_8UC3, or else a TypeError is raised. Since in gtk, a pixbuf's color space is RGB, it is assumed that the Mat is also using this color space (i.e. you may want to call cvCvtColor() to convert the color space *before* invoking this function). Whether the image data is shared or copied to pixbuf depends on how the function gtk.gdk.pixbuf_new_from_data() handles the image data passed to it, and not on PyOpenCV.

to_list_of_Point2d(...)

 

to_list_of_Point2d( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Point2d(cv::Mat)

to_list_of_Point2f(...)

 

to_list_of_Point2f( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Point2f(cv::Mat)

to_list_of_Point2i(...)

 

to_list_of_Point2i( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Point2i(cv::Mat)

to_list_of_Point3d(...)

 

to_list_of_Point3d( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Point3d(cv::Mat)

to_list_of_Point3f(...)

 

to_list_of_Point3f( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Point3f(cv::Mat)

to_list_of_Point3i(...)

 

to_list_of_Point3i( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Point3i(cv::Mat)

to_list_of_Range(...)

 

to_list_of_Range( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Range(cv::Mat)

to_list_of_Rect(...)

 

to_list_of_Rect( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Rect(cv::Mat)

to_list_of_Rectd(...)

 

to_list_of_Rectd( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Rectd(cv::Mat)

to_list_of_Rectf(...)

 

to_list_of_Rectf( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Rectf(cv::Mat)

to_list_of_RotatedRect(...)

 

to_list_of_RotatedRect( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_RotatedRect(cv::Mat)

to_list_of_Scalar(...)

 

to_list_of_Scalar( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Scalar(cv::Mat)

to_list_of_Size2d(...)

 

to_list_of_Size2d( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Size2d(cv::Mat)

to_list_of_Size2f(...)

 

to_list_of_Size2f( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Size2f(cv::Mat)

to_list_of_Size2i(...)

 

to_list_of_Size2i( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Size2i(cv::Mat)

to_list_of_Vec2b(...)

 

to_list_of_Vec2b( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec2b(cv::Mat)

to_list_of_Vec2d(...)

 

to_list_of_Vec2d( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec2d(cv::Mat)

to_list_of_Vec2f(...)

 

to_list_of_Vec2f( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec2f(cv::Mat)

to_list_of_Vec2i(...)

 

to_list_of_Vec2i( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec2i(cv::Mat)

to_list_of_Vec2s(...)

 

to_list_of_Vec2s( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec2s(cv::Mat)

to_list_of_Vec2w(...)

 

to_list_of_Vec2w( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec2w(cv::Mat)

to_list_of_Vec3b(...)

 

to_list_of_Vec3b( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec3b(cv::Mat)

to_list_of_Vec3d(...)

 

to_list_of_Vec3d( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec3d(cv::Mat)

to_list_of_Vec3f(...)

 

to_list_of_Vec3f( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec3f(cv::Mat)

to_list_of_Vec3i(...)

 

to_list_of_Vec3i( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec3i(cv::Mat)

to_list_of_Vec3s(...)

 

to_list_of_Vec3s( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec3s(cv::Mat)

to_list_of_Vec3w(...)

 

to_list_of_Vec3w( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec3w(cv::Mat)

to_list_of_Vec4b(...)

 

to_list_of_Vec4b( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec4b(cv::Mat)

to_list_of_Vec4d(...)

 

to_list_of_Vec4d( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec4d(cv::Mat)

to_list_of_Vec4f(...)

 

to_list_of_Vec4f( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec4f(cv::Mat)

to_list_of_Vec4i(...)

 

to_list_of_Vec4i( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec4i(cv::Mat)

to_list_of_Vec4s(...)

 

to_list_of_Vec4s( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec4s(cv::Mat)

to_list_of_Vec4w(...)

 

to_list_of_Vec4w( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec4w(cv::Mat)

to_list_of_Vec6d(...)

 

to_list_of_Vec6d( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec6d(cv::Mat)

to_list_of_Vec6f(...)

 

to_list_of_Vec6f( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_Vec6f(cv::Mat)

to_list_of_float32(...)

 

to_list_of_float32( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_float32(cv::Mat)

to_list_of_float64(...)

 

to_list_of_float64( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_float64(cv::Mat)

to_list_of_int16(...)

 

to_list_of_int16( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_int16(cv::Mat)

to_list_of_int32(...)

 

to_list_of_int32( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_int32(cv::Mat)

to_list_of_int8(...)

 

to_list_of_int8( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_int8(cv::Mat)

to_list_of_uint16(...)

 

to_list_of_uint16( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_uint16(cv::Mat)

to_list_of_uint8(...)

 

to_list_of_uint8( (Mat)arg1) -> list :

    C++ signature :
        boost::python::list to_list_of_uint8(cv::Mat)

to_pil_image(self)

 

Converts a Mat into a PIL Image

Right now, PyOpenCV can convert 1-channel (uint8|int32|float32) Mats or uint8 (BGR|BGRA) Mats. Whether the image's data array is shared or copied to PIL.Image depends on how PIL decodes the array (i.e. via function PIL.Image.fromstring()).

to_wx_bitmap(self)

 

Converts a CV_8UC3 Mat into a wx.Bitmap

The Mat must be of type CV_8UC3, or else a TypeError is raised. Since in gtk, a pixbuf's color space is RGB, it is assumed that the Mat is also using this color space (i.e. you may want to call cvCvtColor() to convert the color space *before* invoking this function). Whether the image data is shared or copied to pixbuf depends on how the function gtk.gdk.pixbuf_new_from_data() handles the image data passed to it, and not on PyOpenCV.

type(...)

 

type( (Mat)arg1) -> int :

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


Property Details [hide private]

cols

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

data

Get Method:
unreachable(...)

flags

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

ndarray

Get Method:
unreachable(...)

rows

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

step

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

this

Get Method:
unreachable(...)