Package pyopencv :: Module pyopencvext :: 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!
    
    To create an instance of RotatedRect that shares the same data with an ndarray instance, use:
        'RotatedRect.from_ndarray(a)' or '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__

Static Methods [hide private]
 
from_ndarray(...)
from_ndarray( (numpy.ndarray)inst_ndarray) -> object :
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})

from_ndarray(...)
Static Method

 


from_ndarray( (numpy.ndarray)inst_ndarray) -> object :

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

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