Skip to content

Commit

Permalink
Solve #55: Fix export of images larger 510 pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
maikherbig authored Feb 14, 2024
1 parent 66ade20 commit d87848b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AIDeveloper/aid_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ def popup_imgRes_cancel():

#Now, all images are of identical shape and can be converted to a numpy array
images = np.array((images), dtype="uint8")
pos_x = np.array((pos_x), dtype="uint8")
pos_y = np.array((pos_y), dtype="uint8")
pos_x = np.array((pos_x), dtype="uint32") # for larger images, pos_x can be larger than 255! Use uint; not uint8!!!
pos_y = np.array((pos_y), dtype="uint32") # for larger images, pos_y can be larger than 255! Use uint32; not uint8!!!

#Save as foldername.rtdc
fname = url+".rtdc"
Expand Down

0 comments on commit d87848b

Please sign in to comment.