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