I noticed when working with MicroCT data that the thick slab reconstruction is not really meant for this modality. The minimum thickness is set to 1mm, which makes it basically unusable for volumes with very small voxel spacings.
And here’s the line that I think would be the simplest place to fix this:
However, simply decreasing this would not be the best solution, because then we’d need to also decrease the single step value, which would make it unusable on normal patient volumes. (I also did not look into any similar limitation on the logic level, I just assumed that the constraint comes from this single place.)
It sounds like the step size and range should adapt to the geometry of the volumes in the view. If it’s not possible to do this automatically, perhaps a menu item to select a reference volume to use for determining the values.
First of all, it should not be a ctkDoubleSpinBox but a qMRMLSpinBox, with unit set to length. That would display the unit correctly, and could use application defaults for precision and user could hit Ctrl - + to see more digits.
Minimum of the range can be set to 0.
Computing the step size dynamically from the spacing as @pieper suggested would be nice (similarly to how the slider’s step size is computed from the volume spacing), but it should be acceptable to have a hardcoded value there, as user can still type any number or drag-and-dropping the handles in slice view to adjust the value.