AllenInstitute / AllenSDK

code for reading and processing Allen Institute for Brain Science data
https://allensdk.readthedocs.io/en/latest/
Other
343 stars 149 forks source link

bugfix: use mask instead of image to set nan pixels #2531

Closed aamster closed 2 years ago

aamster commented 2 years ago

2516

The issue was that the image was being used to set nan pixels, but if the image contains pixels exactly equal to 0, then they will be set to nan as well. So use the mask instead.

In addition: