Fix bug in atlas check. Refine margin mask generation for atlas selection and data reduction
Fix bug in atlas check. Refine margin mask generation for atlas selection and data reduction

soundray/pincram