diff --git a/src/main/java/net/preibisch/mvrecon/fiji/plugin/Split_Views.java b/src/main/java/net/preibisch/mvrecon/fiji/plugin/Split_Views.java index 394c46cd..06fad033 100644 --- a/src/main/java/net/preibisch/mvrecon/fiji/plugin/Split_Views.java +++ b/src/main/java/net/preibisch/mvrecon/fiji/plugin/Split_Views.java @@ -49,6 +49,8 @@ public class Split_Views implements PlugIn { + public static boolean roundMipmapResolutions = false; + public static long defaultImgX = 500; public static long defaultImgY = 500; public static long defaultImgZ = 200; @@ -284,7 +286,8 @@ public static long[] findMinStepSize( final AbstractSpimData< ? > data ) for ( int d = 0; d < minStepSize.length; ++d ) { if ( lowestResolution[ d ] % 1 != 0.0 ) - throw new RuntimeException( "Downsampling has a fraction, cannot split dataset" ); + if ( !roundMipmapResolutions ) + throw new RuntimeException( "Downsampling has a fraction, cannot split dataset" ); minStepSize[ d ] = lowestCommonMultiplier( minStepSize[ d ], Math.round( lowestResolution[ d ] ) ); }