Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nd2shrink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Andrey ARISTOV
nd2shrink
Commits
c6fbb596
Commit
c6fbb596
authored
3 years ago
by
Andrey Aristov
Browse files
Options
Downloads
Patches
Plain Diff
update suffix
parent
1da898a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
droplet_growth/register.py
+2
-2
2 additions, 2 deletions
droplet_growth/register.py
with
2 additions
and
2 deletions
droplet_growth/register.py
+
2
−
2
View file @
c6fbb596
...
...
@@ -87,12 +87,12 @@ def align_stack(data_or_path, template16, mask2, plot=False, path=None, binnings
aligned_stack
=
np
.
stack
((
aligned_bf
,
aligned_tritc
,
mask2
)).
astype
(
'
uint16
'
)
imwrite
((
p
:
=
""
.
join
((
*
path
.
split
(
'
.
'
)[:
-
1
]
,
suffix
))
)
,
aligned_stack
,
imagej
=
True
,
metadata
=
META_ALIGNED
)
imwrite
((
p
:
=
path
.
replace
(
'
.nd2
'
,
suffix
)),
aligned_stack
,
imagej
=
True
,
metadata
=
META_ALIGNED
)
print
(
f
'
Saved aligned stack
{
p
}
'
)
return
aligned_stack
def
align_stack_nd
(
stack
,
template16
,
mask2
,
path
=
None
,
plot
=
False
,
binnings
=
(
1
,
16
,
2
),
suffix
=
'
.aligned.tif
'
)
->
(
np
.
ndarray
,
dict
)
:
def
align_stack_nd
(
stack
,
template16
,
mask2
,
path
=
None
,
plot
=
False
,
binnings
=
(
1
,
16
,
2
),
suffix
=
'
.aligned.tif
'
)
->
Tuple
[
np
.
ndarray
,
dict
]
:
'''
stack should contain two channels: bright field and fluorescence.
BF will be binned 8 times and registered with template8 (aligned BF).
...
...
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