AllenInstitute / segmentation-labeling-app

Data pipeline and UI for human labeling of putative ROIs from 2p cell segmentations
Other
0 stars 0 forks source link

allow masks larger than crop size #131

Closed aamster closed 2 years ago

aamster commented 2 years ago

Currently, if a mask was larger than the crop size, then it would not be padded. This PR first center crops the mask to the crop size so that it is always <= crop size. This will cut off part of the mask if it is very large.

Before

before

After

after

aamster commented 2 years ago

It deals with projections correctly (img size is (128, 128)) and it lines up with the mask