Generalized Matrix Multiplication demo (Bugfix #4130)


Added by Yida Wang about 10 years ago. Updated about 10 years ago.


Status:Open Start date:2015-01-18
Priority:Normal Due date:
Assignee:Gary Bradski % Done:

80%

Category:calibration, 3d
Target version:2.4.11
Affected version:branch 'master' (3.0-dev) Operating System:Windows
Difficulty:Medium HW Platform:x64
Pull request:

Description

There is a wrong description in fundam.cpp

in line 528 to 530, such description is wrong, such coding is calculating F0 <- U'*diag([W(1), W(2), 0])*V:
// F0 <- U*diag([W(1), W(2), 0])*V'
cvGEMM( &U, &W, 1., 0, 0., &TF, CV_GEMM_A_T );
cvGEMM( &TF, &V, 1., 0, 0., &F0, 0/*CV_GEMM_B_T*/ );

To get U*diag([W(1), W(2), 0])*V', it should be:
cvGEMM( &U, &W, 1., 0, 0., &TF, 0 );
cvGEMM( &TF, &V, 1., 0, 0., &F0, CV_GEMM_B_T );


History

Also available in: Atom PDF