17 #ifndef __igstkVideoFrameSpatialObject_h
18 #define __igstkVideoFrameSpatialObject_h
26 #include "itkVTKImageExport.h"
29 #include "itkImageRegion.h"
31 #include "itkImportImageFilter.h"
32 #include "itkRGBPixel.h"
34 #include "vtkImageData.h"
35 #include "vtkImageImport.h"
42 template <
class TPixelType,
unsigned int TChannels >
54 typedef typename itk::RGBPixel< TPixelType >
RGBPixelType;
55 typedef typename itk::ImportImageFilter< RGBPixelType,
DIMENSION >
60 typedef typename itk::ImportImageFilter< PixelType,
DIMENSION >
72 IGSTKEvent, ImageType);
75 IGSTKEvent, RGBImageType);
116 typename RGBImageType::Pointer m_RGBImage;
119 typename ImageType::Pointer m_Image;
126 vtkImageData* m_VTKImage;
127 TPixelType * m_RawBuffer;
129 VTKImageModifiedEvent m_VtkImageLoadedEvent;
135 unsigned int m_Width;
136 unsigned int m_Height;
139 RGBPixelType* m_RGBPixelContainer;
141 unsigned int m_NumberOfScalarComponents;
144 typedef itk::VTKImageExport< RGBImageType > ITKRGBExportFilterType;
145 typedef typename ITKRGBExportFilterType::Pointer ITKRGBExportFilterPointer;
147 typedef itk::VTKImageExport< ImageType > ITKExportFilterType;
148 typedef typename ITKExportFilterType::Pointer ITKExportFilterPointer;
150 typedef vtkImageImport VTKImportFilterType;
151 typedef VTKImportFilterType* VTKImportFilterPointer;
154 ITKRGBExportFilterPointer m_ItkRGBExporter;
155 ITKExportFilterPointer m_ItkExporter;
157 VTKImportFilterPointer m_VtkRGBImporter;
158 VTKImportFilterPointer m_VtkImporter;
163 #ifndef IGSTK_MANUAL_INSTANTIATION
164 #include "igstkVideoFrameSpatialObject.txx"
167 #endif // __igstkVideoFrameSpatialObject_h