From d90f962ad62c8ac4baf73a01cadaf8902fbb2290 Mon Sep 17 00:00:00 2001 From: John Bogovic Date: Thu, 5 Dec 2024 15:22:08 -0500 Subject: [PATCH] perf: user preference determines downsampling policy * default is conservative (fewer scale levels) * add script for setting the user pref --- scripts/setDownsamplingPolicy.groovy | 7 +++ .../n5/ij/N5ScalePyramidExporter.java | 63 ++++++++++++++++++- .../saalfeldlab/n5/TestExportImports.java | 4 +- 3 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 scripts/setDownsamplingPolicy.groovy diff --git a/scripts/setDownsamplingPolicy.groovy b/scripts/setDownsamplingPolicy.groovy new file mode 100644 index 00000000..636c383e --- /dev/null +++ b/scripts/setDownsamplingPolicy.groovy @@ -0,0 +1,7 @@ +#@ String (visibility=MESSAGE, value="Sets the downsampling policy for the N5 scale pyramid exporter