Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UltrasoundBoneLabeler
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
antony.carrard
UltrasoundBoneLabeler
Commits
33750f8c
Commit
33750f8c
authored
1 year ago
by
Antony Carrard
Browse files
Options
Downloads
Patches
Plain Diff
Added parameters to the code
parent
1b1c2798
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
UltrasoundBoneLabeler/Resources/UI/UltrasoundBoneLabeler.ui
+48
-6
48 additions, 6 deletions
UltrasoundBoneLabeler/Resources/UI/UltrasoundBoneLabeler.ui
UltrasoundBoneLabeler/UltrasoundBoneLabeler.py
+15
-4
15 additions, 4 deletions
UltrasoundBoneLabeler/UltrasoundBoneLabeler.py
with
63 additions
and
10 deletions
UltrasoundBoneLabeler/Resources/UI/UltrasoundBoneLabeler.ui
+
48
−
6
View file @
33750f8c
...
...
@@ -112,7 +112,7 @@
<item
row=
"3"
column=
"0"
colspan=
"5"
>
<widget
class=
"QPushButton"
name=
"pushButton"
>
<property
name=
"text"
>
<string>
Apply
</string>
<string>
Process
</string>
</property>
</widget>
</item>
...
...
@@ -126,7 +126,7 @@
<item
row=
"0"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"autoCropCheckBox"
>
<property
name=
"text"
>
<string>
Auto
-c
rop
</string>
<string>
Auto
C
rop
ping
</string>
</property>
</widget>
</item>
...
...
@@ -146,7 +146,20 @@
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_4"
>
<item
row=
"6"
column=
"2"
colspan=
"2"
>
<widget
class=
"ctkSliderWidget"
name=
"bestLineThresholdSlider"
/>
<widget
class=
"ctkSliderWidget"
name=
"bestLineThresholdSlider"
>
<property
name=
"singleStep"
>
<double>
0.010000000000000
</double>
</property>
<property
name=
"pageStep"
>
<double>
0.100000000000000
</double>
</property>
<property
name=
"maximum"
>
<double>
1.000000000000000
</double>
</property>
<property
name=
"value"
>
<double>
0.100000000000000
</double>
</property>
</widget>
</item>
<item
row=
"5"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_8"
>
...
...
@@ -293,7 +306,7 @@
<double>
2.000000000000000
</double>
</property>
<property
name=
"pageStep"
>
<double>
10
.000000000000000
</double>
<double>
4
.000000000000000
</double>
</property>
<property
name=
"minimum"
>
<double>
1.000000000000000
</double>
...
...
@@ -310,7 +323,20 @@
</widget>
</item>
<item
row=
"7"
column=
"2"
colspan=
"2"
>
<widget
class=
"ctkSliderWidget"
name=
"bestLineExpDecaySlider"
/>
<widget
class=
"ctkSliderWidget"
name=
"bestLineExpDecaySlider"
>
<property
name=
"singleStep"
>
<double>
0.010000000000000
</double>
</property>
<property
name=
"pageStep"
>
<double>
0.100000000000000
</double>
</property>
<property
name=
"maximum"
>
<double>
1.000000000000000
</double>
</property>
<property
name=
"value"
>
<double>
0.020000000000000
</double>
</property>
</widget>
</item>
</layout>
</widget>
...
...
@@ -322,7 +348,20 @@
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_8"
>
<item
row=
"0"
column=
"1"
>
<widget
class=
"ctkSliderWidget"
name=
"SliderWidget"
/>
<widget
class=
"ctkSliderWidget"
name=
"SliderWidget"
>
<property
name=
"decimals"
>
<number>
0
</number>
</property>
<property
name=
"pageStep"
>
<double>
1.000000000000000
</double>
</property>
<property
name=
"minimum"
>
<double>
1.000000000000000
</double>
</property>
<property
name=
"maximum"
>
<double>
10.000000000000000
</double>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_15"
>
...
...
@@ -385,6 +424,9 @@
<property
name=
"singleStep"
>
<double>
2.000000000000000
</double>
</property>
<property
name=
"pageStep"
>
<double>
4.000000000000000
</double>
</property>
<property
name=
"minimum"
>
<double>
1.000000000000000
</double>
</property>
...
...
This diff is collapsed.
Click to expand it.
UltrasoundBoneLabeler/UltrasoundBoneLabeler.py
+
15
−
4
View file @
33750f8c
...
...
@@ -15,7 +15,7 @@ from slicer.parameterNodeWrapper import (
WithinRange
,
)
from
slicer
import
vtkMRMLScalarVolumeNode
from
slicer
import
vtkMRMLScalarVolumeNode
,
vtkMRMLSegmentationNode
from
Logic
import
bone_probability_mapping
,
bone_surface_identification
,
files_manager
...
...
@@ -115,9 +115,20 @@ class UltrasoundBoneLabelerParameterNode:
invertedVolume - The output volume that will contain the inverted thresholded volume.
"""
inputVolume
:
vtkMRMLScalarVolumeNode
imageThreshold
:
Annotated
[
float
,
WithinRange
(
-
100
,
500
)]
=
100
invertThreshold
:
bool
=
False
outputVolume
:
vtkMRMLScalarVolumeNode
autoCrop
:
bool
=
False
resize
:
bool
=
False
dimensions
:
tuple
[
int
,
int
]
=
(
256
,
256
)
gaussianKernelSize
:
Annotated
[
int
,
WithinRange
(
1
,
63
)]
=
25
binaryThreshold
:
Annotated
[
float
,
WithinRange
(
0
,
1
)]
=
0.2
transducerMargin
:
Annotated
[
float
,
WithinRange
(
0
,
1
)]
=
0.1
shadowSigma
:
Annotated
[
float
,
WithinRange
(
0
,
200
)]
=
100
localPhaseSigma
:
Annotated
[
float
,
WithinRange
(
0
,
3
)]
=
0.5
localPhaseWavelength
:
Annotated
[
float
,
WithinRange
(
0
,
6
)]
=
2
bestLineThreshold
:
Annotated
[
float
,
WithinRange
(
0
,
1
)]
=
0.1
bestLineExpDecay
:
Annotated
[
float
,
WithinRange
(
0
,
1
)]
=
0.02
LoGKernelSize
:
Annotated
[
int
,
WithinRange
(
1
,
31
)]
=
31
previewVolume
:
vtkMRMLScalarVolumeNode
outputSegmentation
:
vtkMRMLSegmentationNode
#
...
...
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