summaryrefslogtreecommitdiffstats
path: root/ds9/library/smooth.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/library/smooth.tcl')
-rw-r--r--ds9/library/smooth.tcl12
1 files changed, 10 insertions, 2 deletions
diff --git a/ds9/library/smooth.tcl b/ds9/library/smooth.tcl
index 264b650..0af3ec8 100644
--- a/ds9/library/smooth.tcl
+++ b/ds9/library/smooth.tcl
@@ -82,14 +82,22 @@ proc SmoothDialog {} {
-variable smooth(function) -value tophat
ttk::radiobutton $f.gaussian -text [msgcat::mc {Gaussian}] \
-variable smooth(function) -value gaussian
+ ttk::label $f.rbtitle -text {Boxcar width = 2*radius+1}
+ ttk::label $f.rttitle -text {Tophat diameter = 2*radius+1}
+ ttk::label $f.rgtitle -text {Gaussian sigma = radius/2}
slider $f.rslider 1 20 {Radius} smooth(radius) {SmoothCheckRadius}
+
grid $f.boxcar $f.tophat $f.gaussian -padx 2 -pady 2 -sticky w
- grid $f.rslider - - - -padx 2 -pady 2 -sticky ew
+ grid $f.rbtitle - - -padx 2 -pady 2 -sticky ew
+ grid $f.rttitle - - -padx 2 -pady 2 -sticky ew
+ grid $f.rgtitle - - -padx 2 -pady 2 -sticky ew
+ grid $f.rslider - - -padx 2 -pady 2 -sticky ew
# Kernal
set f [ttk::labelframe $w.rad -text [msgcat::mc {Kernel}] -padding 2]
- ttk::label $f.ktitle -text [msgcat::mc {Width = Height = 2*Size+1; radius <= kernel size}]
+ ttk::label $f.ktitle -text {Width/Height = 2*size+1; radius <= size}
slider $f.kslider 1 20 {Size} smooth(kernel) {SmoothCheckKernel}
+
grid $f.ktitle -padx 2 -pady 2 -sticky ew
grid $f.kslider -padx 2 -pady 2 -sticky ew