Lines Matching refs:dst
45 #define icvCopyVector( src, dst, len ) memcpy( (dst), (src), (len)*sizeof((dst)[0]))
46 #define icvSetZero( dst, len ) memset( (dst), 0, (len)*sizeof((dst)[0]))
48 #define icvCopyVector_32f( src, len, dst ) memcpy((dst),(src),(len)*sizeof(float))
49 #define icvSetZero_32f( dst, cols, rows ) memset((dst),0,(rows)*(cols)*sizeof(float))
50 #define icvCopyVector_64d( src, len, dst ) memcpy((dst),(src),(len)*sizeof(double))
51 #define icvSetZero_64d( dst, cols, rows ) memset((dst),0,(rows)*(cols)*sizeof(double))
52 #define icvCopyMatrix_32f( src, w, h, dst ) memcpy((dst),(src),(w)*(h)*sizeof(float))
53 #define icvCopyMatrix_64d( src, w, h, dst ) memcpy((dst),(src),(w)*(h)*sizeof(double))
63 #define icvAddMatrix_32f( src1, src2, dst, w, h ) \
64 icvAddVector_32f( (src1), (src2), (dst), (w)*(h))
66 #define icvSubMatrix_32f( src1, src2, dst, w, h ) \
67 icvSubVector_32f( (src1), (src2), (dst), (w)*(h))
114 float* dst, int len )
118 dst[i] = src1[i] * src2[i];
120 icvCheckVector_32f( dst, len );
124 double* dst, int len )
128 dst[i] = src1[i] * src2[i];
130 icvCheckVector_64f( dst, len );
135 float* dst, int len )
139 dst[i] = src1[i] + src2[i];
141 icvCheckVector_32f( dst, len );
145 double* dst, int len )
149 dst[i] = src1[i] + src2[i];
151 icvCheckVector_64f( dst, len );
156 float* dst, int len )
160 dst[i] = src1[i] - src2[i];
162 icvCheckVector_32f( dst, len );
166 double* dst, int len )
170 dst[i] = src1[i] - src2[i];
172 icvCheckVector_64f( dst, len );
176 #define icvAddMatrix_64d( src1, src2, dst, w, h ) \
177 icvAddVector_64d( (src1), (src2), (dst), (w)*(h))
179 #define icvSubMatrix_64d( src1, src2, dst, w, h ) \
180 icvSubVector_64d( (src1), (src2), (dst), (w)*(h))
183 CV_INLINE void icvSetIdentity_32f( float* dst, int w, int h )
186 icvSetZero_32f( dst, w, h );
188 dst[i] = 1.f;
192 CV_INLINE void icvSetIdentity_64d( double* dst, int w, int h )
195 icvSetZero_64d( dst, w, h );
197 dst[i] = 1.;
225 CV_INLINE void icvScaleVector_32f( const float* src, float* dst,
230 dst[i] = (float)(src[i]*scale);
232 icvCheckVector_32f( dst, len );
236 CV_INLINE void icvScaleVector_64d( const double* src, double* dst,
241 dst[i] = src[i]*scale;
243 icvCheckVector_64f( dst, len );
247 CV_INLINE void icvTransposeMatrix_32f( const float* src, int w, int h, float* dst )
253 *dst++ = src[j*w + i];
255 icvCheckVector_32f( dst, w*h );
258 CV_INLINE void icvTransposeMatrix_64d( const double* src, int w, int h, double* dst )
264 *dst++ = src[j*w + i];
266 icvCheckVector_64f( dst, w*h );
285 float* dst )
295 for( i = 0; i < h1; i++, src1 += w1, dst += w2 )
301 dst[j] = (float)s;
304 icvCheckVector_32f( dst, h1*w2 );
310 double* dst )
320 for( i = 0; i < h1; i++, src1 += w1, dst += w2 )
326 dst[j] = s;
329 icvCheckVector_64f( dst, h1*w2 );
333 #define icvTransformVector_32f( matr, src, dst, w, h ) \
334 icvMulMatrix_32f( matr, w, h, src, 1, w, dst )
336 #define icvTransformVector_64d( matr, src, dst, w, h ) \
337 icvMulMatrix_64d( matr, w, h, src, 1, w, dst )
340 #define icvScaleMatrix_32f( src, dst, w, h, scale ) \
341 icvScaleVector_32f( (src), (dst), (w)*(h), (scale) )
343 #define icvScaleMatrix_64d( src, dst, w, h, scale ) \
344 icvScaleVector_64d( (src), (dst), (w)*(h), (scale) )
357 CV_INLINE void icvMulTransMatrixR_64d( double* src, int width, int height, double* dst )
360 CvMat dstMat = cvMat( width, width, CV_64F, dst );
365 CV_INLINE void icvMulTransMatrixL_64d( double* src, int width, int height, double* dst )
368 CvMat dstMat = cvMat( height, height, CV_64F, dst );
373 CV_INLINE void icvMulTransMatrixR_32f( float* src, int width, int height, float* dst )
376 CvMat dstMat = cvMat( width, width, CV_32F, dst );
381 CV_INLINE void icvMulTransMatrixL_32f( float* src, int width, int height, float* dst )
384 CvMat dstMat = cvMat( height, height, CV_32F, dst );
389 CV_INLINE void icvCvt_32f_64d( const float* src, double* dst, int len )
393 dst[i] = src[i];
396 CV_INLINE void icvCvt_64d_32f( const double* src, float* dst, int len )
400 dst[i] = (float)src[i];