Skip to content

Commit

Permalink
Update tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yujiahu415 committed Nov 5, 2024
1 parent 2ff7c42 commit 7a55c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cellan/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ def extract_images(path_to_file,out_folder,fov_div):

image=np.array(file.get_frame(z=0,t=0,c=c))
fov=np.uint8(exposure.rescale_intensity(image[h*fov_height:(h+1)*fov_height,w*fov_width:(w+1)*fov_width],out_range=(0,255)))
cv2.imwrite(os.path.join(out_folder,os.path.splitext(os.path.basename(path_to_file))[0],'_'+str(w)+str(h)+'_c'+str(c)+'.png'),fov)
cv2.imwrite(os.path.join(out_folder,os.path.splitext(os.path.basename(path_to_file))[0]+'_'+str(w)+str(h)+'_c'+str(c)+'.png'),fov)

0 comments on commit 7a55c8c

Please sign in to comment.