Fix corruption from wrong index in Binary. HistogramMedian. Approximate pore segmentation using global radius threshold. Other cleanups and fixes.