Fix bug to convert correctly images of a single slice to 32-bit.
Make the regional minimal filter multi-threaded.
Code clean up