add channel count and round count

This commit is contained in:
2021-07-12 18:56:06 +02:00
parent 29c9555755
commit 5bac4eb2bd
2 changed files with 9 additions and 0 deletions

View File

@@ -39,6 +39,9 @@ class SituImage:
self._load_image()
return self.data
def get_channel_count(self):
return self.get_data().shape[0]
def get_channel(self, channel):
'''
Loads and returns the specified channel for all focus_levels.

View File

@@ -18,6 +18,12 @@ class Tile:
self.images.append(
SituImage(situ_image_list, nucleaus_channel=nucleaus_channel))
def get_round_count(self):
return len(self.images)
def get_channel_count(self):
return self.images.get_channel_count(self)
def get_round(self, round_number):
"""This