v1.0.0-rc.60
This commit is contained in:
@@ -23,6 +23,14 @@ DiffractionSpot& DiffractionSpot::operator+=(const DiffractionSpot &other) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
DiffractionSpot::DiffractionSpot(const SpotToSave &save) {
|
||||
x = save.x * static_cast<float>(save.intensity);
|
||||
y = save.y * static_cast<float>(save.intensity);
|
||||
pixel_count = 1;
|
||||
photons = std::lround(save.intensity);
|
||||
max_photons = save.maxc;
|
||||
}
|
||||
|
||||
int64_t DiffractionSpot::Count() const {
|
||||
return photons;
|
||||
}
|
||||
@@ -56,7 +64,8 @@ DiffractionSpot::operator SpotToSave() const {
|
||||
.x = x / static_cast<float>(photons),
|
||||
.y = y / static_cast<float>(photons),
|
||||
.intensity = static_cast<float>(photons),
|
||||
.indexed = false
|
||||
.maxc = max_photons,
|
||||
.indexed = false,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user