Skip to content
Snippets Groups Projects
Commit 33750f8c authored by Antony Carrard's avatar Antony Carrard
Browse files

Added parameters to the code

parent 1b1c2798
No related branches found
No related tags found
No related merge requests found
......@@ -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-crop</string>
<string>Auto Cropping</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>
......
......@@ -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
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment