Steps to reproduce:
- Load Pic3D
- Open Segmentation and select Otsu
- Select Advanced settings
- Choose the number of histogram bins smaller than the selected number of regions (e.g. Regions=3 and Bins=2)
A possible solution would be to check the current number of regions and select this as a minimum for the bins.