ilastik / lazyflow

lazy parallel ondemand zero copy numpy array data flows with caching and dirty propagation
Other
77 stars 59 forks source link

Mask/Atlas: Fixes mask being applied as int rather than bool #300

Closed Tomaz-Vieira closed 5 years ago

Tomaz-Vieira commented 5 years ago

When using single-channel masks or atlases, it's value was being applied onto the predictions as int (thus multiplying) rather than boolean values (thus masking).

This PR forces the mask into a boolean by setting it to multichannel_mask[..., 0:1] > 0, fixing the issue.