Improve handling/calculating merge mask
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user