Improvements before MAX IV test
This commit is contained in:
@@ -39,15 +39,15 @@ int64_t DiffractionSpot::PixelCount() const {
|
||||
}
|
||||
|
||||
Coord DiffractionSpot::LabCoord(const DiffractionExperiment &experiment) const {
|
||||
return experiment.LabCoord(x / (float)photons, y / (float)photons);
|
||||
return experiment.LabCoord(x / (float)photons + 0.5f, y / (float)photons + 0.5f);
|
||||
}
|
||||
|
||||
Coord DiffractionSpot::ReciprocalCoord(const DiffractionExperiment &experiment) const {
|
||||
return DetectorToRecip(experiment, x / (float)photons, y / (float)photons);
|
||||
return DetectorToRecip(experiment, x / (float)photons + 0.5f, y / (float)photons + 0.5f);
|
||||
}
|
||||
|
||||
double DiffractionSpot::GetResolution(const DiffractionExperiment &experiment) const {
|
||||
return PxlToRes(experiment, x / (float)photons, y / (float)photons);
|
||||
return PxlToRes(experiment, x / (float)photons + 0.5f, y / (float)photons + 0.5f);
|
||||
}
|
||||
|
||||
DiffractionSpot::operator SpotToSave() const {
|
||||
|
||||
Reference in New Issue
Block a user