gbeflow/__init__.py
def mask_image(self,img,mask):
        '''
        Apply mask to image and return with background = 0
        
        Parameters
        ----------
        img : 2D np.array
            2D image from a single timepoint to mask
        mask : 2D np.array
            2D boolean array containing mask
        '''
        
        # Apply mask to image and set background to 0
        img[~mask] = 0
        
        return(img)

        Apply mask to image and return with background = 0
        
        Parameters
        ----------
        img : 2D np.array
            2D image from a single timepoint to mask
        mask : 2D np.array
            2D boolean array containing mask
        
Apply mask to image and return with background = 0
Parameters

img : 2D np.array
2D image from a single timepoint to mask
mask : 2D np.array
2D boolean array containing mask
Apply mask to image and return with background = 0 Parameters img : 2D np . array 2D image from a single timepoint to mask mask : 2D np . array 2D boolean array containing mask
def mask_image(self,img,mask):
        img[~mask] = 0
        return(img)
def mask_image ( self , img , mask ) : img [ ~ mask ] = 0 return ( img )
Apply mask to image and return with background = 0
Parameters
Apply mask to image and return with background = 0 Parameters
'''
        Apply mask to image and return with background = 0
        
        Parameters
        ----------
        img : 2D np.array
            2D image from a single timepoint to mask
        mask : 2D np.array
            2D boolean array containing mask
        ''' # Apply mask to image and set background to 0
self
img
mask