Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qim3d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QIM
Tools
qim3d
Commits
f99719f6
Commit
f99719f6
authored
7 months ago
by
Alessia Saccardo
Browse files
Options
Downloads
Patches
Plain Diff
fix signature
parent
88d24bb7
No related branches found
No related tags found
1 merge request
!135
Threshold exploration
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
qim3d/viz/explore.py
+12
-12
12 additions, 12 deletions
qim3d/viz/explore.py
with
12 additions
and
12 deletions
qim3d/viz/explore.py
+
12
−
12
View file @
f99719f6
...
...
@@ -5,7 +5,7 @@ Provides a collection of visualization functions.
import
math
import
warnings
from
typing
import
List
,
Optional
,
Union
from
typing
import
List
,
Optional
,
Union
,
Tuple
import
dask.array
as
da
import
ipywidgets
as
widgets
...
...
@@ -818,21 +818,21 @@ def chunks(zarr_path: str, **kwargs):
def
histogram
(
vol
:
np
.
ndarray
,
bins
:
Union
[
int
,
str
]
=
"
auto
"
,
slice_idx
:
Union
[
int
,
str
]
=
None
,
slice_idx
:
Union
[
int
,
str
,
None
]
=
None
,
axis
:
int
=
0
,
kde
:
bool
=
True
,
log_scale
:
bool
=
False
,
despine
:
bool
=
True
,
show_title
:
bool
=
True
,
color
=
"
qim3d
"
,
edgecolor
=
None
,
figsize
=
(
8
,
4.5
),
element
=
"
step
"
,
return_fig
=
False
,
show
=
True
,
ax
=
None
,
# New parameter for target axes
**
sns_kwargs
,
):
color
:
str
=
"
qim3d
"
,
edgecolor
:
Optional
[
str
]
=
None
,
figsize
:
Tuple
[
float
,
float
]
=
(
8
,
4.5
),
element
:
str
=
"
step
"
,
return_fig
:
bool
=
False
,
show
:
bool
=
True
,
ax
:
Optional
[
plt
.
Axes
]
=
None
,
**
sns_kwargs
:
Union
[
str
,
float
,
int
,
bool
]
)
->
Optional
[
Union
[
plt
.
Figure
,
plt
.
Axes
]]
:
"""
Plots a histogram of voxel intensities from a 3D volume, with options to show a specific slice or the entire volume.
...
...
@@ -933,7 +933,7 @@ def threshold(
cmap_overlay
:
str
=
'
gray
'
,
vmin
:
float
=
None
,
vmax
:
float
=
None
,
):
)
->
widgets
.
VBox
:
"""
This function provides an interactive interface to explore thresholding on a
3D volume slice-by-slice. Users can either manually set the threshold value
...
...
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