import numpy as np
from timeit import default_timer as timer

mask = np.load('mask.npy', allow_pickle=True)

cell_mask_new_all = mask[:, :, :].astype(np.uint8)
cell_mask_one = cell_mask_new_all[:,:,186]

cell_mask_two = np.uint8(mask[:, :, 186])


t_1 = timer()
image_cell_mask_one = cell_mask_one*255
t_2 = timer()
print('image_cell_mask_one time:', t_2 - t_1)

t_3 = timer()
image_cell_mask_two = cell_mask_two*255
t_4 = timer()
print('image_cell_mask_two time:', t_4 - t_3)



