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
Merge requests
!60
Local thickness wrapper
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Local thickness wrapper
local_thickness_wrapper
into
main
Overview
0
Commits
10
Pipelines
0
Changes
3
Merged
Local thickness wrapper
s184058
requested to merge
local_thickness_wrapper
into
main
Mar 6, 2024
Overview
0
Commits
10
Pipelines
0
Changes
3
0
0
Merge request reports
Viewing commit
e7a72c63
Prev
Next
Show latest version
3 files
+
73
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
e7a72c63
First static implementation of local_thickness visualization
· e7a72c63
Stefan Peter Engelmann Jensen
authored
Feb 28, 2024
qim3d/processing/local_thickness.py
+
2
−
1
View file @ e7a72c63
Edit in single-file editor
Open in Web IDE
Show full file
@@ -4,8 +4,9 @@ import numpy as np
import
matplotlib.pyplot
as
plt
from
skimage.filters
import
threshold_otsu
from
qim3d.io.logger
import
log
from
typing
import
Optional
def
local_thickness
(
image
,
scale
=
1.
,
mask
=
None
)
:
def
local_thickness
(
image
:
np
.
ndarray
,
scale
:
float
=
1
,
mask
:
Optional
[
np
.
ndarray
]
=
None
)
->
np
.
ndarray
:
"""
Wrapper for the local thickness function from the localthickness package* (https://github.com/vedranaa/local-thickness)
Args:
Loading