Threshold scalar volume to labelmap

A post was split to a new topic: How to get intensity range of a volume?