o
    Ͻgg                     @   s    d dl Zd dlmZ dd ZdS )    N)binary_openingc                 C   s4   t ||t|d ft j}t| |d| j}|S )N   )	structure)nponesintuint8r   astypedtype)maskker_sizekernelZopened_image r   2C:\muni\DP\seg1\Segment1\utils\image_processing.pyget_smaller_structures_mask(   s   r   )numpyr   scipy.ndimager   r   r   r   r   r   <module>   s   %