|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
15 #include <itkSmoothingRecursiveGaussianImageFilter.h>
45 return "smoothing_image_filter";
52 "<p>Wrapper for a itk::SmoothingRecursiveGaussianImageFilter.</p>"
53 "<p>Computes the smoothing of an image by convolution with "
54 "the Gaussian kernels implemented as IIR filters."
55 "This filter is implemented using the recursive gaussian filters.</p>"
62 "Used for smoothing the segmented volume. Measured in units of image spacing.",
76 temp->setValueName(
"Input");
77 temp->setHelp(
"Select image input for smoothing");
86 temp->setValueName(
"Output");
87 temp->setHelp(
"Output smoothed image");
101 typedef itk::SmoothingRecursiveGaussianImageFilter<itkImageType, itkImageType> smoothingFilterType;
102 smoothingFilterType::Pointer smoohingFilter = smoothingFilterType::New();
103 smoohingFilter->SetSigma(sigma->getValue());
104 smoohingFilter->SetInput(itkImage);
105 smoohingFilter->Update();
106 itkImage = smoohingFilter->GetOutput();
110 itkToVtkFilter->SetInput(itkImage);
111 itkToVtkFilter->Update();
114 rawResult->DeepCopy(itkToVtkFilter->GetOutput());
117 mRawResult = rawResult;
131 QString uid = input->getUid() +
"_sm%1";
132 QString name = input->getName()+
" sm%1";
141 mServices->patient()->insertData(output);
static StringPropertySelectDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp=".*")
virtual void createInputTypes()
static itkImageType::ConstPointer getITKfromSSCImage(ImagePtr image)
Namespace for all CustusX production code.
virtual void createOutputTypes()
boost::shared_ptr< class VisServices > VisServicesPtr
virtual void createOptions()
virtual QString getHelp() const
std::vector< SelectDataStringPropertyBasePtr > mOutputTypes
std::vector< SelectDataStringPropertyBasePtr > mInputTypes
QDomElement mCopiedOptions
ImagePtr getCopiedInputImage(int index=0)
static DoublePropertyPtr initialize(const QString &uid, QString name, QString help, double value, DoubleRange range, int decimals, QDomNode root=QDomNode())
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
SmoothingImageFilter(VisServicesPtr services)
static StringPropertySelectImagePtr New(PatientModelServicePtr patientModelService)
virtual QString getType() const
virtual bool postProcess()
boost::shared_ptr< class Image > ImagePtr
ImagePtr createDerivedImage(PatientModelServicePtr dataManager, QString uid, QString name, vtkImageDataPtr raw, ImagePtr parent)
SmartPointer< Self > Pointer
Utility class for describing a bounded numeric range.
virtual QString getName() const
std::vector< PropertyPtr > mOptionsAdapters
DoublePropertyPtr getSigma(QDomElement root)
boost::shared_ptr< class SelectDataStringPropertyBase > SelectDataStringPropertyBasePtr