RoiSet facilitates object detection models
Compare changes
Files
2- Christopher Randolph Rhodes authored
Parameterized deprojection when creating RoiSet from binary mask, including option to pass a channel
+ 30
− 9
@@ -52,6 +52,7 @@ class RoiFilter(BaseModel):
@@ -52,6 +52,7 @@ class RoiFilter(BaseModel):
@@ -210,23 +211,33 @@ def filter_df_overlap_seg(df1: pd.DataFrame, df2: pd.DataFrame = None) -> pd.Dat
@@ -210,23 +211,33 @@ def filter_df_overlap_seg(df1: pd.DataFrame, df2: pd.DataFrame = None) -> pd.Dat
:param expand_box_by: number of pixels to expand bounding box in all directions (without exceeding image boundary)
@@ -238,7 +249,11 @@ def make_df_from_object_ids(acc_raw, acc_obj_ids, expand_box_by) -> pd.DataFrame
@@ -238,7 +249,11 @@ def make_df_from_object_ids(acc_raw, acc_obj_ids, expand_box_by) -> pd.DataFrame
@@ -374,7 +389,9 @@ class RoiSet(object):
@@ -374,7 +389,9 @@ class RoiSet(object):
@@ -404,6 +421,7 @@ class RoiSet(object):
@@ -404,6 +421,7 @@ class RoiSet(object):
@@ -1022,6 +1040,9 @@ class BoundingBoxError(Error):
@@ -1022,6 +1040,9 @@ class BoundingBoxError(Error):