53 this->buttonGroup->setId(allChRadioButton, 0);
54 this->buttonGroup->setId(singleChRadioButton, 1);
55 this->ChannelComboBox->setEnabled(
false);
77 m_CellRadius =
static_cast< double >( this->RadiusSpinBox->value() );
83 double t = this->RadiusSpinBox->value();
84 double max_spin = this->RadiusSpinBox->maximum();
85 double min_spin = this->RadiusSpinBox->minimum();
87 int max_slider = this->RadiusSlider->maximum();
88 int min_slider = this->RadiusSlider->minimum();
90 int out =
static_cast< int >( min_slider
91 + ( max_slider - min_slider ) * ( t - min_spin ) / ( max_spin - min_spin ) );
93 this->RadiusSlider->setValue(out);
99 int t = this->RadiusSlider->value();
101 double max_spin = this->RadiusSpinBox->maximum();
102 double min_spin = this->RadiusSpinBox->minimum();
104 int max_slider = this->RadiusSlider->maximum();
105 int min_slider = this->RadiusSlider->minimum();
107 double out =
static_cast< double >( min_spin
108 + ( max_spin - min_spin ) * ( t - min_slider ) / ( max_slider - min_slider ) );
110 this->RadiusSpinBox->setValue(out);
116 this->ChannelComboBox->setEnabled(
false);
122 this->ChannelComboBox->setEnabled(
true);
135 unsigned int option =
static_cast< unsigned int >( this->buttonGroup->checkedId() );
145 unsigned int channel =
static_cast< unsigned int >( this->ChannelComboBox->currentIndex() );
157 vtkImageExport *vtkExporter = vtkImageExport::New();
167 filter->SetInput (m_ITKImage);
174 ImageExportType::Pointer itkExporter = ImageExportType::New();
175 itkExporter->SetInput(m_ITKOutputImage);
177 vtkImageImport *vtkImporter = vtkImageImport::New();
183 vtkExporter->Delete();
184 vtkImporter->Delete();