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
4ea9b713
Commit
4ea9b713
authored
1 year ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Expanded 3d patch stack as 3d multichannel patch stack
parent
b0847605
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
extensions/chaeo/products.py
+3
-3
3 additions, 3 deletions
extensions/chaeo/products.py
with
3 additions
and
3 deletions
extensions/chaeo/products.py
+
3
−
3
View file @
4ea9b713
...
...
@@ -9,7 +9,7 @@ from skimage.io import imsave
from
skimage.measure
import
find_contours
,
shannon_entropy
from
tifffile
import
imwrite
from
extensions.chaeo.accessors
import
MonoPatchStack
,
PatchStack
3D
from
extensions.chaeo.accessors
import
MonoPatchStack
,
Multichannel3d
PatchStack
from
extensions.chaeo.annotators
import
draw_box_on_patch
,
draw_contours_on_patch
from
model_server.accessors
import
GenericImageDataAccessor
,
InMemoryDataAccessor
from
model_server.process
import
pad
,
rescale
,
resample_to_8bit
...
...
@@ -197,10 +197,10 @@ def get_patches_from_zmask_meta(
patch
=
pad
(
patch
,
pad_to
)
patches
.
append
(
patch
)
if
not
make_3d
:
if
not
make_3d
and
pc
==
1
:
return
MonoPatchStack
(
patches
)
else
:
return
PatchStack
3D
(
patches
)
return
Multichannel3d
PatchStack
(
patches
)
def
export_patches_from_zstack
(
where
:
Path
,
...
...
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