You can use File / Export / CSV. This will create a text file with the data you want.
But be careful the file might get huge. Several GB.
You can also draw a shape on the image and then right-click on the image and select from the menu Export Mask Pixels. Sometimes the entry stays disabled. The open another image and go back. Then it should be enabled.