You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
488 B

  1. from nd2reader import Nd2
  2. from pprint import pprint
  3. import numpy as np
  4. from skimage import io
  5. n = Nd2("/home/jim/Desktop/nd2hacking/YFP-dsRed-GFP-BF.nd2")
  6. # n = Nd2("/home/jim/Desktop/nd2hacking/test-141111.nd2")
  7. # for chan in n.channels:
  8. # print(chan.name)
  9. print(n._reader.channel_count)
  10. print(n._z_level_count)
  11. print(n._field_of_view_count)
  12. print(n._timepoint_count)
  13. # z = n._reader.read_coordinates()
  14. # print(z)
  15. # pprint(n._metadata)
  16. image = n._reader.get_raw_image_data(71, 0)