Save Pixel-to-bin map in JFJochReceiver, and write it compressed in the master file
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
size_t nthreads = 0);
|
||||
|
||||
[[nodiscard]] uint16_t GetBinNumber() const;
|
||||
[[nodiscard]] const std::vector<uint16_t>&GetPixelToBin() const;
|
||||
[[nodiscard]] const std::vector<uint16_t>& GetPixelToBin() const;
|
||||
[[nodiscard]] const std::vector<float> &GetBinToQ() const;
|
||||
[[nodiscard]] const std::vector<float> &GetBinToD() const;
|
||||
[[nodiscard]] const std::vector<float> &GetBinToTwoTheta() const;
|
||||
|
||||
@@ -115,12 +115,15 @@ void JFJochReceiver::SendStartMessage() {
|
||||
message.az_int_bin_to_q = az_int_mapping->GetBinToQ();
|
||||
message.az_int_bin_to_two_theta = az_int_mapping->GetBinToTwoTheta();
|
||||
message.az_int_phi_bin_count = az_int_mapping->GetAzimuthalBinCount();
|
||||
if (az_int_mapping->GetAzimuthalBinCount() > 1)
|
||||
if (az_int_mapping->GetAzimuthalBinCount() > 1) {
|
||||
message.az_int_bin_to_phi = az_int_mapping->GetBinToPhi();
|
||||
message.az_int_map = az_int_mapping->GetPixelToBin();
|
||||
}
|
||||
message.writer_notification_zmq_addr = image_pusher.GetWriterNotificationSocketAddress();
|
||||
message.rois = experiment.ROI().ExportMetadata();
|
||||
message.max_spot_count = experiment.GetMaxSpotCount();
|
||||
|
||||
|
||||
std::vector<uint32_t> nexus_mask;
|
||||
message.pixel_mask["default"] = pixel_mask.GetMask(experiment);
|
||||
|
||||
|
||||
+2
-1
@@ -726,7 +726,8 @@ void NXmx::AzimuthalIntegration(const StartMessage &start, const EndMessage &end
|
||||
}
|
||||
|
||||
if (!start.az_int_map.empty() && start.az_int_map.size() == start.image_size_y * start.image_size_x)
|
||||
az_int_group.SaveVector("map", start.az_int_map, {start.image_size_y, start.image_size_x});
|
||||
az_int_group.SaveVector("map", start.az_int_map, {start.image_size_y, start.image_size_x},
|
||||
CompressionAlgorithm::BSHUF_LZ4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user