You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #418 from EIT-ALIVE/feature/389-watershed
Adds a WatershedLungspace class, as well as a lot of general improvements to make this possible.
## PixelMap
An AmplitudeMap and IntegerMap (subclasses of PixelMap) have been added, including plotting configurations.
For IntegerMaps to be possible, the data type of PixelMap values has been made variable (set per class), and casting to that type has been made safe (i.e., a change in actual value when converting from e.g. float to int will throw an error).
Creating a mask from a PixelMap has been improved.
PixelMap now has three methods to get the values array as boolean, integer or non-nan-float array.
PixelMap plotting now has contour and surface methods.
## PixelMask
PixelMasks can now be plotted using the same imshow method as PixelMap.
PixelMasks gains a subtraction method.
The standard masks are now generated using get_geomtric_mask, which allows for different shapes.
## TIV and AmplitudeLungspace
TIVLungspace and AmplitudeLungspace provide easy determination of functional lung space.
## Warnings
The stack level of warnings has been set to 2 everywhere. Also, warnings in tests have been explicitly silenced.
0 commit comments