Improve handling/calculating merge mask

This commit is contained in:
2026-05-17 14:44:33 +02:00
parent 1bf70dcae7
commit bb40c9518b
5 changed files with 42 additions and 31 deletions
+7 -11
View File
@@ -304,15 +304,11 @@ ScalingResult IndexAndRefine::ScaleAllImages(const std::vector<MergedReflection>
return result;
}
MergeResult IndexAndRefine::Merge(bool calc_statistics, bool apply_cc_limit) const {
MergeResult out;
std::vector<uint8_t> merge_mask(reflections.size(), 1);
if (apply_cc_limit)
CalcMergeMask(experiment, scale_cc, merge_mask);
out.merged = MergeAll(experiment, reflections, merge_mask);
if (calc_statistics)
out.statistics = MergeStats(experiment, out.merged, reflections, merge_mask);
return out;
const std::vector<std::vector<Reflection> > &IndexAndRefine::GetReflections() const {
return reflections;
}
const std::vector<float> &IndexAndRefine::GetImageCC() const {
return scale_cc;
}