GoniometerAxis: Transformation is based on angle, not image number
This commit is contained in:
@@ -53,7 +53,8 @@ TEST_CASE("RotationIndexer") {
|
||||
for (int img = 0; img < 50; ++img) {
|
||||
std::vector<SpotToSave> spots;
|
||||
// For a rotated image, per-image lattice is obtained as Multiply(rot.transpose())
|
||||
const RotMatrix rot = axis.GetTransformation(img);
|
||||
const float angle_deg = axis.GetAngle_deg(img) + axis.GetWedge_deg() / 2.0f;
|
||||
const RotMatrix rot = axis.GetTransformationAngle(angle_deg);
|
||||
const CrystalLattice latt_img = latt_base.Multiply(rot.transpose());
|
||||
|
||||
const auto n = prediction.Calc(exp_i, latt_img, prediction_settings);
|
||||
|
||||
Reference in New Issue
Block a user