Skip to content

Commit 420c90d

Browse files
authored
Fix shift assignment in align_volume when mirroring (#1066)
When considering mirrors in `xmipp_align_volume` the shift was not properly handled (my mistake in https://github.com/I2PC/xmipp3/pull/1039/changes). When mirroring, its Z component needs to be flipped and for some reason incremented by 1.
1 parent c510c68 commit 420c90d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/xmipp/libraries/reconstruction/volume_align_prog.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ void applyTransformation(const MultidimArray<double> &V2,
7272
YY(r) = p[8];
7373
XX(r) = p[9];
7474

75+
if (flip < 0)
76+
{
77+
78+
ZZ(r) *= -1;
79+
ZZ(r) += 1;
80+
}
81+
7582
Euler_angles2matrix(rot, tilt, psi, A, true);
7683
for (int i = 0; i < 4; ++i)
7784
{

0 commit comments

Comments
 (0)