43 m_Controls =
new Ui::QmitkToFCompositeFilterWidgetControls;
46 int min =
m_Controls->m_ThresholdFilterMinValueSpinBox->value();
47 int max =
m_Controls->m_ThresholdFilterMaxValueSpinBox->value();
48 m_Controls->m_ThresholdFilterRangeSlider->setMinimum(min);
49 m_Controls->m_ThresholdFilterRangeSlider->setMaximum(max);
50 m_Controls->m_ThresholdFilterRangeSlider->setMinimumValue(min);
51 m_Controls->m_ThresholdFilterRangeSlider->setMaximumValue(max);
77 connect(
m_Controls->m_ThresholdFilterRangeSlider, SIGNAL(spanChanged(
int,
int) ),
this, SLOT(
OnSpanChanged(
int ,
int ) ));
101 m_DataStorage = dataStorage;
102 m_Controls->maskImageComboBox->SetDataStorage(dataStorage);
117 m_Controls->m_ThresholdFilterCheckBox->setChecked(threshold);
118 m_Controls->maskSegmentationCheckBox->setChecked(mask);
119 m_Controls->m_TemporalMedianFilterCheckBox->setChecked(tempMedian);
120 m_Controls->m_AverageFilterCheckBox->setChecked(tempAverage);
121 m_Controls->m_MedianFilterCheckBox->setChecked(median);
122 m_Controls->m_BilateralFilterCheckBox->setChecked(bilateral);
127 m_Controls->m_BilateralFilterDomainSigmaSpinBox->setValue(domainSigma);
128 m_Controls->m_BilateralFilterRangeSigmaSpinBox->setValue(rangeSigma);
129 m_Controls->m_BilateralFilterKernelRadiusSpinBox->setValue(kernelRadius);
134 m_Controls->m_ThresholdFilterMinValueSpinBox->setValue(min);
135 m_Controls->m_ThresholdFilterMaxValueSpinBox->setValue(max);
140 m_Controls->m_TemporalMedianFilterNumOfFramesSpinBox->setValue(nImages);
149 m_Controls->m_AverageFilterCheckBox->setChecked(
false);
160 m_Controls->m_TemporalMedianFilterCheckBox->setChecked(
false);
167 this->
m_Controls->m_AverageFilterCheckBox->setVisible(checked);
168 this->
m_Controls->m_BilateralFilterCheckBox->setVisible(checked);
169 this->
m_Controls->m_BilateralFilterDomainSigmaSpinBox->setVisible(checked);
170 this->
m_Controls->m_BilateralFilterKernelRadiusSpinBox->setVisible(checked);
171 this->
m_Controls->m_BilateralFilterRangeSigmaSpinBox->setVisible(checked);
172 this->
m_Controls->m_MedianFilterCheckBox->setVisible(checked);
173 this->
m_Controls->m_TemporalMedianFilterCheckBox->setVisible(checked);
174 this->
m_Controls->m_TemporalMedianFilterNumOfFramesSpinBox->setVisible(checked);
175 this->
m_Controls->m_ThresholdFilterCheckBox->setVisible(checked);
176 this->
m_Controls->m_ThresholdFilterMaxValueSpinBox->setVisible(checked);
177 this->
m_Controls->m_ThresholdFilterMinValueSpinBox->setVisible(checked);
178 this->
m_Controls->m_ThresholdFilterRangeSlider->setVisible(checked);
179 this->
m_Controls->m_ThresholdFilterRangeSliderReset->setVisible(checked);
180 this->
m_Controls->label_3->setVisible(checked);
181 this->
m_Controls->label_4->setVisible(checked);
182 this->
m_Controls->label_12->setVisible(checked);
183 this->
m_Controls->maskImageComboBox->setVisible(checked);
184 this->
m_Controls->maskSegmentationCheckBox->setVisible(checked);
198 if (maskImageNode.IsNotNull())
223 SetBilateralFilterParameter();
228 SetBilateralFilterParameter();
233 SetBilateralFilterParameter();
238 m_Controls->m_ThresholdFilterRangeSlider->setMinimumValue(value);
239 SetThresholdFilterParameter();
244 m_Controls->m_ThresholdFilterRangeSlider->setMaximumValue(value);
245 SetThresholdFilterParameter();
249 void QmitkToFCompositeFilterWidget::SetThresholdFilterParameter()
251 int min =
m_Controls->m_ThresholdFilterMinValueSpinBox->value();
252 int max =
m_Controls->m_ThresholdFilterMaxValueSpinBox->value();
256 void QmitkToFCompositeFilterWidget::SetBilateralFilterParameter()
258 double domainSigma =
m_Controls->m_BilateralFilterDomainSigmaSpinBox->value();
259 double rangeSigma =
m_Controls->m_BilateralFilterRangeSigmaSpinBox->value();
260 int kernelRadius =
m_Controls->m_BilateralFilterKernelRadiusSpinBox->value();
266 int lowerVal =
m_Controls->m_ThresholdFilterRangeSlider->minimumValue();
267 int upperVal =
m_Controls->m_ThresholdFilterRangeSlider->maximumValue();
269 m_Controls->m_ThresholdFilterMinValueSpinBox->setValue(lowerVal);
270 m_Controls->m_ThresholdFilterMaxValueSpinBox->setValue(upperVal);
278 m_Controls->m_ThresholdFilterRangeSlider->setMinimumValue(lower);
279 m_Controls->m_ThresholdFilterRangeSlider->setMaximumValue(upper);
281 m_Controls->m_ThresholdFilterMinValueSpinBox->setValue(lower);
282 m_Controls->m_ThresholdFilterMaxValueSpinBox->setValue(upper);
Image class for storing images.
static Pointer New(const char *_arg)
static Pointer New(const char *_arg)
Applies a common filter-pipeline to the first input of this filter.