Commit bf1f4d8a authored by Damien Naudet's avatar Damien Naudet

Added medfilt_dims option.

parent 88ca39f5
This diff is collapsed.
......@@ -37,13 +37,13 @@ class GroupBox(Qt.QGroupBox):
super(GroupBox, self).__init__(*args, **kwargs)
self.setStyleSheet(
"""
QGroupBox {
GroupBox {
border: 2px solid gray;
margin-top: 2ex;
border-radius: 5px
margin-top: 2ex;
border-radius: 5px
}
QGroupBox::title {
GroupBox::title {
subcontrol-origin: margin;
subcontrol-position: top center;
padding: 0 3px;
......@@ -53,3 +53,30 @@ class GroupBox(Qt.QGroupBox):
border-radius: 5px;
}
""")
class SubGroupBox(Qt.QGroupBox):
def __init__(self, *args, **kwargs):
super(SubGroupBox, self).__init__(*args, **kwargs)
self.setStyleSheet(
"""
SubGroupBox {
border: 1px inset gray;
border-radius: 2px;
padding-top: 3.5ex;
}
SubGroupBox::title {
subcontrol-origin: padding;
subcontrol-position: top left;
border-radius: 0px;
border: 1px outset gray;
background-color:
qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 gray, stop: 1 lightgray);
}
""")
if __name__ == '__main__':
pass
......@@ -272,6 +272,19 @@ class QSpaceH5Writer(QSpaceH5):
'{0}.'.format(image_binning))
self._set_array_data(path, _np.array(image_binning))
def set_medfilt_dims(self, medfilt_dims):
"""
Stores the dimensions of the median filter applied after the image
binning when converting to q space.
:param medfilt_dims: a 2 elements array.
:return:
"""
path = self.params_path + '/medfilt_dims'
if medfilt_dims is None or len(medfilt_dims) != 2:
raise ValueError('medfilt_dims must be a 2 elements array : '
'{0}.'.format(medfilt_dims))
self._set_array_data(path, _np.array(medfilt_dims))
def set_sample_roi(self, sample_roi):
"""
Stores the sample area selected for conversion (sample coordinates).
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment