Skip to content
Snippets Groups Projects
Commit 978adaf9 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Added docstring

parent 6f12d7e9
No related branches found
No related tags found
No related merge requests found
......@@ -775,10 +775,17 @@ class RoiSet(object):
def acc_obj_ids(self):
return make_object_ids_from_df(self._df, self.acc_raw.shape_dict)
# TODO: add docstring
# TODO: make this work with obj det dataset
@staticmethod
def deserialize(acc_raw: GenericImageDataAccessor, where: Path, prefix=''):
"""
Create an RoiSet object from saved files and an image accessor
:param acc_raw: accessor to image that contains ROIs
:param where: path to directory containing RoiSet serialization files, namely dataframe.csv and a subdirectory
named tight_patch_masks
:param prefix: starting prefix of patch mask filenames
:return:
"""
df = pd.read_csv(where / 'dataframe' / (prefix + '.csv'))[['label', 'zi', 'y0', 'y1', 'x0', 'x1']]
def _read_binary_mask(r):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment