From ab8c0fde522426ed41815cf36fee8aaaa20e0b25 Mon Sep 17 00:00:00 2001 From: Dmitry Retinskiy Date: Thu, 15 Aug 2013 16:18:01 +0400 Subject: [PATCH] applied comments after review --- modules/core/doc/basic_structures.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/core/doc/basic_structures.rst b/modules/core/doc/basic_structures.rst index ff8470183c..66ea59b6b8 100644 --- a/modules/core/doc/basic_structures.rst +++ b/modules/core/doc/basic_structures.rst @@ -514,6 +514,8 @@ Scalar\_ -------- .. ocv:class:: Scalar_ +Template class for a 4-element vector derived from Vec. + :: template class CV_EXPORTS Scalar_ : public Vec<_Tp, 4> @@ -543,10 +545,6 @@ Scalar\_ bool isReal() const; }; -Template class for a 4-element vector derived from Vec. :: - - template class Scalar_ : public Vec<_Tp, 4> { ... }; - typedef Scalar_ Scalar; Being derived from ``Vec<_Tp, 4>`` , ``Scalar_`` and ``Scalar`` can be used just as typical 4-element vectors. In addition, they can be converted to/from ``CvScalar`` . The type ``Scalar`` is widely used in OpenCV to pass pixel values.