Lines Matching refs:len

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))
50 #define icvCopyVector_64d( src, len, dst ) memcpy((dst),(src),(len)*sizeof(double))
55 #define icvCreateVector_32f( len ) (float*)cvAlloc( (len)*sizeof(float))
56 #define icvCreateVector_64d( len ) (double*)cvAlloc( (len)*sizeof(double))
69 #define icvNormVector_32f( src, len ) \
70 sqrt(icvDotProduct_32f( src, src, len ))
72 #define icvNormVector_64d( src, len ) \
73 sqrt(icvDotProduct_64d( src, src, len ))
78 #define icvCheckVector_64f( ptr, len )
79 #define icvCheckVector_32f( ptr, len )
81 CV_INLINE double icvSum_32f( const float* src, int len )
84 for( int i = 0; i < len; i++ ) s += src[i];
91 CV_INLINE double icvDotProduct_32f( const float* src1, const float* src2, int len )
94 for( int i = 0; i < len; i++ ) s += src1[i]*src2[i];
102 CV_INLINE double icvDotProduct_64f( const double* src1, const double* src2, int len )
105 for( int i = 0; i < len; i++ ) s += src1[i]*src2[i];
114 float* dst, int len )
117 for( i = 0; i < len; i++ )
120 icvCheckVector_32f( dst, len );
124 double* dst, int len )
127 for( i = 0; i < len; i++ )
130 icvCheckVector_64f( dst, len );
135 float* dst, int len )
138 for( i = 0; i < len; i++ )
141 icvCheckVector_32f( dst, len );
145 double* dst, int len )
148 for( i = 0; i < len; i++ )
151 icvCheckVector_64f( dst, len );
156 float* dst, int len )
159 for( i = 0; i < len; i++ )
162 icvCheckVector_32f( dst, len );
166 double* dst, int len )
169 for( i = 0; i < len; i++ )
172 icvCheckVector_64f( dst, len );
185 int i, len = MIN( w, h );
187 for( i = 0; len--; i += w+1 )
194 int i, len = MIN( w, h );
196 for( i = 0; len--; i += w+1 )
203 int i, len = MIN( w, h );
205 for( i = 0; len--; i += w+1 )
215 int i, len = MIN( w, h );
217 for( i = 0; len--; i += w+1 )
226 int len, double scale )
229 for( i = 0; i < len; i++ )
232 icvCheckVector_32f( dst, len );
237 int len, double scale )
240 for( i = 0; i < len; i++ )
243 icvCheckVector_64f( dst, len );
389 CV_INLINE void icvCvt_32f_64d( const float* src, double* dst, int len )
392 for( i = 0; i < len; i++ )
396 CV_INLINE void icvCvt_64d_32f( const double* src, float* dst, int len )
399 for( i = 0; i < len; i++ )