Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SVLT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ALMF
SVLT
Commits
b589e3bd
Commit
b589e3bd
authored
7 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
docstrings only
parent
6b416419
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model_server/base/roiset.py
+12
-5
12 additions, 5 deletions
model_server/base/roiset.py
with
12 additions
and
5 deletions
model_server/base/roiset.py
+
12
−
5
View file @
b589e3bd
...
...
@@ -296,7 +296,7 @@ class RoiSet(object):
"""
A set of regions of interest, referenced by their positions and contours in the YXCZ space of stack acc_raw.
RoiSet contains their internal state, which may be exported as patches, maps, and other products by export methods.
:param acc_raw: accessor to a generally
a
multichannel z-stack
:param acc_raw: accessor to a generally multichannel z-stack
:param df: dataframe containing at minimum bounding box and segmentation mask information
:param params: optional arguments that influence the definition and representation of ROIs
"""
...
...
@@ -318,12 +318,12 @@ class RoiSet(object):
params
:
RoiSetMetaParams
=
RoiSetMetaParams
(),
):
"""
:param acc_raw:
Create an RoiSet from an object identities map
:param acc_raw:
accessor to a generally a multichannel z-stack
:param acc_obj_ids: accessor to a 2D single-channel object identities map, where each pixel
'
s intensity
labels its membership in a connected object
:param params:
:return:
:param params:
optional arguments that influence the definition and representation of ROIs
:return:
RoiSet object
"""
assert
acc_obj_ids
.
chroma
==
1
...
...
@@ -344,6 +344,13 @@ class RoiSet(object):
yxhw_list
:
List
,
params
:
RoiSetMetaParams
=
RoiSetMetaParams
()
):
"""
Create and RoiSet from bounding boxes
:param acc_raw:
:param yxhw_list: list of bounding boxing coordinates [corner X, corner Y, height, width]
:param params: optional arguments that influence the definition and representation of ROIs
:return: RoiSet object
"""
df
=
pd
.
DataFrame
([
{
'
y0
'
:
yxhw
[
0
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment