Commit 9081bec0 authored by Thomas Vincent's avatar Thomas Vincent

enable median filter with mask

parent 8405d69f
......@@ -201,11 +201,9 @@ class ConversionParamsWidget(Qt.QWidget):
imgGboxLayout.addRow(self.__medfiltCBox, inputBase)
# Mask and binning/median filer are mutually exclusive
# Mask and binning mutually exclusive
self.__imgMaskCBox.toggled.connect(self.__imgBinCBox.setDisabled)
self.__imgBinCBox.toggled.connect(self.__imgMaskCBox.setDisabled)
self.__imgMaskCBox.toggled.connect(self.__medfiltCBox.setDisabled)
self.__medfiltCBox.toggled.connect(self.__imgMaskCBox.setDisabled)
layout.addWidget(imageGbox)
......
......@@ -700,10 +700,6 @@ class QSpaceConverter(object):
not np.all(np.equal(image_binning, (1, 1)))):
raise ValueError(
'Image binning is not implemented with mask')
if (medfilt_dims is not None and
not np.all(np.equal(medfilt_dims, (1, 1)))):
raise ValueError(
'Median filter is not implemented with mask')
shiftH5 = self.__shiftH5
......
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