00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef _MITK_IMAGE_TO_LOOKUP_TABLE_FILTER__H_ 00019 #define _MITK_IMAGE_TO_LOOKUP_TABLE_FILTER__H_ 00020 00021 #include <mitkLookupTableSource.h> 00022 #include "MitkExtExports.h" 00023 #include <mitkImage.h> 00024 00025 namespace mitk 00026 { 00027 00032 class MitkExt_EXPORT ImageToLookupTableFilter : public LookupTableSource 00033 { 00034 public: 00035 00036 mitkClassMacro( ImageToLookupTableFilter, LookupTableSource ); 00037 00038 itkNewMacro( Self ); 00039 00040 // typedefs for setting an image as input 00041 typedef mitk::Image InputImageType; 00042 typedef InputImageType::Pointer InputImagePointer; 00043 typedef InputImageType::ConstPointer InputImageConstPointer; 00044 00045 virtual void SetInput( const InputImageType *image); 00046 00047 virtual void SetInput( unsigned int, const InputImageType * image); 00048 00049 const InputImageType * GetInput(void); 00050 00051 const InputImageType * GetInput(unsigned int idx); 00052 00053 protected: 00054 00055 virtual void GenerateData(); 00056 00057 ImageToLookupTableFilter(); 00058 00059 virtual ~ImageToLookupTableFilter(); 00060 00061 }; 00062 00063 00064 } //end of namespace mitk 00065 00066 #endif