File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 80
80
tmppos = sparsepos(indx([1 sel(: )' +1 ]),: );
81
81
tmpdpos = dpos(indx([1 sel(: )' +1 ]),: );
82
82
83
- % FIXME the following is a bit experimental and not fully tested yet it works in general case
84
- % rotation
83
+ % FIXME the following is a bit experimental and not fully tested yet it works in general case rotation
85
84
M = pinv(tmpdpos(2 : 4 ,: ));
86
85
87
- % get rotation such that maxima are on diagonal and positive
86
+ % get rotation such that maxima are on diagonal and positive
88
87
m(1 ) = find(M(1 ,: )==max(abs(M(1 ,: ))));
89
88
m(2 ) = find(M(2 ,: )==max(abs(M(2 ,: ))));
90
89
m(3 ) = find(M(3 ,: )==max(abs(M(3 ,: ))));
93
92
M = M * diag(sign(diag(M )));
94
93
sparsepos = sparsepos * M ;
95
94
96
- % translation
95
+ % translation
97
96
T = - min(sparsepos ,[],1 )+1 ;
98
97
sparsepos = sparsepos + T(ones(size(sparsepos ,1 ),1 ), : );
99
98
You can’t perform that action at this time.
0 commit comments