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

Class Size2i

 object --+    
          |    
??.instance --+
              |
             Size2i


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 Size2i that shares the same data with an ndarray instance, use:
    'Size2i.from_ndarray(a)' or 'asSize2i(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]
 
__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)
 
area(...)
area( (Size2i)arg1) -> int :
 
assign(...)
assign( (Size2i)arg1, (Size2i)sz) -> Size2i :

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]
  __instance_size__ = 16
Properties [hide private]
  height
  ndarray
  this
  width

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (object)_width, (object)_height) -> None :

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

__init__( (object)arg1, (Size2i)sz) -> None :

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

__init__( (object)arg1, (Point2i)pt) -> None :

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

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

area(...)

 

area( (Size2i)arg1) -> int :

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

assign(...)

 

assign( (Size2i)arg1, (Size2i)sz) -> Size2i :

    C++ signature :
        cv::Size_<int> {lvalue} assign(cv::Size_<int> {lvalue},cv::Size_<int>)

from_ndarray(...)
Static Method

 


from_ndarray( (object)arr) -> object :

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


Property Details [hide private]

height

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

ndarray

Get Method:
unreachable(...)

this

Get Method:
unreachable(...)

width

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