00001 /*========================================================================= 00002 00003 Library : Image Registration Toolkit (IRTK) 00004 Module : $Id: irtkScalarFunctionToImage.h 2 2008-12-23 12:40:14Z dr $ 00005 Copyright : Imperial College, Department of Computing 00006 Visual Information Processing (VIP), 2008 onwards 00007 Date : $Date: 2008-12-23 12:40:14 +0000 (Tue, 23 Dec 2008) $ 00008 Version : $Revision: 2 $ 00009 Changes : $Author: dr $ 00010 00011 =========================================================================*/ 00012 00013 #ifndef _IRTKSCALARFUNCTIONTOIMAGE_H 00014 00015 #define _IRTKSCALARFUNCTIONTOIMAGE_H 00016 00026 template <class VoxelType> class irtkScalarFunctionToImage : public irtkObject 00027 { 00028 00029 private: 00030 00032 Bool _DebugFlag; 00033 00035 Bool _UseWorldCoordinates; 00036 00037 protected: 00038 00040 irtkScalarFunction *_input; 00041 00043 irtkGenericImage<VoxelType> *_output; 00044 00045 public: 00046 00048 irtkScalarFunctionToImage(Bool = True); 00049 00051 virtual ~irtkScalarFunctionToImage(); 00052 00054 virtual void SetInput (irtkScalarFunction *); 00055 00057 virtual void SetOutput(irtkGenericImage<VoxelType> *); 00058 00060 virtual void Run(); 00061 00063 virtual const char *NameOfClass(); 00064 00066 SetMacro(DebugFlag, Bool); 00067 00069 GetMacro(DebugFlag, Bool); 00070 00072 virtual void Debug(char *); 00073 00074 }; 00075 00076 #endif