- no for-loops - support all thresholding types - support any input image depth - add Doxygen comments