JFJochReaderImage: Add ROI description
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user