From 6456dc32102e4f07d54590f24a5200da1de9eabc Mon Sep 17 00:00:00 2001 From: Pierre Pouchin Date: Sat, 4 Nov 2023 22:40:06 +0100 Subject: [PATCH] Fix local processing --- src/main/java/fr/igred/ij/io/LocalBatchImage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/igred/ij/io/LocalBatchImage.java b/src/main/java/fr/igred/ij/io/LocalBatchImage.java index 793fea4..6aa3c40 100644 --- a/src/main/java/fr/igred/ij/io/LocalBatchImage.java +++ b/src/main/java/fr/igred/ij/io/LocalBatchImage.java @@ -177,7 +177,9 @@ public ImagePlus getImagePlus(ROIMode mode) { try { ImporterOptions options = initImporterOptions(); options.setShowROIs(loadROIs); - options.setROIsMode(mode.toString()); + if (loadROIs) { + options.setROIsMode(mode.toString()); + } options.setId(path); options.setSeriesOn(index, true); ImagePlus[] imps = BF.openImagePlus(options);