JFJochReaderImage: Add ROI description

This commit is contained in:
2025-11-05 11:47:12 +01:00
parent 02b3e66456
commit b15d06c1b0
2 changed files with 10 additions and 0 deletions

View File

@@ -205,9 +205,11 @@ void JFJochReaderImage::CalcROI(const ROIElement *input) {
std::unique_lock ul(roi_mutex);
if (!input) {
roi_description = "";
roi = {};
return;
}
int64_t width = dataset->experiment.GetXPixelsNum();
int64_t height = dataset->experiment.GetYPixelsNum();
@@ -228,6 +230,7 @@ void JFJochReaderImage::CalcROI(const ROIElement *input) {
}
}
}
roi_description = input->toString();
roi = ROIMessage{
.sum = roi_val,
@@ -277,3 +280,7 @@ std::shared_ptr<JFJochReaderDataset> JFJochReaderImage::CreateMutableDataset() {
int32_t JFJochReaderImage::GetAutoContrastValue() const {
return auto_foreground;
}
std::string JFJochReaderImage::GetROIDescription() const {
return roi_description;
}