Closed nthistle closed 6 years ago
Thanks @nthistle! I agree that it's a useful feature. N5LabelDownsamplerSpark
has not been used much, so I think it's safe to keep this functionality only in the basic downsampler for now.
Looking at the code, I saw that the downsamplingFactors
attribute is not set by N5DownsamplerSpark
so you may have problems opening the resulting scale pyramid in a viewer.
I opened the issue #4 and am going to resolve it by moving the appropriate code from N5ScalePyramidSpark
and such.
In paintera-conversion-helper, I just manually set the downsamplingFactors
attribute to fix this, but it would be useful to have this in N5DownsamplerSpark
as well.
Thanks @igorpisarev!
This adds the ability to specify multiple different downsampling factors with raw data (
N5Downsampler.java
), for ease of use in creating scale pyramids for anisotropic data in scenarios where specific factors are required. To use different downsampling factors, simply specify multiple output datasets and multiple factors like so:The factors each build upon the previous one, and downscale in the order specified (the first factor is applied first, and written to the first output dataset, etc.)
If desired, I can implement this functionality in a similar way for
N5LabelDownsamplerSpark
as well.cc @axtimwalde @igorpisarev