MaskDarkAnalysis: Change GetMask() function
This commit is contained in:
@@ -49,10 +49,10 @@ void MaskDarkAnalysis::AnalyzeImage(const DataMessage &data, std::vector<uint8_t
|
||||
}
|
||||
}
|
||||
|
||||
void MaskDarkAnalysis::ApplyMask(PixelMask &in_mask) const {
|
||||
std::vector<uint32_t> MaskDarkAnalysis::GetMask() const {
|
||||
std::unique_lock ul(m);
|
||||
std::vector<uint32_t> tmp(mask.size(), 0);
|
||||
for (int i = 0; i < mask.size(); i++)
|
||||
tmp[i] = (mask[i] > max_frames_with_signal) ? 1 : 0;
|
||||
in_mask.LoadDarkBadPixelMask(tmp);
|
||||
return tmp;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class MaskDarkAnalysis {
|
||||
public:
|
||||
MaskDarkAnalysis(const DarkMaskSettings& settings, size_t det_size);
|
||||
void AnalyzeImage(const DataMessage &msg, std::vector<uint8_t> buffer);
|
||||
void ApplyMask(PixelMask &mask) const;
|
||||
std::vector<uint32_t> GetMask() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user