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

Class Rect

 object --+    
          |    
??.instance --+
              |
             Rect

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! Alternatively, you could create a reference to 'ndarray' by using 'asndarray(obj)', where 'obj' is an instance of this class.

To create an instance of Rect that shares the same data with an ndarray instance, use: 'asRect(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]
 
__add__(...)
__add__( (Rect)arg1, (Point2i)arg2) -> Rect :
 
__and__(...)
__and__( (Rect)arg1, (Rect)arg2) -> Rect :
 
__eq__(...)
__eq__( (Rect)arg1, (Rect)arg2) -> bool :
 
__getitem__(self, *args, **kwds)
 
__getslice__(self, *args, **kwds)
 
__iadd__(...)
__iadd__( (Rect)arg1, (Point2i)arg2) -> Rect :
 
__iand__(...)
__iand__( (Rect)arg1, (Rect)arg2) -> Rect :
 
__init__(...)
__init__( (object)arg1) -> None :
 
__ior__(...)
__ior__( (Rect)arg1, (Rect)arg2) -> Rect :
 
__isub__(...)
__isub__( (Rect)arg1, (Point2i)arg2) -> Rect :
 
__iter__(self, *args, **kwds)
 
__or__(...)
__or__( (Rect)arg1, (Rect)arg2) -> Rect :
 
__reduce__(...)
helper for pickle
 
__repr__(self)
repr(x)
 
__setitem__(self, *args, **kwds)
 
__setslice__(self, *args, **kwds)
 
__sub__(...)
__sub__( (Rect)arg1, (Point2i)arg2) -> Rect :
 
area(...)
area( (Rect)arg1) -> int :
 
assign(...)
assign( (Rect)arg1, (Rect)r) -> Rect :
 
br(...)
br( (Rect)arg1) -> Point2i :
 
contains(...)
contains( (Rect)arg1, (Point2i)pt) -> bool :
 
size(...)
size( (Rect)arg1) -> Size2i :
 
tl(...)
tl( (Rect)arg1) -> Point2i :

Inherited from unreachable.instance: __new__

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

Class Variables [hide private]
  __instance_size__ = 24
Properties [hide private]
  height
  ndarray
  this
  width
  x
  y

Inherited from object: __class__

Method Details [hide private]

__add__(...)
(Addition operator)

 

__add__( (Rect)arg1, (Point2i)arg2) -> Rect :

    C++ signature :
        cv::Rect_<int> __add__(cv::Rect_<int>,cv::Point_<int>)

__add__( (Rect)arg1, (Size2i)arg2) -> Rect :

    C++ signature :
        cv::Rect_<int> __add__(cv::Rect_<int>,cv::Size_<int>)

__and__(...)
(And operator)

 

__and__( (Rect)arg1, (Rect)arg2) -> Rect :

    C++ signature :
        cv::Rect_<int> __and__(cv::Rect_<int>,cv::Rect_<int>)

__eq__(...)
(Equality operator)

 

__eq__( (Rect)arg1, (Rect)arg2) -> bool :

    C++ signature :
        bool __eq__(cv::Rect_<int>,cv::Rect_<int>)

__iadd__(...)

 

__iadd__( (Rect)arg1, (Point2i)arg2) -> Rect :

    C++ signature :
        cv::Rect_<int> {lvalue} __iadd__(cv::Rect_<int> {lvalue},cv::Point_<int>)

__iadd__( (Rect)arg1, (Size2i)arg2) -> Rect :

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

__iand__(...)

 

__iand__( (Rect)arg1, (Rect)arg2) -> Rect :

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

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

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

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

__init__( (object)arg1, (Rect)r) -> None :

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

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

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

__init__( (object)arg1, (Point2i)pt1, (Point2i)pt2) -> None :

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

Overrides: object.__init__

__ior__(...)

 

__ior__( (Rect)arg1, (Rect)arg2) -> Rect :

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

__isub__(...)

 

__isub__( (Rect)arg1, (Point2i)arg2) -> Rect :

    C++ signature :
        cv::Rect_<int> {lvalue} __isub__(cv::Rect_<int> {lvalue},cv::Point_<int>)

__isub__( (Rect)arg1, (Size2i)arg2) -> Rect :

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

__or__(...)
(Or operator)

 

__or__( (Rect)arg1, (Rect)arg2) -> Rect :

    C++ signature :
        cv::Rect_<int> __or__(cv::Rect_<int>,cv::Rect_<int>)

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__sub__(...)
(Subtraction operator)

 

__sub__( (Rect)arg1, (Point2i)arg2) -> Rect :

    C++ signature :
        cv::Rect_<int> __sub__(cv::Rect_<int>,cv::Point_<int>)

area(...)

 

area( (Rect)arg1) -> int :

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

assign(...)

 

assign( (Rect)arg1, (Rect)r) -> Rect :
    
    Wrapped function:
        operator=

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

br(...)

 

br( (Rect)arg1) -> Point2i :

    C++ signature :
        cv::Point_<int> br(cv::Rect_<int> {lvalue})

contains(...)

 

contains( (Rect)arg1, (Point2i)pt) -> bool :

    C++ signature :
        bool contains(cv::Rect_<int> {lvalue},cv::Point_<int>)

size(...)

 

size( (Rect)arg1) -> Size2i :

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

tl(...)

 

tl( (Rect)arg1) -> Point2i :

    C++ signature :
        cv::Point_<int> tl(cv::Rect_<int> {lvalue})


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(...)

x

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

y

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