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
TimeStamp::TimePeriodType GetFrameStartTime() const
TimeStamp provides periods of validity for data.
#define igstkGetMacro(name, type)
Get built-in type.
#define igstkStandardTemplatedClassTraitsMacro(classname, superclassname)
Convenience macro for the traits of a templated class.
TimeStamp::TimePeriodType GetFrameExpirationTime() const
Geometrical abstraction of physical objects present in the surgical scene.
void RequestGetVTKImage() const
virtual bool IsEmpty() const
Returns wheter the image has any pixels allocated or not.
itk::Image< RGBPixelType, DIMENSION > RGBImageType
TimeStamp::TimePeriodType TimePeriodType
itkStaticConstMacro(m_NumberOfChannels, unsigned int, TChannels)
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
::itk::SmartPointer< Self > Pointer
itk::ImportImageFilter< RGBPixelType, DIMENSION > RGBImportFilterType
void RequestGetITKImage()
const unsigned int GetNumberOfChannels() const
itk::Image< PixelType, DIMENSION > ImageType
TPixelType * GetImagePtr()
#define igstkSetMacro(name, type)
Set built-in type.
igstkStandardTemplatedClassTraitsMacro(VideoFrameSpatialObject, SpatialObject) typedef itk typedef itk::RGBPixel< TPixelType > RGBPixelType
Macro with standard traits declarations.
igstkLoadedTemplatedConstObjectEventMacro(ITKImageModifiedEvent, IGSTKEvent, ImageType)
Frame from an external input device.
vtkImageData * GetImageData()
void SetVideoImagerTool(igstk::VideoImagerTool::Pointer)
itk::ImportImageFilter< PixelType, DIMENSION > ImportFilterType