template<class ArrayT>
Definition at line 184 of file MatNorm2Dist.h. References ILOG_ERROR, ILOG_VAR, MatNorm2DistInternal(), MatNrCol(), and MatTranspose(). Referenced by Impala::Core::Feature::InterestPointFeature::ProjectUNC(), Impala::Core::Test::TestMatNorm2Dist::Run(), and VectorQuantizeX(). 00185 { 00186 /* 00187 Computes Euclidean distance matrix 00188 00189 E = MatNorm2DistTransposed(A,B) 00190 00191 A - (MxD) matrix 00192 B - (NxD) matrix 00193 00194 Returns: 00195 E - (MxN) Euclidean distances between vectors in A and B 00196 */ 00197 ILOG_VAR(Core.Matrix.MatNorm2DistTransposed); 00198 if (MatNrCol(aT) != MatNrCol(bT)) { 00199 ILOG_ERROR("MatNorm2DistTransposed operands: A and B should be of same dimensionality"); 00200 } 00201 #ifdef CUDA 00202 if(Link::Cuda::CudaUsed()) 00203 { 00204 return Link::Cuda::MatNorm2DistTransposed(aT, bT); 00205 } 00206 #endif 00207 Mat* b = MatTranspose(bT); 00208 Mat* result = MatNorm2DistInternal(aT, b); 00209 delete b; 00210 return result; 00211 }
Here is the call graph for this function:
|