15 #ifndef niftkQImageToMitkImageFilter_h
16 #define niftkQImageToMitkImageFilter_h
18 #include <mitkCommon.h>
19 #include <mitkImageSource.h>
22 #include <itkRGBPixel.h>
23 #include <itkRGBAPixel.h>
26 #include "niftkIGIDataSourcesExports.h"
52 void SetQImage(const QImage*
image);
53 itkGetMacro(QImage, const QImage*);
55 OutputImageType* GetOutput();
60 void SetGeometryImage (
mitk::
Image::Pointer GeomImage);
65 virtual ~QImageToMitkImageFilter();
67 virtual DataObjectPointer MakeOutput(
unsigned int idx);
68 virtual
void GenerateData() override;
72 const QImage* m_QImage;
78 template <typename TPixel,
unsigned int VImageDimension>
79 static
mitk::
Image::Pointer ConvertQImageToMitkImage(const QImage*
input, const
mitk::
Image::Pointer GeomImage);
80 template <typename TPixel,
unsigned int VImageDimension>
81 static
mitk::
Image::Pointer Convert8BitQImageToMitkImage(const QImage* input, const
mitk::
Image::Pointer GeomImage);
itk::RGBPixel< double > DoubleRGBPixelType
Definition: niftkQImageToMitkImageFilter.h:42
itk::RGBPixel< unsigned char > UCRGBPixelType
Definition: niftkQImageToMitkImageFilter.h:39
GLenum GLenum GLenum input
Definition: glew.h:12016
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
itk::RGBAPixel< unsigned char > UCRGBAPixelType
Definition: niftkQImageToMitkImageFilter.h:44
Definition: ReceptorMemberCommandTest.cxx:25
itk::RGBPixel< unsigned short > USRGBPixelType
Definition: niftkQImageToMitkImageFilter.h:40
A basic interface to produce a 2D Mitk image from a 2D QImage. Currently only supports a QImage with ...
Definition: niftkQImageToMitkImageFilter.h:36
itk::RGBAPixel< unsigned short > USRGBAPixelType
Definition: niftkQImageToMitkImageFilter.h:45
itk::RGBAPixel< double > DoubleRGBAPixelType
Definition: niftkQImageToMitkImageFilter.h:47
itk::RGBPixel< float > FloatRGBPixelType
Definition: niftkQImageToMitkImageFilter.h:41
Simultaneous itk::Image and itk::Array (and hence vnl_vector) class.
Definition: niftkExceptionObject.h:21
itk::RGBAPixel< float > FloatRGBAPixelType
Definition: niftkQImageToMitkImageFilter.h:46