Home | History | Annotate | Download | only in include

Lines Matching refs:cvScalar

58 *                            C++ - like operations on CvScalar                           *
61 inline CvScalar& operator += ( CvScalar& a, const CvScalar& b )
77 inline CvScalar& operator -= ( CvScalar& a, const CvScalar& b )
93 inline CvScalar& operator *= ( CvScalar& a, double b )
109 inline CvScalar& operator /= ( CvScalar& a, double b )
126 inline CvScalar& operator *= ( CvScalar& a, const CvScalar& b )
149 inline CvScalar& operator /= ( CvScalar& a, const CvScalar& b )
153 return a *= cvScalar( b.val[0] * -inv_d, b.val[1] * inv_d,
158 inline CvScalar& operator += ( CvScalar& a, double b )
165 inline CvScalar& operator -= ( CvScalar& a, double b )
172 inline CvScalar operator + ( const CvScalar& a, const CvScalar& b )
174 return cvScalar( a.val[0] + b.val[0], a.val[1] + b.val[1],
179 inline CvScalar operator - ( const CvScalar& a, const CvScalar& b )
181 return cvScalar( a.val[0] - b.val[0], a.val[1] - b.val[1],
186 inline CvScalar operator + ( const CvScalar& a, double b )
188 return cvScalar( a.val[0] + b, a.val[1], a.val[2], a.val[3] );
192 inline CvScalar operator - ( const CvScalar& a, double b )
194 return cvScalar( a.val[0] - b, a.val[1], a.val[2], a.val[3] );
198 inline CvScalar operator + ( double a, const CvScalar& b )
200 return cvScalar( a + b.val[0], b.val[1], b.val[2], b.val[3] );
204 inline CvScalar operator - ( double a, const CvScalar& b )
206 return cvScalar( a - b.val[0], -b.val[1], -b.val[2], -b.val[3] );
210 inline CvScalar operator - ( const CvScalar& b )
212 return cvScalar( -b.val[0], -b.val[1], -b.val[2], -b.val[3] );
216 inline CvScalar operator * ( const CvScalar& a, const CvScalar& b )
218 CvScalar c = a;
224 inline CvScalar operator * ( const CvScalar& a, double b )
226 return cvScalar( a.val[0]*b, a.val[1]*b, a.val[2]*b, a.val[3]*b );
230 inline CvScalar operator * ( double a, const CvScalar& b )
232 return cvScalar( b.val[0]*a, b.val[1]*a, b.val[2]*a, b.val[3]*a );
236 inline CvScalar operator / ( const CvScalar& a, const CvScalar& b )
238 CvScalar c = a;
243 inline CvScalar operator / ( const CvScalar& a, double b )
246 return cvScalar( a.val[0]*inv_b, a.val[1]*inv_b,
251 inline CvScalar operator / ( double a, const CvScalar& b )
255 return cvScalar( b.val[0] * -inv_d, b.val[1] * inv_d,
260 inline CvScalar& operator &= ( CvScalar& a, const CvScalar& b )
276 inline CvScalar& operator |= ( CvScalar& a, const CvScalar& b )
292 inline CvScalar& operator ^= ( CvScalar& a, const CvScalar& b )
308 inline CvScalar operator & ( const CvScalar& a, const CvScalar& b )
310 CvScalar c = a;
315 inline CvScalar operator | ( const CvScalar& a, const CvScalar& b )
317 CvScalar c = a;
322 inline CvScalar operator ^ ( const CvScalar& a, const CvScalar& b )
324 CvScalar c = a;
329 inline CvScalar operator ~ ( const CvScalar& a )
331 return cvScalar( ~cvRound(a.val[0]), ~cvRound(a.val[1]),
420 CvMAT& operator = ( const CvScalar& fillval );
445 CvMAT& operator += ( const CvScalar& val );
452 CvMAT& operator -= ( const CvScalar& val );
459 CvMAT& operator *= ( const CvScalar& val );
465 CvMAT& operator &= ( const CvScalar& val );
469 CvMAT& operator |= ( const CvScalar& val );
473 CvMAT& operator ^= ( const CvScalar& val );
478 CvScalar sum() const;
568 operator CvScalar () const;
584 _CvMATElemCn_& operator = ( const CvScalar& scalar );
603 _CvMATElem_& operator = ( const CvScalar& val );
646 CvScalar sum() const;
872 inline _CvMATConstElem_::operator CvScalar() const
874 CvScalar scalar;
924 inline _CvMATElemCn_& _CvMATElemCn_::operator = ( const CvScalar& scalar )
967 CvScalar sc = (CvScalar)elem;
993 inline _CvMATElem_& _CvMATElem_::operator = ( const CvScalar& scalar )
1139 inline CvMAT& CvMAT::operator = ( const CvScalar& fillval )
1155 cvAddS( this, cvScalar(val), this );
1160 inline CvMAT& CvMAT::operator += ( const CvScalar& val )
1176 cvSubS( this, cvScalar(val), this );
1181 inline CvMAT& CvMAT::operator -= ( const CvScalar& val )
1202 inline CvMAT& CvMAT::operator *= ( const CvScalar& val )
1223 inline CvMAT& CvMAT::operator &= ( const CvScalar& val )
1244 inline CvMAT& CvMAT::operator |= ( const CvScalar& val )
1265 inline CvMAT& CvMAT::operator ^= ( const CvScalar& val )
1295 inline CvScalar CvMAT::sum() const
2111 inline CvScalar _CvMAT_BASE_OP_::sum() const