Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
18de55bb
Commit
18de55bb
authored
Jul 20, 2021
by
Julia Garriga Ferrer
Browse files
[orangecontrib][noiseremoval] Add step and chunks Settings
parent
9c914480
Changes
1
Hide whitespace changes
Inline
Side-by-side
orangecontrib/darfix/widgets/noiseremoval.py
View file @
18de55bb
...
...
@@ -58,6 +58,8 @@ class NoiseRemovalWidgetOW(OWWidget):
background_type
=
Setting
(
str
())
kernel_size
=
Setting
(
str
())
bottom_threshold
=
Setting
(
str
())
chunks
=
Setting
(
list
())
step
=
Setting
(
str
())
def
__init__
(
self
):
super
().
__init__
()
...
...
@@ -79,6 +81,10 @@ class NoiseRemovalWidgetOW(OWWidget):
self
.
_widget
.
mainWindow
.
size
=
self
.
kernel_size
if
self
.
bottom_threshold
:
self
.
_widget
.
mainWindow
.
bottom_threshold
=
self
.
bottom_threshold
if
self
.
step
:
self
.
_widget
.
mainWindow
.
step
=
self
.
step
if
self
.
chunks
:
self
.
_widget
.
mainWindow
.
chunks
=
self
.
chunks
else
:
self
.
_widget
.
mainWindow
.
clearStack
()
# Emit None
...
...
@@ -96,6 +102,9 @@ class NoiseRemovalWidgetOW(OWWidget):
self
.
method
=
self
.
_widget
.
mainWindow
.
method
self
.
background_type
=
self
.
_widget
.
mainWindow
.
background
self
.
kernel_size
=
self
.
_widget
.
mainWindow
.
size
self
.
step
=
self
.
_widget
.
mainWindow
.
step
self
.
chunks
=
self
.
_widget
.
mainWindow
.
chunks
print
(
self
.
step
,
self
.
chunks
)
self
.
bottom_threshold
=
self
.
_widget
.
mainWindow
.
bottom_threshold
self
.
Outputs
.
dataset
.
send
(
self
.
_widget
.
mainWindow
.
getDataset
())
self
.
Outputs
.
colormap
.
send
(
self
.
_widget
.
mainWindow
.
getStackViewColormap
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment