16 #include <itkDiscreteGaussianImageFilter.h>
18 #include <itksys/SystemTools.hxx>
25 #include <vtkImageViewer.h>
26 #include <vtkRenderWindowInteractor.h>
32 int main(
int ,
char **argv)
43 catch (
const std::exception &e)
55 typedef itk::DiscreteGaussianImageFilter<ImageType, ImageType> FilterType;
57 filter->SetInput(itkImage);
58 filter->SetVariance(2);
59 filter->SetMaximumKernelWidth(5);
69 viewer->SetupInteractor(renderWindowInteractor);
70 viewer->SetInputData(mitkImage->GetVtkImageData());
72 viewer->SetColorWindow(255);
73 viewer->SetColorLevel(128);
74 renderWindowInteractor->Start();
76 renderWindowInteractor->Delete();
int main(int, char **argv)
itk::SmartPointer< Self > Pointer
itk::Image< unsigned char, 3 > ImageType
static const std::string filename
void CastToMitkImage(const itk::SmartPointer< ItkOutputImageType > &itkimage, itk::SmartPointer< mitk::Image > &mitkoutputimage)
Cast an itk::Image (with a specific type) to an mitk::Image.
void MITKCORE_EXPORT CastToItkImage(const mitk::Image *mitkImage, itk::SmartPointer< ItkOutputImageType > &itkOutputImage)
Cast an mitk::Image to an itk::Image with a specific type.
static mitk::Image::Pointer LoadImage(const std::string &path)
LoadImage Convenience method to load an arbitrary mitkImage.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.