BRAINSia / BRAINSTools

A suite of tools for medical image processing focused on brain analysis
http://brainsia.github.io/BRAINSTools/
Apache License 2.0
111 stars 96 forks source link

ENH: Provide better mask processing for BRAINSFit #531

Closed hjmjohnson closed 1 year ago

hjmjohnson commented 1 year ago

When an entire label map is used as a mask, it should be interpreted as any non-zero value is inside the mask.

This is accomplished by reading the data from disk as an unsigned long (type casting as needed) and then selecting all values inclusive in the range of ( 1, NumericTraits::::max() )