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

Class Scalar

 object --+        
          |        
??.instance --+    
              |    
          Vec4d --+
                  |
                 Scalar


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 Scalar that shares the same data with an ndarray instance, use:
    'Scalar.from_ndarray(a)' or 'asScalar(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 :
 
__repr__(self)
repr(x)
 
__setitem__(self, *args, **kwds)
 
__setslice__(self, *args, **kwds)
 
mul(...)
mul( (Scalar)arg1, (Scalar)t [, (object)scale=1]) -> Scalar :

Inherited from Vec4d: __reduce__, cross, ddot, dot

Inherited from unreachable.instance: __new__

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

Static Methods [hide private]
 
all(...)
all( (object)v0) -> Scalar :
 
from_ndarray(...)
from_ndarray( (object)arr) -> object :
Class Variables [hide private]

Inherited from Vec4d: __instance_size__, channels, depth, type

Properties [hide private]
  ndarray
  this

Inherited from object: __class__

Method Details [hide private]

__getitem__(self, *args, **kwds)
(Indexing operator)

 
Overrides: core._Vec4d__getitem__

__getslice__(self, *args, **kwds)
(Slicling operator)

 
Overrides: core._Vec4d__getslice__

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (object)v0 [, (object)v1 [, (object)v2=0 [, (object)v3=0]]]) -> None :

    C++ signature :
        void __init__(_object*,double [,double [,double=0 [,double=0]]])

Overrides: object.__init__

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__setitem__(self, *args, **kwds)
(Index assignment operator)

 
Overrides: core._Vec4d__setitem__

__setslice__(self, *args, **kwds)
(Slice assignment operator)

 
Overrides: core._Vec4d__setslice__

all(...)
Static Method

 

all( (object)v0) -> Scalar :

    C++ signature :
        cv::Scalar_<double> all(double)

Overrides: Vec4d.all

from_ndarray(...)
Static Method

 


from_ndarray( (object)arr) -> object :

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

Overrides: Vec4d.from_ndarray

mul(...)

 

mul( (Scalar)arg1, (Scalar)t [, (object)scale=1]) -> Scalar :

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


Property Details [hide private]

ndarray

Get Method:
unreachable(...)

this

Get Method:
unreachable(...)