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

Class RotatedRect

 object --+    
          |    
??.instance --+
              |
             RotatedRect


Possibly rotated rectangle.
Reference:
    http://opencv.willowgarage.com/documentation/cpp/basic_structures.html#rotatedrect
    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 RotatedRect that shares the same data with an ndarray instance, use: 'asRotatedRect(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 :
 
__iter__(self, *args, **kwds)
 
__reduce__(...)
helper for pickle
 
__repr__(self)
repr(x)
 
__setitem__(self, *args, **kwds)
 
__setslice__(self, *args, **kwds)
 
boundingRect(...)
boundingRect( (RotatedRect)arg1) -> Rect :
 
points(...)
points( (RotatedRect)arg1, (Point2f)pt) -> None :

Inherited from unreachable.instance: __new__

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

Class Variables [hide private]
  __instance_size__ = 28
Properties [hide private]
  angle
  center
  ndarray
  size
  this
Possibly rotated rectangle.

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :
    
    Constructor.
    Reference:
        http://opencv.willowgarage.com/documentation/cpp/basic_structures.html#rotatedrect

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (Point2f)_center, (Size2f)_size, (object)_angle) -> None :
    
    Constructor.
    Reference:
        http://opencv.willowgarage.com/documentation/cpp/basic_structures.html#rotatedrect

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

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

boundingRect(...)

 

boundingRect( (RotatedRect)arg1) -> Rect :
    
    Returns minimal up-right rectangle that contains the rotated 
    rectangle.
    Reference:
        http://opencv.willowgarage.com/documentation/cpp/basic_structures.html#rotatedrect

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

points(...)

 

points( (RotatedRect)arg1, (Point2f)pt) -> None :

    C++ signature :
        void points(cv::RotatedRect {lvalue},cv::Point_<float>*)


Property Details [hide private]

angle

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

center

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

ndarray

Get Method:
unreachable(...)

size

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

this


Possibly rotated rectangle.
Reference:
    http://opencv.willowgarage.com/documentation/cpp/basic_structures.html#rotatedrect

Get Method:
unreachable(...)